While working on #13390 I created a new test case to test the texture address mode CLAMPED. However, the new test case fails because the software renderer does not handle the texture address mode CLAMPED correctly. It looks like SDL_SW_RenderGeometryRaw was not written with the case of UVs outside of [0, 1]^2 in mind.
For example, in the new test case I used UVs from (-0.5, -0.5) to (1.5, 1.5) which, assuming texture address mode CLAMPED, should yield this picture:

However, the software renderer produces this picture instead:

My understanding so far: internally, SDL_SW_RenderGeometryRaw tries to optimize drawing by identifying quads and triggering SDL_RenderTexture for them. However, this approach fails for UVs outside of [0, 1]^2.