feat(shader): decode MIMG opcode 0xb8 as image_sample_c_o_a #8015
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/8015"
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 fma-rc on 2026-10-19T17:42:42Z.
What
Death Stranding 2 (PPSA02015) stops at 61.7 s on
mainwith #5426 and #7978 when it first draws with a shader that uses MIMG opcode 0xb8:This decodes 0xb8 as
image_sample_c_o_a. LLVM's gfx1030 disassembler reads the same instruction words with bit 0 clear asimage_sample_c_o, and the_arows already onmain(0xa0, 0xa1, 0xa5, 0xa8, 0xb0) are the base opcode plus 0x80 with the adjust flag, so the new row is compare, offset and adjust on the existing sample path.The title also registers shaders with MIMG 0xc8 and 0xd8. It does not use them before its next stop, so they still throw and are not part of this PR.
Tested
Linux (Arch, GCC 16.2.1) and Windows Server 2025 (WinLibs GCC 15.2, no GPU), on
mainb6583dd868with this PR; after the rebase ontoe90a1d1802(no recompiler or AGC changes) the named tests pass again on NVIDIA.image_sample_gatherfails onmainwith this PR's test (unsupported MIMG opcode 0xb8) and passes with the change, 3 of 3 runs each.^image_sample_gather$|^agc_driver_image_sample_|^agc_rdna_pass on NVIDIA, RADV and lavapipe; the Windows build passes all 1683 tests.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)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-19T17:57:13Z.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
core/libs/tests/ImageSampleGather.cppImported from boykopovar/AnyPS5. Originally posted by wachi35676 on 2026-10-19T23:12:34Z.
Windows runs with GPUs, since the Windows run in the description had none.
Windows 11 Home 26300, WinLibs GCC 15.2.0, Release,
BUILD_TESTING=ON,main9127ea36dwith this head merged. GPUs: RTX 5070 Ti (NVIDIA 617.42) and the AMD Radeon iGPU (RDNA2,1002:13c0, AMD proprietary driver 2026.04.17,ANYPS5_GPU=AMD).ANYPS5_REQUIRE_VULKAN=1,ctest -j4, failures rerun serially (there were none).image_sample_gather, everyagc_driver_image_sample_*test,agc_rdna_*and the image gather tests (15 in all) pass on both GPUs.RdnaImageOpDecoder.cppback tomain,image_sample_gatheraborts withunsupported MIMG opcode 0xb8.0xf0e00109by hand: OP (bits 24:18) is 0x38 (image_sample_c_o) and OPM (bit 0) is 1, so it is 0xb8 = 0x38 + 0x80. That fits the existing_arows (0xa0, 0xa1, 0xa5, 0xa8, 0xb0). DMASK is 1 and DIM is 2D._c_o_a.main9127ea36dwith #8078, #8046, #8069, #8070, #7668, #8015 and #8026 merged together: 61 of the 62 related tests pass; the other,agc_driver_depth_compare_copy, fails withthe guest block is not write-watchedafter WSL reportsasynchronous userfaultfd write protection failed, an environment limit.AI-assisted: yes (Claude Code); results above were run on this machine.