fix(tools): count packed MIMG variants as decoded shader instructions #942

Merged
Kikoarl merged 1 commit from upstream-pr/942 into main 2026-10-06 21:21:31 +00:00
Kikoarl commented 2026-10-06 19:00:26 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Kikoarl on 2026-10-06T19:00:26Z.


What

ImageLoadPck, ImageLoadMipPck, ImageStorePck and ImageStoreMipPck (implemented in #557 and #561) are decoded and supported for both 2- and 4-dword transfers via dmask. However, rdna_isa.txt lists the 2- and 4-dword forms under separate mnemonics (IMAGE_LOAD_PCK2, IMAGE_LOAD_PCK4, IMAGE_LOAD_MIP_PCK2, IMAGE_LOAD_MIP_PCK4, IMAGE_STORE_PCK2, IMAGE_STORE_PCK4, IMAGE_STORE_MIP_PCK2, IMAGE_STORE_MIP_PCK4).

This PR adds these variants to OPCODE_VARIANTS in tools/progress.py.

Tested

  • Existing execution tests in agc_driver_image_load_packed (tests/execution/ImageLoadPacked.cpp) and agc_driver_image_store_packed (tests/execution/ImageStorePacked.cpp) cover these dword counts across 10+ texture formats with bit-exact checks.
  • tools/progress.py reports +8 implemented shader instructions (+0.69%).

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4763350839 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/942). Originally posted by [Kikoarl](https://github.com/Kikoarl) on 2026-10-06T19:00:26Z. --- ### What `ImageLoadPck`, `ImageLoadMipPck`, `ImageStorePck` and `ImageStoreMipPck` (implemented in #557 and #561) are decoded and supported for both 2- and 4-dword transfers via `dmask`. However, `rdna_isa.txt` lists the 2- and 4-dword forms under separate mnemonics (`IMAGE_LOAD_PCK2`, `IMAGE_LOAD_PCK4`, `IMAGE_LOAD_MIP_PCK2`, `IMAGE_LOAD_MIP_PCK4`, `IMAGE_STORE_PCK2`, `IMAGE_STORE_PCK4`, `IMAGE_STORE_MIP_PCK2`, `IMAGE_STORE_MIP_PCK4`). This PR adds these variants to `OPCODE_VARIANTS` in `tools/progress.py`. ### Tested - Existing execution tests in `agc_driver_image_load_packed` (`tests/execution/ImageLoadPacked.cpp`) and `agc_driver_image_store_packed` (`tests/execution/ImageStorePacked.cpp`) cover these dword counts across 10+ texture formats with bit-exact checks. - `tools/progress.py` reports +8 implemented shader instructions (+0.69%). ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!942
No description provided.