fix(recompiler): describe the descriptor and modes when no runtime image mode matches #2920

Merged
XairRrR merged 1 commit from upstream-pr/2920 into main 2026-10-10 23:30:52 +00:00
XairRrR commented 2026-10-10 18:27:37 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-10-10T18:27:37Z.


What

image descriptor is incompatible with the static runtime image interface now names the descriptor's raw format, what the descriptor decodes to (numeric class, dimension, conversion and packed formats, cube, depth bits, sRGB), every mode the shader was prepared with, and the T# words.

Diagnostics only, no behaviour change. Added while bringing up PPSA05684, where the one-line message did not say what to fix.

Tested

  • Arch Linux (kernel 7.2.6), GCC 16.2.1, NVIDIA RTX 4070 Ti SUPER (driver 615.71.09), Release with BUILD_TESTING=ON.
  • Branch built alone; full ctest on main 57f96fd2: 697/698; the one failure, agc_driver_dcc_keys_first_write, fails the same way on plain main 57f96fd2. Conventions check passed.
  • Title: Uncharted: Legacy of Thieves Collection (PPSA05684), on its own bring-up branch.

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:4813483521 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2920). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-10-10T18:27:37Z. --- ### What `image descriptor is incompatible with the static runtime image interface` now names the descriptor's raw format, what the descriptor decodes to (numeric class, dimension, conversion and packed formats, cube, depth bits, sRGB), every mode the shader was prepared with, and the T# words. Diagnostics only, no behaviour change. Added while bringing up PPSA05684, where the one-line message did not say what to fix. ### Tested - Arch Linux (kernel 7.2.6), GCC 16.2.1, NVIDIA RTX 4070 Ti SUPER (driver 615.71.09), Release with `BUILD_TESTING=ON`. - Branch built alone; full ctest on main 57f96fd2: 697/698; the one failure, `agc_driver_dcc_keys_first_write`, fails the same way on plain main 57f96fd2. Conventions check passed. - Title: Uncharted: Legacy of Thieves Collection (PPSA05684), on its own bring-up branch. ### 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
github-actions[bot] commented 2026-10-10 18:33:58 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-10T18:33:58Z.


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.

Pull request Conflicting files (lines on main) Same exports Same new files
#822 core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp L784-785
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6100842822 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2920#issuecomment-6100842822). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-10T18:33:58Z. --- <!-- pr-overlap --> 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**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | #822 | `core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp` [L784-785](https://github.com/boykopovar/AnyPS5/blob/d962de918aaf5f5167c4307db27bff9454b85937/core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp#L784-L785) | | |
adriadam10 commented 2026-10-10 23:30:49 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-10T23:30:49Z.


Checked: diagnostics-only change in RuntimeImageMode (same throw, same condition), builds on current main, <cstdio> is included, no behaviour change. Note #822 touches the same lines in ResourceMaterializer.cpp, so whichever lands second needs a rebase. Merging.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6103334498 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2920#issuecomment-6103334498). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-10T23:30:49Z. --- Checked: diagnostics-only change in `RuntimeImageMode` (same throw, same condition), builds on current main, `<cstdio>` is included, no behaviour change. Note #822 touches the same lines in `ResourceMaterializer.cpp`, so whichever lands second needs a rebase. Merging.
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!2920
No description provided.