You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
AMD Radeon 780M (RDNA3 iGPU, driver 26.10.2): cs_imgload_tfe and cs_imgload_d16_tfe fail on main - the tfe fetch status VGPR is read but never written #31
AMD Radeon 780M (RDNA3 iGPU, gfx1103), AMD proprietary driver 26.10.2 (LLPC), Vulkan 1.4.359, Windows 11:cs_imgload_tfe and cs_imgload_d16_tfe fail on main (9ec34cd) - the tfe fetch status VGPR is read but never written.
What happens
Both fixtures load an image with the tfe modifier and add the fetch status VGPR into the result, so a stale status moves every texel. On this GPU every texel of the r32 sint view moves by exactly 2000:
The expected value is 100 - (8y + x) = 71 at texel(5,3), so 2071 is 71 + 2000. The fixture seeds the status VGPR with 2000 before the load, so the shader reads back the seed: the status VGPR is never written.
The two other views are exact, because they do not add the status into the result.
cs_imgload_d16_tfe fails the same way (64 bad, texel(5,3) = 2071).
Where to look
tools/rdna2spirv.py allocates the extra destination VGPR for tfe when it counts the instruction's destinations:
for r in vgpr_dest_registers(ins, extra=int("tfe" in ins["mods"])):
but the typed image load emits a plain OpImageFetch (image_load_typed -> image_read_typed), and nothing writes that extra VGPR. On hardware, an MIMG read with TFE returns the fetch status in the dword after the data; in SPIR-V there is no such status, so the translator has to write it itself (0 for a resident texel, which is what the fixture expects).
Notes
No game files; the fixture is hand-written in runtime/test/shaders/ and the test is the project's own.
AI-assisted (MiniMax Code).
The fixture comment says the companion was run on gfx1036 and an RTX 5090 in #8968; this report is from gfx1103.
Additional confirmation on an NVIDIA GeForce RTX 5070:
Tested on Leonida commit ece4ba5 on Windows. Both cs_imgload_tfe and cs_imgload_d16_tfe translate successfully and pass spirv-val, but fail when run on the GPU.
For both tests:
rgba8 unorm: 0 bad texels
r32 uint: 0 bad texels
r32 sint: 64 bad texels
At texel (5,3), actual value is 2071; expected value is 71.
Direct commands:
vk_store_test cs_imgload_tfe.spv load
vk_store_test cs_imgload_d16_tfe.spv load-d16
The full GPU test run reported 197 passed, 49 skipped, and these 2 failures. This reproduces the TFE status VGPR issue on an RTX 5070 as well.
Correction: I reproduced the 2071 result on an RTX 5070 at commit ece4ba5, but I initially described it as proof of a translator bug. After seeing the discussion around closed PR #98, I understand the fixtures’ expected value may be incorrect. My run confirms the output on this GPU; it does not establish that the translator is wrong.
Same two failures on an Intel Arc A770 (Alchemist, 16 GB; Intel Windows driver 32.0.101.9033, Vulkan 1.4.356; Windows 11 26200) on 21625bc, so this is not RADV-specific and not RDNA3-specific — it reproduces across vendors:
180/248 passed, 66 skipped on this GPU, and these are the only two failures.
That is consistent with the cause you name — the fetch status VGPR is read but never written — rather than with anything the driver does: the same 64 words and the same texel(5,3) = 2071 on a different vendor point at the translated program, not at the driver's readback.
Additional independent result on maind0da7da: NVIDIA RTX A2000 12GB, Windows 11, NVIDIA 32.0.16.2114, Vulkan 1.4.363, LLVM-MC 21.1.8.nnFull synthetic suite: 258 shaders translated, 258 pass spirv-val; 198/249 runnable cases passed, 49 skipped. The only two failures were cs_imgload_tfe and cs_imgload_d16_tfe, both at 64 bad r32 sint texels and texel(5,3) = 2071 instead of 71.nnAll 4 imgload fixtures pass with PR #291 applied. 3 TFE semantic tests and 23 typed-image tests pass on the branch. Synthetic inputs only; no game files or retail assets used. AI-assisted.
Before the merge the same two printed 64 bad, texel(5,3) = 2071 here. So it was the fixtures' expectations and not the Intel driver, which the identical failure on both vendors already pointed at. The GPU suite on this device should now be 182 passed / 66 skipped / 0 failed, and the only remaining suspects on Arc are the two tests #725 lists.
Activity
gpu-test-results: RTX 4070 Ti (NVIDIA 620.70) and Radeon 610M (gfx103…
docs/gpu_test_results: record Intel Meteor Lake graphics (ANV, Mesa 2…
superartyom commentedon Nov 24, 2026
Additional confirmation on an NVIDIA GeForce RTX 5070:
Tested on Leonida commit ece4ba5 on Windows. Both cs_imgload_tfe and cs_imgload_d16_tfe translate successfully and pass spirv-val, but fail when run on the GPU.
For both tests:
Direct commands:
vk_store_test cs_imgload_tfe.spv load
vk_store_test cs_imgload_d16_tfe.spv load-d16
The full GPU test run reported 197 passed, 49 skipped, and these 2 failures. This reproduces the TFE status VGPR issue on an RTX 5070 as well.
superartyom commentedon Nov 24, 2026
Correction: I reproduced the 2071 result on an RTX 5070 at commit ece4ba5, but I initially described it as proof of a translator bug. After seeing the discussion around closed PR #98, I understand the fixtures’ expected value may be incorrect. My run confirms the output on this GPU; it does not establish that the translator is wrong.
gpu-test-results: RTX 5060 Ti — correct the record (2 known ProjectLe…
gpu-test-results: RTX 4080: the tfe failures are the fixtures' expect…
GPU results: NVIDIA GeForce RTX 3080 Ti (Ampere) on main da60a36 (GPU…
docs/gpu_test_results: the Intel record's tfe failures are the fixtur…
gpu-test-results: RTX 3080 10 GB (Ampere, 580.178.04, Ubuntu 26.04) —…
gpu-test-results: RTX 5090 (Blackwell, Windows 11, driver 621.24)
Merge PR ProjectLeonida#376: gpu-test-results: RTX 5060 Ti — correct …
Merge PR ProjectLeonida#415: gpu-test-results: RTX 3080 10 GB (Ampere…
gpu-test-results: NVIDIA GeForce RTX 4070 (Ada, Windows 11, NVIDIA 61…
Merge pull request #547 from naorleizer/gpu-rtx3070ti
Merge pull request #560 from Timon360SB/gpu-results-rtx5070
gpu-test-results: RTX 5070 Ti record with a native Windows llvm-mc (G…
gpu-test-results: NVIDIA GeForce RTX 4070 (Ada, Windows 11, NVIDIA 61…
iiiirokuuug-rgb commentedon Nov 24, 2026
Same two failures on an Intel Arc A770 (Alchemist, 16 GB; Intel Windows driver 32.0.101.9033, Vulkan 1.4.356; Windows 11 26200) on
21625bc, so this is not RADV-specific and not RDNA3-specific — it reproduces across vendors:180/248 passed, 66 skippedon this GPU, and these are the only two failures.That is consistent with the cause you name — the fetch status VGPR is read but never written — rather than with anything the driver does: the same 64 words and the same
texel(5,3) = 2071on a different vendor point at the translated program, not at the driver's readback.LewisStephens99 commentedon Nov 24, 2026
Additional independent result on
maind0da7da: NVIDIA RTX A2000 12GB, Windows 11, NVIDIA 32.0.16.2114, Vulkan 1.4.363, LLVM-MC 21.1.8.nnFull synthetic suite: 258 shaders translated, 258 pass spirv-val; 198/249 runnable cases passed, 49 skipped. The only two failures werecs_imgload_tfeandcs_imgload_d16_tfe, both at 64 bad r32 sint texels and texel(5,3) = 2071 instead of 71.nnAll 4imgloadfixtures pass with PR #291 applied. 3 TFE semantic tests and 23 typed-image tests pass on the branch. Synthetic inputs only; no game files or retail assets used. AI-assisted.Merge pull request #472 from dcastell1/gpu-results/rtx5090
Merge pull request #335 from milk4sale/gpu-test/cube-store
iiiirokuuug-rgb commentedon Nov 24, 2026
Confirmed fixed on the Intel Arc A770 from my earlier comment.
3295055(which merges #892), same machine, same driver 32.0.101.9033:Before the merge the same two printed
64 bad, texel(5,3) = 2071here. So it was the fixtures' expectations and not the Intel driver, which the identical failure on both vendors already pointed at. The GPU suite on this device should now be 182 passed / 66 skipped / 0 failed, and the only remaining suspects on Arc are the two tests #725 lists.gpu-test-results: RTX 3080 10 GB (Ampere, 580.178.04, Ubuntu 26.04) —…
docs/gpu_test_results: the Intel record's tfe failures are the fixtur…
gpu-test-results: RTX 4070 Ti (Ada, Windows 11, NVIDIA 591.86) (GPU-R…
gpu-test-results: RTX 5070 Ti (Blackwell, Windows 11, NVIDIA 617.42) …
tests: GPU fixtures for the ds_wrxchg2_rtn_b32 pair cases and ds_wrxc…
gpu-test-results: RTX 2080 Ti (Turing) record at 5a5df8e