Repository navigation
Conversation
At the center of the test texture red and green have the same value. Exchanging the two packed halves passed that check on hardware while 3584 pixels contained the wrong colors.
The zero S# bound a fallback with identical filtering. With only the fallback changed to linear, the zero key alters 4032 pixels while the key encoded in the shader preserves all 4096.
|
The D16 runner also supplied four zero sampler words, unlike the literal S# in the fixture. Both Vulkan sampler slots use nearest filtering, which masked the resulting lookup miss. On RTX 5080 I temporarily made only fallback sampler 0 linear: the old key then produced 4032/4096 wrong pixels (first at x=4,y=0), while the encoded key gave 4096/4096 exact. Commit 726aad7 registers the encoded key. With the stock sampler configuration restored, the published head passed all 4096 pixels again on RTX 5080 and Radeon Graphics. AI-assisted. |
|
Tested
No game files were used. |
|
Tested on Windows 11 with two GPUs on one machine (runtime built from this PR's head, MSVC 14.51): pass.
The Intel |
|
Closing in favour of the earlier #826, which already implements the full-frame D16 checker in both runners. I missed that existing claim. I sent the distinct sampler-key correction and GPU controls to the author there. |
Claimed in the coordination issue as: #1218 (comment)
What and why
The D16 texture test judged the center of the 8×8 point-sampled gradient. At that pixel the expected R, G and B all widen to 0.501953125, so swapping packed halves in the shader output passed. Check every RGBA component of the 64×64 readback against the sampled UNORM8 texel rounded to binary16 and widened back to float. The shader and translator behaviour are unchanged.
Tested
scripts/run_gpu_tests.py --filter ps_texture_sample_d16assembled and translated both fixture stages, both passed spirv-val, and the draw passed.python -m unittest discover -s tests -p "test_run_gpu*.py": 57 passed. The new CPU regression uses the expected binary16 bit patterns and verifies that the checker rejects the swapped frame.Checklist