Repository navigation
tests: dense image_load tfe fixture, resident status preserved (TFE-DENSE-FIXTURE, by tahffo68hk-hash) - #1271
Open
Mouad-Scriptz-0 wants to merge 1 commit into
Conversation
…nates Record the dense GFX1036 observations and test the integer readback without changing the older fixtures. AI-assisted.
This was referenced Nov 24, 2026
Contributor
|
Tested
AI-assisted; synthetic fixtures only, no game data. |
Contributor
|
GPU test on an NVIDIA Ada card, for the record: this passes on an RTX 4090.
Only the filtered fixture(s) were run for this PR, not the full suite or ctest; the full-suite baseline for this card on |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claimed in the coordination issue as: TFE-DENSE-FIXTURE (#14)
Depends on: none
What and why
This opens @tahffo68hk-hash's fixture patch here, as they asked on #98. The commit is theirs: author and author date are kept from their patch (
git am); I'm only the committer.The evidence for the fix is on #98: on native gfx1036, a resident
image_load ... tfekeeps the seeded status VGPR (48 raw-ISA kernels, 192 lanes, three seeds), and LLVM and Mesa ACO initialize that register themselves before the instruction.main's translator already keeps it. #892 has since corrected the two older fixtures (cs_imgload_tfe,cs_imgload_d16_tfe) to expect that.This PR adds what #892 didn't cover: an independent dense check,
runtime/test/shaders/cs_image_tfe_dense.asm. In one row of a resident 8×8 R32_UINT image, it reads x = −1, 0, 1, 2, 8, 9, 10, 11 (in bounds and out of bounds on both sides) withimage_load … tfeandimage_load … tfe d16, then stores:0x5a5a03f5, which must be kept;0x5a5ahigh half must be kept and whose out-of-bounds texels must be zero;0x5a5a03f6, which must be kept.It is judged through the existing
vk_store_test wordspath: the expected words are incheck.py'sSTORE_WORDS, whichrun_gpu_tests.pypicks up by itself.docs/design.mdgets a "Denseimage_load tfe" contract row with the gfx1036, LLVM and ACO references.Not included: tahffo's second patch, which rewrote the two older fixtures, because #892 already did that on
mainwith its own seeds. The first patch needed one context fix to apply:mainhas since edited the "Typed image stores" row next to the new row, so I keptmain's version of that row and added the new row unchanged.Tested
Intel Meteor Lake graphics (ANV, Mesa 26.2.7, Fedora 45), test programs rebuilt from
main0b45fdc21:cs_image_tfe_densecs_imgload_tfecs_imgload_d16_tfeLEONIDA_W64_EMULATE=10x00000000, expected0x5a5a03f5The negative control shows the new fixture catches a translator that clears the status. It's the same 16-of-64 failure tahffo saw on an RTX 5060 Ti. All 3 modules translated and passed
spirv-val.Also OK:
tests/test_shader_checks.py,tests/test_run_gpu_tests.py,tests/test_docs_links.py,tests/test_text_write_line_endings.py,tests/test_ci_registration.py,python -m compileall, andscripts/check_no_game_data.pyon the three changed files.GPUs tested: Intel Graphics (Meteor Lake-P, 8086:7d45), ANV Mesa 26.2.7, Fedora Linux 45; tahffo68hk-hash's runs are on #98 (RTX 5060 Ti 617.42, native gfx1036).
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (no translator change; the new row records the measured behaviour the translator already has)