Repository navigation
Conversation
|
The resident image_load TFE path at de87b1a still writes zero to the appended status VGPR. The #98 review found that this changes observable results: GFX1036 preserved the seeded status, and the RTX 5060 Ti negative control returned 0 instead of 0x5a5a03f5 while still fetching 0x64. #98 was closed after that review. Could we keep the resident TFE status write out of this PR until the fixture and translator agree? The experiment covers resident image_load TFE only. Sparse NACK, LWE and other instruction variants remain unverified. AI-assisted. |
|
Tested
Note: the PR currently shows CONFLICTING against |
|
Tested de87b1a on AMD Radeon RX 6900 XT (RADV Navi 21, Mesa 26.2.5, Linux 7.3.1 CachyOS): pass
Confirms fix for issue #31 on discrete RDNA2 desktop hardware under Linux Mesa RADV. AI-assisted: yes |
… 11) on main 8f481cf (GPU-RTX3050-LAPTOP) run_gpu_tests.py 197/248 native and 229/248 with LEONIDA_W64_EMULATE=1; the two tfe fixtures fail as on the other NVIDIA and Intel records and pass with ProjectLeonida#291. Indexed in docs/gpu_test_results.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Tested de87b1a (cherry-picked onto main 21625bc) on AMD Radeon 660M (RDNA2 iGPU, gfx1035), Adrenalin 32.0.21045.1000, Windows 11 26200: |
|
Additional independent validation on NVIDIA RTX A2000 12GB, Windows 11, Vulkan 1.4.363, NVIDIA driver 32.0.16.2114, LLVM 21.1.8: |
Original description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):#8968addedcs_imgload_tfeandcs_imgload_d16_tfeonmain, and both fail on an NVIDIA GeForce RTX 5060 Ti (r32 sint (sint view): 64 bad, texel(5,3) = 2071instead of71) becauseimage_read_typednever wrote0into the trailingtfe/lwestatus VGPR (vdata[data_vgprs]), leaving the seeded0x3e8(1000) value untouched.Claimed in
#9677.Changes
tools/rdna2spirv.py: passstatus=("tfe" in mods or "lwe" in mods)fromimage_load(typed andglccoherent) andimage_load_mip(2D and 3D) intoimage_read_typed, and write0tovdata[data_vgprs]((popcount(dmask) + 1) // 2underd16, elsepopcount(dmask)) viaself.dst(...)so inactive lanes stay preserved.tests/semantic/test_image_load_tfe.py: unit tests coveringtfe,lwe,d16packing (dmask:0x3,0x7),glc, and 2D/3Dimage_load_mip.docs/design.md: document thetfe/lwestatus VGPR rule underTyped image loads.Tested
llvm-mc 21.1.8, Python 3.14.4)python -I scripts/run_gpu_tests.py --build runtime/build --filter imgload: 4/4 passed (cs_imgload,cs_imgload_d16,cs_imgload_tfe,cs_imgload_d16_tfe; 4/4spirv-val) — previously 2/4 (cs_imgload_tfeandcs_imgload_d16_tfefailed with2071)python -m unittest discover -s tests/semantic -p test_image_load_tfe.py: 3/3 passedpython -m unittest discover -s tests/semantic -p test_mem_crash_forms.py: 1/1 passedpython -m unittest discover -s tests/semantic -p test_image_coherent.py: 10/10 passed (1 skipped)python -I tests/test_image_load_typed.py: 23/23 passed (2 skipped)python -m compileall -q make_game.py tools testsandpython -I scripts/check_no_game_data.py ...: passedAI-assisted.