test(shader): pin MIMG tfe and lwe status registers as measured on gfx1036 #24954
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/24954"
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?
Imported from boykopovar/AnyPS5. Originally posted by Jirka135 on 2026-11-21T12:50:32Z.
What
Test-only: pins the MIMG
tfe/lwestatus VGPR as measured on RDNA2 and records the measurement in the debt entry forRdnaImageOpDecoder.cpp.Measured on gfx1036 (AMD Windows driver 32.0.21045.29003) with the hardware oracle, wave32 and wave64: the VGPR after the data is never written (keeps its old value) for
tfe,lweand both, onimage_load,image_load_mip,image_sample_lz,image_sample_l,image_gather4_lz,image_get_resinfo,image_get_lodandimage_store(alsod16, dmask 3 and 9), for in-bounds and out-of-bounds texels, mips past the last level, and a T#MIN_LOD_WARNof 1.0 or 15.99 above an LOD of 0. The debt entry previously saidlweon sample/gather writes it when the LOD is belowMIN_LOD_WARN; that did not happen on gfx1036. The recompiler's output, run throughagc_oracle_runner(HW_ORACLE_RUNTIME=vulkan) on an RTX 5090 and on gfx1036, matches.The new
ImageTexelStatusBoundsexecution test pre-fills the status registers with 0xdeadbeef and checks data and status for 32 results per lane plus the texels written byimage_store tfe, for bothMIN_LOD_WARNvalues in wave32, wave64 and wave64 split. It complements the existing wave32ImageTexelStatustest.Still unmeasured: a fetch from an unmapped page of a partially resident texture, and the PS5's gfx1013.
Side observation, not changed here: on a 1-channel 32_FLOAT texture with DST_SEL Y or W, gfx1036 repeats x where the recompiler returns 0/1.0 (the test uses DST_SEL 0x204).
Tested
Windows 11 Enterprise 10.0.26300, WinLibs GCC 15.2.0, Release, rebased on
main528dfe9438. Per GPU (NVIDIA default,ANYPS5_GPU=AMD),ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_LOADER_DEBUG=layer ctest --test-dir build -R '^agc_driver_image_texel_status_bounds$' -V: 3 runs with the layer and 1 without before the rebase, 1 with and 1 without after it, all passed. Every layer run logsInsert instance layer "VK_LAYER_KHRONOS_validation"(Khronos validation 1.4.369), none logswas not found, and no log has aVUID-line. Runtime under 1 s per GPU.check_conventions.py --base upstream/main,check_test_registration.pyandpr_overlap.py --branch(no overlap) pass.debt_fold.py --checkreports only the existingfeat-libwebrtc-rnn-vad.mdfailure thatmainalso has.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)1002:13c0), driver 32.0.21045.29003, Windows 11🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T13:31:00Z.
Review: APPROVED
Reviewed — looks good
The reviewed change adds a focused execution test and debt record; I found no blocking defect in the changed code.
What I ran
Read the prepared diff and both changed files at head
eb9961e284cc193fc966e7dee9de5a11949c1fab. No commands or tests were run.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
Did not verify test registration, run the new test, or independently confirm the hardware measurements and reported test results. No excluded changed files are listed in the manifest;
files.jsonwas unavailable through the reader.To get this to a good state
Nothing is required.