Repository navigation
tests: correct resident TFE status expectations (SHADER-1266) - #892
Conversation
SweatierKey
left a comment
There was a problem hiding this comment.
Independent A/B hardware verification on NVIDIA GeForce RTX 5070 Ti (driver 616.92, Windows 11, Vulkan 1.4) against origin/main@a28927849:
Built & validated (runtime/test/shaders/build.py + spirv-val --target-env vulkan1.3, both native and LEONIDA_W64_EMULATE=1):
cs_imgload_tfe+cs_imgload_d16_tfe:2 translated, 2 pass spirv-valin both modes.
A/B execution via vk_store_test.exe (load / load-d16):
- Before (
origin/main@a28927849): bothcs_imgload_tfeandcs_imgload_d16_tfefail in native andLEONIDA_W64_EMULATE=1withr32 sint (sint view): 64 bad, texel(5,3) = 2071(rc=1). - After (
8afbba14b): bothcs_imgload_tfeandcs_imgload_d16_tfepass in native andLEONIDA_W64_EMULATE=1with0 badon all 3 views (rgba8 unorm,r32 uint,r32 sint,texel(5,3) = 71,rc=0). scripts/check_no_game_data.py: clean.
Clean minimal fix matching the resident-TFE semantics measured on hardware.
GPUs tested: NVIDIA GeForce RTX 5070 Ti (driver 616.92, Windows 11)
AI-assisted: yes
|
Independent verification on NVIDIA RTX A2000 12GB, Windows 11, NVIDIA 32.0.16.2114, Vulkan 1.4.363, LLVM-MC 21.1.8: |
|
Independent Linux/RTX 4070 verification of the fixture-only fix (no game files): built cs_imgload_tfe + cs_imgload_d16_tfe from head 8afbba1 with runtime/test/shaders/build.py (2 translated, 2 spirv-val clean) and ran vk_store_test load on NVIDIA GeForce RTX 4070, driver 620.70.06, Vulkan 1.4.357, Arch Linux. Both now report 0 bad in all three views with texel(5,3)=71 (expected 100-(8*3+5)); the old fixtures on this same card failed the r32 sint view with 64 bad / texel(5,3)=2071. This matches the PR premise: resident image_load tfe preserves the seeded status VGPRs (0x3e8/0x7d0) through the current translator. Not claiming; review evidence only. |
|
Tested |
Tested 0d27fdc merged locally onto main 1504c1a: cs_imgstore_cube passes everywhere, and nothing else changes state. Devices: RADV, Mesa 26.3.1, Linux: - AMD Radeon RX 7900 XTX (RDNA3, gfx1100); - Ryzen 9 7950X3D iGPU (RDNA2, gfx1036); - llvmpipe. New fixture, 10 runs each with run_gpu_tests.py --filter cs_imgstore_cube --require-pass: - 10/10 natively and 10/10 with LEONIDA_W64_EMULATE=1 on all three devices, 0 bad for all three cube images; - the validation layer, with sync validation on, reports nothing on either AMD GPU. Regressions, main vs main + #335: - Full run_gpu_tests.py on both GPUs, native and emulated: 232/250 → 233/251. The only change is the new PASS. - Every existing vk_store_test fixture keeps its state. - tests/test_shader_checks.py and tests/semantic/test_image_cube_store_glc.py pass on both trees. CI: this head's checks are still queued on GitHub, so I ran the Linux jobs locally. They give the same result on both trees. The only failures are already on main: - cs_imgload_tfe and cs_imgload_d16_tfe (#31, fixed by #892); - tests/test_tool_stdout_encoding.py. AI-assisted (Claude Code, Claude Opus 5.5).
|
Tested
So AMD's proprietary Windows compiler on native wave64 hardware also preserves the seeded status VGPR on resident reads. Full record in #1017. No game files. AI-assisted. |
|
Reviewed and merging. The fixtures were wrong, not the translator: a resident
AI-assisted (Claude Code, Claude Opus 5.5). |
…X4080-WIN-REFRESH) The record named d42773d and the two tfe failures, which pass since ProjectLeonida#892. On current main run_gpu_tests.py gives 203/252 native and 235/252 with LEONIDA_W64_EMULATE=1, 0 failed in both. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
run_gpu_tests.py: 235/252 passed, 17 skipped, no failures, native and with LEONIDA_W64_EMULATE=1; the two imgload tfe fixtures pass since ProjectLeonida#892. ctest: 292 passed, 12 skipped, 4 failed. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Merging. **Why merged:** GPU-RTX4080-WIN-REFRESH: the author's own RTX4080.txt (from #541) re-run at 71f99e2: 203/252 native and 235/252 emulated, 0 failed. The tfe failures are gone after #892, and a History line keeps the old numbers. **Why it's good:** Record update, docs tests 47 passed. Tested on Windows 11 / RTX 4070 SUPER: merged alone onto main 6293c1c. With it in, the repo-consistency set (cmake/translator-deps, shader_stage_resume, runtime_paths, docs, make_game, no-game-data, run_semantic_tests) gives 571 passed / 5 skipped / 0 failed, and check_no_game_data on the changed files is clean. Security read of the three-dot diff: no binaries, game data, downloads, network calls, new env vars or build/CI changes. AI-assisted (Claude Code, Claude Opus 5.5).
|
Tested
Conflict worth settling before merge: #291 ( AI-assisted; synthetic fixtures only, no game data. |
Brings in the tfe fixture fix (ProjectLeonida#892) that the Runtime workflow's GPU tests need. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…xture fix (GPU-INTEL-MTL-TFE) ProjectLeonida#892 corrected cs_imgload_tfe and cs_imgload_d16_tfe to expect the seeded status kept. At main 0b45fdc both pass on this Intel GPU, native and with LEONIDA_W64_EMULATE=1. AI-assisted.
… no failures left (GPU-4070TI-RERUN) The record from 84347bb listed two failures, cs_imgload_tfe and cs_imgload_d16_tfe. Both pass since #892 (SHADER-1266), and the four fixtures added since then pass too: 261 shaders translated and valid, native 203/252 with 49 skipped, LEONIDA_W64_EMULATE=1 235/252 with 17 skipped, no failure in either, ctest 74/74. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Fixes #31.
Claimed in the coordination issue as:
SHADER-1266Summary
runtime/test/shaders/cs_imgload_tfe.asmandruntime/test/shaders/cs_imgload_d16_tfe.asmso residentimage_load ... tfechecks preservation of each pre-seeded status VGPR rather than expecting0.tools/rdna2spirv.pyuntouched.v8 = 0x3e8,v12 = 0x7d0) before the twoimage_load ... tfeinstructions and independently checks both via(v8 ^ 0x3e8) | (v12 ^ 0x7d0)added intov11, so zeroing or modifying either status VGPR shifts every texel.Context & Related Work
60450101, LLVM23.1.6) showed that a residentimage_load ... tfeleaves the status VGPR unchanged (preserving the pre-seeded value), consistent with LLVMSIISelLowering.cppinitializing the TFE/LWE status register prior to the instruction.tools/rdna2spirv.pyto write0tovdata[data_vgprs]on residentimage_load/image_load_mip(the same translator change previously closed in rdna2spirv: zero the tfe/lwe status VGPR on image_load and image_load_mip (SHADER-1266) #98). This PR keepsmain's current translator semantics intact and updates the two inherited fixtures instead.Validation (Linux, NVIDIA GeForce RTX 3060, Driver
615.78.08, Vulkan1.4.351)scripts/run_gpu_tests.py):258/258translated andspirv-valvalid;200/249passed,49skipped,0failed (cs_imgload_tfeandcs_imgload_d16_tfeboth pass withr32 sint (sint view): 0 bad, texel(5,3) = 71,0regressions vs.main).LEONIDA_W64_EMULATE=1):258/258translated andspirv-valvalid;232/249passed,17skipped,0failed (0regressions vs.main).tools/rdna2spirv.pycausesrun_gpu_tests.py --filter tfeto fail both corrected fixtures (0/2passed:cs_imgload_tfeandcs_imgload_d16_tfebothFAIL,64 bad, texel(5,3) = 2111).scripts/check_no_game_data.pypassed on both modified.asmfiles.Limitations
image_load ... tfe(32-bit andd162D) only; sparse-page NACK (status != 0) andlwebehavior remain outside this measurement.No game files and nothing online. AI-assisted.