mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:55:52 +01:00
[PR #892] [MERGED] tests: correct resident TFE status expectations (SHADER-1266) #930
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#930
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/892
Author: @moffington
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @aslan2142
Base:
main← Head:fix/shader-1266-tfe-fixtures📝 Commits (2)
8afbba1tests: expect resident image_load tfe to preserve seeded status VGPRs (SHADER-1266)b0224e4Merge branch 'main' into fix/shader-1266-tfe-fixtures📊 Changes
2 files changed (+21 additions, -14 deletions)
View changed files
📝
runtime/test/shaders/cs_imgload_d16_tfe.asm(+10 -6)📝
runtime/test/shaders/cs_imgload_tfe.asm(+11 -8)📄 Description
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 #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.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.