test(shader): cover image load and store by2 and by4 variants and count as tested #1049
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1049"
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-07T04:35:49Z.
What
According to the AMD RDNA 2 ISA manual,
image_loadandimage_store(along with their mip-level formsimage_load_mipandimage_store_mip) support 2-component (dmask = 0x3) and 4-component (dmask = 0xf) transfers, which disassemblers andrdna_isa.txtlist under separate_BY2and_BY4mnemonics.Following the established precedent in PR #148, PR #363, PR #380, and PR #942 ("count tested shared shader instruction variants"), this PR:
core/libs/prx/libSceAgcDriver/tests/execution/ImageLoadStoreBy.cppcovering:IMAGE_LOAD_BY2(opcode 0x00, dmask 0x3)IMAGE_LOAD_BY4(opcode 0x00, dmask 0xf)IMAGE_LOAD_MIP_BY2(opcode 0x01, dmask 0x3)IMAGE_LOAD_MIP_BY4(opcode 0x01, dmask 0xf)IMAGE_STORE_BY2(opcode 0x08, dmask 0x3)IMAGE_STORE_BY4(opcode 0x08, dmask 0xf)IMAGE_STORE_MIP_BY2(opcode 0x09, dmask 0x3)IMAGE_STORE_MIP_BY4(opcode 0x09, dmask 0xf)tools/progress.pyunderOPCODE_VARIANTS, advancing shader progress from 1135 to 1143 / 1166 (98.03%).Tested
Linux x86_64 (
/tmp/anyps5_build):ninja -C /tmp/anyps5_build agc_driver_image_load_store_by_testspassedctest --test-dir /tmp/anyps5_build -R image_load_store_by --output-on-failurepassedpython3 tools/progress.py /tmp/progress_checkverified 1143/1166 (98.03%)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:01Z.
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.pyL55-59Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-08T02:49:23Z.
Closing:
IMAGE_LOAD_BY2,_BY4and the other_BY*forms are opcodes of their own, but the test runs plainIMAGE_LOAD/IMAGE_STORE(opcodes 0, 1, 8, 9) with a wider dmask, which main already decodes, so the only change is +8 in the progress count (see #1214). If a title's shader uses one of the real_BY*opcodes, please comment here with the title ID and where it stops.Pull request closed