WARP: gathers_at_a_level_match_the_hardware is one texel off in every channel (hardware matches the model) #3259
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from Marvisak/VIctory. Originally posted by zzm1234560621-prog on 2026-11-26T14:52:10Z.
emit::synthetic_tests::gathers_at_a_level_match_the_hardwarefails whenever WARP is the device, and every channel is off by exactly one texel:leftis the device,rightthe test's model. It is not rounding and not one lane's arithmetic: all four gathered channels are the neighbouring texels, on the same lane, in one direction.Why this looks like a WARP-side difference and not the lowering
VICTORY_WARP=1, orVICTORY_WARP=1+VICTORY_D3D12_WARP=1,--test-threads=1), which is also where oni-swr's four failures come from.warp == false); this is the one that remains, so it is the only thing between that configuration and green.Directions I would try
floor(u), floor(v); a host that rounds half-texel differently, or that applies the level's+0.5offset, lands exactly one texel over in both axes — which is what the numbers show. Compare the coordinate the lowering passes with what the model assumes, and see whether WARP floors before or after the level offset.image_gather4_ltakes an explicit LOD. One level wrong would change which mip is sampled; if the test's texture is small enough that a neighbouring mip is shifted by one texel, it looks like this. Worth checking whetherrightandleftcorrespond to adjacent mips before assuming a coordinate bias.supports_wave_lanes), rather than a failure — but that should follow the diagnosis, not replace it.What I did not do
I did not change anything here: I was chasing the WARP-only configuration for #3242 and this is what was left. The model side (
synthetic_tests' gather reference) would need whoever owns it to say which of the two readings above is the intended geometry.No game files. AI-assisted (Claude).