test(shader): add regression test for ImageGather4h and map packed gather variants #1053
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1053"
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 Kikoarl on 2026-10-07T05:16:08Z.
What
core/libs/tests/ImageSampleGather.cppforImageGather4h(MIMG opcode0x61u).ImageGather4hto its packed variantsIMAGE_GATHER4H_PCKandIMAGE_GATHER8H_PCKintools/progress.pyunderOPCODE_VARIANTS.IMAGE_GATHER4H(horizontal gather withRdnaImageSampleFlagGatherHorizontal) and its packed variants. The instruction was already implemented in the decoder and SPIR-V emitter (HorizontalOffsets), and this PR adds the regression test and progress tracking.Tested
ninja -C /tmp/anyps5_build image_sample_gather_testsandctest --test-dir /tmp/anyps5_build -R image_sample_gather --output-on-failurepass 100%.python3 tools/progress.pyadvances shaders by +2 to 1137 / 1166 (97.51%).Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.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-07T19:36:05Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)tools/progress.pyL56-59Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-08T02:49:26Z.
Same problem as #1049:
IMAGE_GATHER4H_PCKandIMAGE_GATHER8H_PCKare separate opcodes the decoder doesn't handle, so counting them underImageGather4hadds +2 without implementing anything, and the new test line already passes on main. If a title's shader hits one of them, comment here with the title ID and the log line.Pull request closed