fix(shader): preserve adjusted sampler table reads during Windows loading #27779

Open
lgqdaxia wants to merge 3 commits from upstream-pr/27779 into main
lgqdaxia commented 2026-11-27 10:39:22 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by lgqdaxia on 2026-11-27T10:39:22Z.


What

A Windows loading draw failed with GetSamplerResource dword 0 is not a valid runtime value. The shader read a sampler from an indexed table and ORed a lane mask into bits 12–29 of its fourth word before an adjusted image sample. The table recognizer lost the underlying read and sent the descriptor down the runtime-value path.

The table recognizer now uses the existing sample-adjust rule. It removes an OR operand only when its possible bits are confined to the reserved field and every consumer of the handle uses adjusted sampling. The selected entry still supplies its filter, LOD and border settings. Original sample-adjust rule

Tested

On Windows, the image-table regression dispatches six workgroups across float, unsigned and signed texture records. The control on main at 30cb03d5d47 reproduced the loading error. With the change, its complete GPU readback matched the unmodified table fixture. The Khronos validation layer was active in both runs, with zero validation errors and zero skipped cases.

A separate pixel-draw fixture on the bindless development branch selects two different LOD biases from one sampler table. Both the descriptor-set and bindless controls reproduced the error. With the change, both modes produced the expected mip stripe at all 2,048 pixels. In the Windows loading draw that previously failed, the planner recovered a four-word sampler column with 128 records and reported zero malformed records. Bindless development branch

On Linux with RADV and a Radeon RX Vega 56, agc_driver_image_table passed 3/3 runs at 1aab4aaa with no validation errors reported. Restoring the base ResourceTracker.cpp with the same test reproduced the runtime-value error. Independent verification by tablefrogpillow

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 and the licence notice of code adapted from upstream (see AGENTS.md)
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • 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
  • Fixes: none
  • Unblocks: The Game
  • GPUs tested: NVIDIA GeForce RTX 3080 Laptop GPU, NVIDIA 621.14, Windows 11 Pro build 26300 and AMD Radeon RX Vega 56, RADV on Linux
  • AI-assisted: yes

Summary by CodeRabbit

  • Bug Fixes
    • Improved handling of table-backed samplers used with adjusted image sampling, while keeping ordinary sampler behavior unchanged.
  • Tests
    • Added coverage confirming that an adjusted sampler instruction preserves valid-record output and that mixing adjusted and ordinary samples is rejected with a runtime-value error.
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5525212654 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/27779). Originally posted by [lgqdaxia](https://github.com/lgqdaxia) on 2026-11-27T10:39:22Z. --- ### What A Windows loading draw failed with `GetSamplerResource dword 0 is not a valid runtime value`. The shader read a sampler from an indexed table and ORed a lane mask into bits 12–29 of its fourth word before an adjusted image sample. The table recognizer lost the underlying read and sent the descriptor down the runtime-value path. The table recognizer now uses the existing sample-adjust rule. It removes an OR operand only when its possible bits are confined to the reserved field and every consumer of the handle uses adjusted sampling. The selected entry still supplies its filter, LOD and border settings. [Original sample-adjust rule](https://github.com/boykopovar/AnyPS5/pull/7290) ### Tested On Windows, the image-table regression dispatches six workgroups across float, unsigned and signed texture records. The control on main at `30cb03d5d47` reproduced the loading error. With the change, its complete GPU readback matched the unmodified table fixture. The Khronos validation layer was active in both runs, with zero validation errors and zero skipped cases. A separate pixel-draw fixture on the bindless development branch selects two different LOD biases from one sampler table. Both the descriptor-set and bindless controls reproduced the error. With the change, both modes produced the expected mip stripe at all 2,048 pixels. In the Windows loading draw that previously failed, the planner recovered a four-word sampler column with 128 records and reported zero malformed records. [Bindless development branch](https://github.com/boykopovar/AnyPS5/pull/20519) On Linux with RADV and a Radeon RX Vega 56, `agc_driver_image_table` passed 3/3 runs at `1aab4aaa` with no validation errors reported. Restoring the base `ResourceTracker.cpp` with the same test reproduced the runtime-value error. [Independent verification by tablefrogpillow](https://github.com/boykopovar/AnyPS5/pull/27779#issuecomment-7217281531) <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> ### 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) and the licence notice of code adapted from upstream (see AGENTS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [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] Fixes: none - [x] Unblocks: The Game - [x] GPUs tested: NVIDIA GeForce RTX 3080 Laptop GPU, NVIDIA 621.14, Windows 11 Pro build 26300 and AMD Radeon RX Vega 56, RADV on Linux - [x] AI-assisted: yes <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Bug Fixes** * Improved handling of table-backed samplers used with adjusted image sampling, while keeping ordinary sampler behavior unchanged. * **Tests** * Added coverage confirming that an adjusted sampler instruction preserves valid-record output and that mixing adjusted and ordinary samples is rejected with a runtime-value error. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
arcwiser commented 2026-11-27 10:40:48 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by arcwiser on 2026-11-27T10:40:48Z.

Review: APPROVED


Reviewed the complete two-file diff and surrounding table-planning/direct-sampler paths at 1aab4aaada. The new canonicalization is appropriately conservative: it is limited to sampler dword 3 with a top-level OR, requires every direct handle consumer to be a sampler-taking image instruction using that same handle, and requires every consumer's memory plan to carry RdnaImageSampleFlagAdjust. A shared ordinary-sample consumer therefore leaves the descriptor unchanged. The recovered operand still goes through the existing scalar-read, record-stride, and source validation, while the regression compares the full output against the unmodified table fixture across all existing record classes.

Local validation: git diff --check f73d791b3df4...HEAD and python tools/check_conventions.py --base f73d791b3df4dcaa773297a93f5ae2c062ee95a3 passed. I could not run the registered GPU target here: this checkout has no initialized submodules or configured build, and check_test_registration.py accordingly reports the missing build/CMakeCache.txt. The PR's paired main/head Vulkan run and separate bindless fixture provide direct coverage of the affected path. I found no blocking issue.

AI-assisted review: yes (Codex); I independently inspected the implementation, regression construction, original sample-adjust rule in #7290, relevant consumers, and local static checks.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6086879916 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/27779#pullrequestreview-6086879916). Originally posted by [arcwiser](https://github.com/arcwiser) on 2026-11-27T10:40:48Z. **Review:** APPROVED --- Reviewed the complete two-file diff and surrounding table-planning/direct-sampler paths at `1aab4aaada`. The new canonicalization is appropriately conservative: it is limited to sampler dword 3 with a top-level OR, requires every direct handle consumer to be a sampler-taking image instruction using that same handle, and requires every consumer's memory plan to carry `RdnaImageSampleFlagAdjust`. A shared ordinary-sample consumer therefore leaves the descriptor unchanged. The recovered operand still goes through the existing scalar-read, record-stride, and source validation, while the regression compares the full output against the unmodified table fixture across all existing record classes. Local validation: `git diff --check f73d791b3df4...HEAD` and `python tools/check_conventions.py --base f73d791b3df4dcaa773297a93f5ae2c062ee95a3` passed. I could not run the registered GPU target here: this checkout has no initialized submodules or configured build, and `check_test_registration.py` accordingly reports the missing `build/CMakeCache.txt`. The PR's paired main/head Vulkan run and separate bindless fixture provide direct coverage of the affected path. I found no blocking issue. AI-assisted review: yes (Codex); I independently inspected the implementation, regression construction, original sample-adjust rule in #7290, relevant consumers, and local static checks.
MarcZX10 commented 2026-11-27 11:35:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T11:35:25Z.

Review: APPROVED


Reviewed — looks good

Nothing blocks this change based on the inspected code; the described regression test covers adjusted sampler table reads.

What I ran

Reviewed head 1aab4aaada5e642ab2caacd4691198b459c90500 from the prepared diff and repository reader context. No tests or build commands were run.

Results

Check Result Note
Diff review passed Two changed files inspected
Tests not run The PR description reports Windows runs; not independently verified

Findings

Blocking

None.

Non-blocking

None.

Not verified

No tests, build, or hardware behavior were run. The PR description's reported Windows regression runs were not independently verified. Reviewed files: core/libs/prx/libSceAgcDriver/tests/execution/ImageTable.cpp and core/shader/recompiler/Optimization/src/ResourceTracker.cpp. Excluded files: none listed in the manifest; files.json was not available as a review document.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6087522080 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/27779#pullrequestreview-6087522080). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-27T11:35:25Z. **Review:** APPROVED --- # Reviewed — looks good Nothing blocks this change based on the inspected code; the described regression test covers adjusted sampler table reads. ## What I ran Reviewed head `1aab4aaada5e642ab2caacd4691198b459c90500` from the prepared diff and repository reader context. No tests or build commands were run. ## Results | Check | Result | Note | |---|---|---| | Diff review | passed | Two changed files inspected | | Tests | not run | The PR description reports Windows runs; not independently verified | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified No tests, build, or hardware behavior were run. The PR description's reported Windows regression runs were not independently verified. Reviewed files: `core/libs/prx/libSceAgcDriver/tests/execution/ImageTable.cpp` and `core/shader/recompiler/Optimization/src/ResourceTracker.cpp`. Excluded files: none listed in the manifest; `files.json` was not available as a review document. ## To get this to a good state Nothing is required.
Plyxen commented 2026-12-03 12:37:44 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Plyxen on 2026-12-03T12:37:44Z.

Review: APPROVED


I read the diff at 1aab4aaada. Windows 11, GCC 15.2, merged into main at daa61711afe together with other open PRs (so not an isolated build), with ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 and VK_LAYER_KHRONOS_validation on an RTX 5080 (621.24) and a Radeon iGPU (26.11.2).

  • agc_driver_image_table: pass on both GPUs. The loader log shows the layer inserted and no "was not found" line, and neither run has a VUID- or SYNC-HAZARD line.
  • Control (the same tree with only this PR's source change taken out): it fails with "GetSamplerResource dword 0 is not a valid runtime value".

The red check is macOS frame_capture_minimize_replay, which main has fixed since.

Not checked: a title.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6169955847 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/27779#pullrequestreview-6169955847). Originally posted by [Plyxen](https://github.com/Plyxen) on 2026-12-03T12:37:44Z. **Review:** APPROVED --- I read the diff at `1aab4aaada`. Windows 11, GCC 15.2, merged into `main` at `daa61711afe` together with other open PRs (so not an isolated build), with `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1` and `VK_LAYER_KHRONOS_validation` on an RTX 5080 (621.24) and a Radeon iGPU (26.11.2). - `agc_driver_image_table`: pass on both GPUs. The loader log shows the layer inserted and no "was not found" line, and neither run has a `VUID-` or `SYNC-HAZARD` line. - Control (the same tree with only this PR's source change taken out): it fails with "GetSamplerResource dword 0 is not a valid runtime value". The red check is macOS `frame_capture_minimize_replay`, which `main` has fixed since. Not checked: a title. AI-assisted: yes (Claude Code)
ligmaSec commented 2026-12-03 21:02:27 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T21:02:27Z.

Review: COMMENTED


Could the image-table fixture use the same sampler handle in both an adjusted and an ordinary sample? The added test only exercises the all-adjusted case. The mixed-use fixture would protect the new handle.Uses() gate against stripping a dword-3 expression when an ordinary use still needs it.

Source review at 1aab4aaada. The head trial-merges onto 6ef4f2f73b. Focused Linux checks are queued.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6178493695 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/27779#pullrequestreview-6178493695). Originally posted by [ligmaSec](https://github.com/ligmaSec) on 2026-12-03T21:02:27Z. **Review:** COMMENTED --- Could the image-table fixture use the same sampler handle in both an adjusted and an ordinary sample? The added test only exercises the all-adjusted case. The mixed-use fixture would protect the new `handle.Uses()` gate against stripping a dword-3 expression when an ordinary use still needs it. Source review at `1aab4aaada`. The head trial-merges onto `6ef4f2f73b`. Focused Linux checks are queued. AI-assisted: yes.
MarcZX10 commented 2026-12-04 01:31:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-04T01:31:25Z.

Review: APPROVED


Reviewed — looks good

The reviewed changes at head 6347478b25acb6d5a23ffdb5940eff1e940ea3a0 preserve sampler table reads for adjusted sampling and retain validation when a sampler also has an ordinary sample use.

What I ran

Reviewed every changed line in both files listed under reviewed in files.json, plus the relevant table-planning and sampler-handling code at the pinned head. No tests or builds were run.

Reader commands
env -u ANYPS5_READ_LOG python3 repo_read.py search TryMakeTableColumn core/shader/recompiler/Optimization/src/ResourceTracker.cpp
env -u ANYPS5_READ_LOG python3 repo_read.py search GetSamplerResource core/shader/recompiler/Optimization/src/ResourceTracker.cpp
env -u ANYPS5_READ_LOG python3 repo_read.py cat core/shader/recompiler/Optimization/src/ResourceTracker.cpp 1485 1550
env -u ANYPS5_READ_LOG python3 repo_read.py cat core/shader/recompiler/Optimization/src/ResourceTracker.cpp 2920 2970

Results

Check Result Note
Changed source review passed Both reviewed files and all changed lines inspected
Runtime tests not run GPU execution tests were not run
Build not run No compilation performed

Negative control

The test change includes a mixed-use case that expects an ordinary sampler use to remain rejected; I did not run that GPU test or its negative control.

Findings

Blocking

None.

Non-blocking

None.

Sources

The table sampler adjustment is guarded by each handle use's sampling flags, then canonicalizes only the sampler dword expression (ResourceTracker.cpp at the reviewed head). Table columns use that result for sampler dword 3 (ResourceTracker.cpp at the reviewed head). The regression adds adjusted-only and mixed ordinary/adjusted cases (ImageTable.cpp at the reviewed head).

Not verified

The Windows and Linux GPU results in the PR description are author-reported and were not reproduced. No other files were excluded by the manifest; both changed files were read.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6181661537 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/27779#pullrequestreview-6181661537). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-12-04T01:31:25Z. **Review:** APPROVED --- # Reviewed — looks good The reviewed changes at head `6347478b25acb6d5a23ffdb5940eff1e940ea3a0` preserve sampler table reads for adjusted sampling and retain validation when a sampler also has an ordinary sample use. ## What I ran Reviewed every changed line in both files listed under `reviewed` in `files.json`, plus the relevant table-planning and sampler-handling code at the pinned head. No tests or builds were run. <details> <summary>Reader commands</summary> ```text env -u ANYPS5_READ_LOG python3 repo_read.py search TryMakeTableColumn core/shader/recompiler/Optimization/src/ResourceTracker.cpp env -u ANYPS5_READ_LOG python3 repo_read.py search GetSamplerResource core/shader/recompiler/Optimization/src/ResourceTracker.cpp env -u ANYPS5_READ_LOG python3 repo_read.py cat core/shader/recompiler/Optimization/src/ResourceTracker.cpp 1485 1550 env -u ANYPS5_READ_LOG python3 repo_read.py cat core/shader/recompiler/Optimization/src/ResourceTracker.cpp 2920 2970 ``` </details> ## Results | Check | Result | Note | |---|---|---| | Changed source review | passed | Both reviewed files and all changed lines inspected | | Runtime tests | not run | GPU execution tests were not run | | Build | not run | No compilation performed | ## Negative control The test change includes a mixed-use case that expects an ordinary sampler use to remain rejected; I did not run that GPU test or its negative control. ## Findings ### Blocking None. ### Non-blocking None. ## Sources The table sampler adjustment is guarded by each handle use's sampling flags, then canonicalizes only the sampler dword expression ([ResourceTracker.cpp at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/6347478b25acb6d5a23ffdb5940eff1e940ea3a0/core/shader/recompiler/Optimization/src/ResourceTracker.cpp#L322-L330)). Table columns use that result for sampler dword 3 ([ResourceTracker.cpp at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/6347478b25acb6d5a23ffdb5940eff1e940ea3a0/core/shader/recompiler/Optimization/src/ResourceTracker.cpp#L858-L866)). The regression adds adjusted-only and mixed ordinary/adjusted cases ([ImageTable.cpp at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/6347478b25acb6d5a23ffdb5940eff1e940ea3a0/core/libs/prx/libSceAgcDriver/tests/execution/ImageTable.cpp#L939-L975)). ## Not verified The Windows and Linux GPU results in the PR description are author-reported and were not reproduced. No other files were excluded by the manifest; both changed files were read. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-12-04 04:15:30 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-04T04:15:30Z.

Review: APPROVED


Reviewed — looks good

The reviewed change safely removes reserved sample-adjust bits from table-backed sampler reads only when every direct consumer uses adjusted sampling.

What I ran

Reviewed head dd0f964d16d7314824aa72e3d35490073136280d. No merged-preview check was run. I inspected the prepared diff and full text for both changed files. The pinned reader search found the canonicalization helper, but its logging step failed because the run folder is read-only. No tests or builds were run.

python3 repo_read.py search canonicalizeSampleAdjustDword3

Results

Check Result Note
Diff and changed source passed Both changed files read
Tests and build not run No executable checks run
Pinned reader failed Search result returned; logging failed

Negative control

The mixed-use regression test includes an ordinary-sampling control and checks that mixed adjusted and ordinary uses are rejected. It was not run, so whether the new test fails under a negative control was not confirmed.

Findings

Blocking

None.

Non-blocking

None.

Sources

Not verified

The reported Windows and Linux GPU runs were not independently confirmed. No test execution, build, merged-preview check, or console behavior was verified. Both files listed under reviewed in files.json were read; files.json lists no excluded files.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6183117672 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/27779#pullrequestreview-6183117672). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-12-04T04:15:30Z. **Review:** APPROVED --- # Reviewed — looks good The reviewed change safely removes reserved sample-adjust bits from table-backed sampler reads only when every direct consumer uses adjusted sampling. ## What I ran Reviewed head `dd0f964d16d7314824aa72e3d35490073136280d`. No merged-preview check was run. I inspected the prepared diff and full text for both changed files. The pinned reader search found the canonicalization helper, but its logging step failed because the run folder is read-only. No tests or builds were run. ```text python3 repo_read.py search canonicalizeSampleAdjustDword3 ``` ## Results | Check | Result | Note | |---|---|---| | Diff and changed source | passed | Both changed files read | | Tests and build | not run | No executable checks run | | Pinned reader | failed | Search result returned; logging failed | ## Negative control The mixed-use regression test includes an ordinary-sampling control and checks that mixed adjusted and ordinary uses are rejected. It was not run, so whether the new test fails under a negative control was not confirmed. ## Findings ### Blocking None. ### Non-blocking None. ## Sources - [Sampler table handling at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/dd0f964d16d7314824aa72e3d35490073136280d/core/shader/recompiler/Optimization/src/ResourceTracker.cpp#L322-L330) - [Adjusted and mixed-use regression coverage at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/dd0f964d16d7314824aa72e3d35490073136280d/core/libs/prx/libSceAgcDriver/tests/execution/ImageTable.cpp#L939-L975) ## Not verified The reported Windows and Linux GPU runs were not independently confirmed. No test execution, build, merged-preview check, or console behavior was verified. Both files listed under `reviewed` in `files.json` were read; `files.json` lists no excluded files. ## To get this to a good state Nothing is required.
Plyxen commented 2026-12-04 16:09:13 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Plyxen on 2026-12-04T16:09:13Z.

Review: APPROVED


Re-verified head dd0f964d16 on Windows 11 with GCC 15.2, applied alone to main 484b0368d3. The two new commits extend ImageTable.cpp with the mixed-use case. Run with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1, VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation and VK_LOADER_DEBUG=layer (layer 1.4.363).

agc_driver_image_table main this PR PR tests, ResourceTracker.cpp reverted
RTX 5080 (621.24) pass pass fails
AMD Radeon iGPU (26.11.2) pass pass fails

The negative fails with "GetSamplerResource dword 0 is not a valid runtime value" on the adjusted sample. Each log shows the loader inserting the layer, and none has a VUID-.

Not checked: a title.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6192363599 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/27779#pullrequestreview-6192363599). Originally posted by [Plyxen](https://github.com/Plyxen) on 2026-12-04T16:09:13Z. **Review:** APPROVED --- Re-verified head dd0f964d16 on Windows 11 with GCC 15.2, applied alone to main 484b0368d3. The two new commits extend `ImageTable.cpp` with the mixed-use case. Run with `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1`, `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation` and `VK_LOADER_DEBUG=layer` (layer 1.4.363). | `agc_driver_image_table` | main | this PR | PR tests, `ResourceTracker.cpp` reverted | |---|---|---|---| | RTX 5080 (621.24) | pass | pass | fails | | AMD Radeon iGPU (26.11.2) | pass | pass | fails | The negative fails with "GetSamplerResource dword 0 is not a valid runtime value" on the adjusted sample. Each log shows the loader inserting the layer, and none has a `VUID-`. Not checked: a title. AI-assisted: yes (Claude Code)
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/27779:upstream-pr/27779'
git switch 'upstream-pr/27779'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/27779'
git switch 'upstream-pr/27779'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/27779'
git switch 'upstream-pr/27779'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/27779'
git switch 'main'
git merge --squash 'upstream-pr/27779'
git switch 'main'
git merge --ff-only 'upstream-pr/27779'
git switch 'main'
git merge 'upstream-pr/27779'
git push origin 'main'
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!27779
No description provided.