Verify packed RCAS neighbor coordinates by GPU readback #134
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/135"
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 R0Y00/Xbox2Windows. Originally posted by descent81 on 2026-11-21T16:51:23Z.
<html>
The existing RCAS packed-coordinate test checks whether the generated HLSL preserves both 16-bit halves of a machine-code literal. This PR adds a GPU readback test for the next question: which texel does that HLSL actually fetch?
The fixture fills an 8×8 texture with unique IDs (
8*y + x). It passes synthetic gfx1013 instruction bytes through the project's disassembler and translator, executes the translated coordinate and load operations in a D3D11 compute harness, and compares all 64 reads with an independent CPU reference.0x0000ffff0xffff00000xffffffffAll 384 comparisons matched across the three offsets and two backends. For the negative control, I changed the upper half of the left-offset literal while keeping the CPU expectation fixed. Both backends then read 18 instead of 26 at the center and reported 55 mismatches out of 64.
The fixture, reproduction instructions, and measured output are in
</html>tests/rcas_coordinate_readback/. It exercises the translated RCAS coordinate and load fragment with synthetic inputs; it does not require a game archive or the full upscaler.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-21T17:17:38Z.
Please register the new readback case in the Windows build and CTest, including the WARP positive case and the changed-coordinate negative control. That will let CI repeat the comparison from a clean checkout.