fix(shader): poison unsupported biased volume table entries #6881

Merged
Scramblrrrr merged 3 commits from upstream-pr/6881 into main 2026-10-18 09:27:06 +00:00
Scramblrrrr commented 2026-10-16 15:48:50 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Scramblrrrr on 2026-10-16T15:48:50Z.


What

007 First Light (PPSA11386) stops during boot with 2D biased sampling of a volume requires one slice and mip level zero only when a runtime image table contains an unsupported volume descriptor. TryRuntimeImageMode throws while resolving that record, so even a record the shader never selects aborts the whole materialization.

Return the existing Dimension rejection instead. ResolveImageTables emits the normal poison record and retains its access-time fault. RuntimeImageMode still throws for direct use. No new volume mode is enabled; the one-slice/mip-zero restriction and error text remain.

The synthetic table places a valid 2D texture beside each unsupported volume case: extra slice, nonzero base mip, last mip and max mip. It checks the valid binding survives, bad records retain their Dimension reason and descriptor, and fault metadata is retained. Supported direct one-slice access passes; unsupported direct uses still throw. No title data is in the fixture.

Tested

Windows 11 Pro, GCC 15.2, Release, SPIRV-Tools OFF; NVIDIA RTX 5070 Ti, driver 617.42.

  • Current head 107482caed, main e5c2b3c325 plus only this fix/test: affected target rebuilt, agc_shader_memory passes (0.39 s; CTest total 0.93 s). Main's newly added dynamic-storage mip-chain test is retained alongside this test. Conventions/diff checks pass. No new production change in the rebase.
  • Original head aa4018fdf, main 452494439: 10/10 selected CPU/Vulkan checks pass (7.00 s); replace only the production line with main while keeping the final fixture, and agc_shader_memory fails with the exact volume exception. Restore/rebuild: 10/10 pass (6.64 s), no skips. Tests: shader memory, SPIR-V module, graphics, shared/write tracking, position invariance, constant phi, cube clamp, plane bias on a single-level volume, image table. New poison metadata assertions are CPU tests; existing image tests execute Vulkan.
  • Independent original-head cross-tests: Linux NVIDIA/lavapipe red-green, AMD Radeon 780M/Windows shader-memory pass, and Linux RTX 3080 title run. That title run passes the boot throw and reaches gameplay, ending at its 2700 s budget at present 1534 without a guest fault. It uses a multi-PR stack and locally widened title feedback waits, so it is not a clean-main or unpatched-gameplay result.
  • Our original Windows title comparison: main plus #5799/#6317/#6332 at 00abe7efa stops before a visible frame with the exception after at least 1758 cache writes. Same integration plus this fix at fb925cae4 passes the stop and submits frames, then spends minutes compiling NVIDIA pipelines; owned stop at black startup frame 352. No selected-poison fault observed. Later combined stacks render the offline menu; no isolated FPS benefit is attributed to this fix.

Not covered: GPU execution selecting the new poisoned volume record, a full suite at the current head, or unmodified-title gameplay from this fix alone. Raw title code, assets, descriptors, requests and logs remain local.

Merge order with #6454: standalone test uses main's snapshot layout. If #6454 lands first, the two-line shared-column adaptation from 913b93635 is required. It is included and tested in our separate integration; EagleBearerYS has the corresponding merge ready on #6454. No dependency for this standalone fix/test. Coordination: 007 tracking discussion.

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 under Silent stubs in their library's technical debt file (none added)
  • 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 (none added)
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: PPSA11386, volume-descriptor boot stop, discussion #5714; not playable gameplay
  • GPUs tested: locally NVIDIA RTX 5070 Ti / 617.42 / Windows 11 Pro; independent original-head tests above include Linux NVIDIA RTX 3070, lavapipe, and AMD Radeon 780M / 25.10.20.01 / Windows 11 Home
  • AI-assisted: yes (Codex; independent cross-test assistance credited in linked comments)
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4890804154 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6881). Originally posted by [Scramblrrrr](https://github.com/Scramblrrrr) on 2026-10-16T15:48:50Z. --- ### What 007 First Light (PPSA11386) stops during boot with `2D biased sampling of a volume requires one slice and mip level zero only` when a runtime image table contains an unsupported volume descriptor. `TryRuntimeImageMode` throws while resolving that record, so even a record the shader never selects aborts the whole materialization. Return the existing Dimension rejection instead. `ResolveImageTables` emits the normal poison record and retains its access-time fault. `RuntimeImageMode` still throws for direct use. No new volume mode is enabled; the one-slice/mip-zero restriction and error text remain. The synthetic table places a valid 2D texture beside each unsupported volume case: extra slice, nonzero base mip, last mip and max mip. It checks the valid binding survives, bad records retain their Dimension reason and descriptor, and fault metadata is retained. Supported direct one-slice access passes; unsupported direct uses still throw. No title data is in the fixture. ### Tested <!-- 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. --> Windows 11 Pro, GCC 15.2, Release, SPIRV-Tools OFF; NVIDIA RTX 5070 Ti, driver 617.42. - **Current head 107482caed7ae24a0c1770f64582b06effdaf4c3**, main e5c2b3c325e485ba7fd417c47c46f48aa2c89115 plus only this fix/test: affected target rebuilt, `agc_shader_memory` passes (0.39 s; CTest total 0.93 s). Main's newly added dynamic-storage mip-chain test is retained alongside this test. Conventions/diff checks pass. No new production change in the rebase. - **Original head aa4018fdf**, main `452494439`: 10/10 selected CPU/Vulkan checks pass (7.00 s); replace only the production line with main while keeping the final fixture, and `agc_shader_memory` fails with the exact volume exception. Restore/rebuild: 10/10 pass (6.64 s), no skips. Tests: shader memory, SPIR-V module, graphics, shared/write tracking, position invariance, constant phi, cube clamp, plane bias on a single-level volume, image table. New poison metadata assertions are CPU tests; existing image tests execute Vulkan. - **Independent original-head cross-tests:** [Linux NVIDIA/lavapipe red-green](https://github.com/boykopovar/AnyPS5/pull/6881#issuecomment-6227476173), [AMD Radeon 780M/Windows shader-memory pass](https://github.com/boykopovar/AnyPS5/pull/6881#issuecomment-6232232992), and [Linux RTX 3080 title run](https://github.com/boykopovar/AnyPS5/pull/6881#issuecomment-6223428448). That title run passes the boot throw and reaches gameplay, ending at its 2700 s budget at present 1534 without a guest fault. It uses a multi-PR stack and locally widened title feedback waits, so it is not a clean-main or unpatched-gameplay result. - **Our original Windows title comparison:** main plus #5799/#6317/#6332 at `00abe7efa` stops before a visible frame with the exception after at least 1758 cache writes. Same integration plus this fix at `fb925cae4` passes the stop and submits frames, then spends minutes compiling NVIDIA pipelines; owned stop at black startup frame 352. No selected-poison fault observed. Later combined stacks render the offline menu; no isolated FPS benefit is attributed to this fix. Not covered: GPU execution selecting the new poisoned volume record, a full suite at the current head, or unmodified-title gameplay from this fix alone. Raw title code, assets, descriptors, requests and logs remain local. Merge order with #6454: standalone test uses main's snapshot layout. If #6454 lands first, the two-line shared-column adaptation from `913b93635` is required. It is included and tested in our separate integration; EagleBearerYS has the corresponding merge ready on #6454. No dependency for this standalone fix/test. Coordination: [007 tracking discussion](https://github.com/boykopovar/AnyPS5/discussions/5714). ### 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 under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file (none added) - [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 (none added) - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: PPSA11386, volume-descriptor boot stop, discussion #5714; not playable gameplay - [x] GPUs tested: locally NVIDIA RTX 5070 Ti / 617.42 / Windows 11 Pro; independent original-head tests above include Linux NVIDIA RTX 3070, lavapipe, and AMD Radeon 780M / 25.10.20.01 / Windows 11 Home - [x] AI-assisted: yes (Codex; independent cross-test assistance credited in linked comments)
github-actions[bot] commented 2026-10-16 16:11:55 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-16T16:11:55Z.


Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 907 core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp
PR 1341 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp
PR 5371 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp
PR 5500 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 5958 core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp
PR 6094 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 6177 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 6222 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 6232 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp
PR 6235 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 6412 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp
PR 6488 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp
PR 6503 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 6645 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 6674 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp
PR 6946 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp
PR 6947 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp
PR 6977 core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp
PR 6989 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 6995 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 7002 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 7223 core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp
PR 7332 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 7395 core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6219652137 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6881#issuecomment-6219652137). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-16T16:11:55Z. --- <!-- pr-overlap --> Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap. | Pull request | Shared files not compared | |---|---| | [PR 907](https://www.github.com/boykopovar/AnyPS5/pull/907) | `core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp` | | [PR 1341](https://www.github.com/boykopovar/AnyPS5/pull/1341) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp` | | [PR 5371](https://www.github.com/boykopovar/AnyPS5/pull/5371) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp` | | [PR 5500](https://www.github.com/boykopovar/AnyPS5/pull/5500) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` | | [PR 5958](https://www.github.com/boykopovar/AnyPS5/pull/5958) | `core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp` | | [PR 6094](https://www.github.com/boykopovar/AnyPS5/pull/6094) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` | | [PR 6177](https://www.github.com/boykopovar/AnyPS5/pull/6177) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` | | [PR 6222](https://www.github.com/boykopovar/AnyPS5/pull/6222) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` | | [PR 6232](https://www.github.com/boykopovar/AnyPS5/pull/6232) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp` | | [PR 6235](https://www.github.com/boykopovar/AnyPS5/pull/6235) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` | | [PR 6412](https://www.github.com/boykopovar/AnyPS5/pull/6412) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp` | | [PR 6488](https://www.github.com/boykopovar/AnyPS5/pull/6488) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp` | | [PR 6503](https://www.github.com/boykopovar/AnyPS5/pull/6503) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` | | [PR 6645](https://www.github.com/boykopovar/AnyPS5/pull/6645) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` | | [PR 6674](https://www.github.com/boykopovar/AnyPS5/pull/6674) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp` | | [PR 6946](https://www.github.com/boykopovar/AnyPS5/pull/6946) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp` | | [PR 6947](https://www.github.com/boykopovar/AnyPS5/pull/6947) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp` | | [PR 6977](https://www.github.com/boykopovar/AnyPS5/pull/6977) | `core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp` | | [PR 6989](https://www.github.com/boykopovar/AnyPS5/pull/6989) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` | | [PR 6995](https://www.github.com/boykopovar/AnyPS5/pull/6995) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` | | [PR 7002](https://www.github.com/boykopovar/AnyPS5/pull/7002) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` | | [PR 7223](https://www.github.com/boykopovar/AnyPS5/pull/7223) | `core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp` | | [PR 7332](https://www.github.com/boykopovar/AnyPS5/pull/7332) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` | | [PR 7395](https://www.github.com/boykopovar/AnyPS5/pull/7395) | `core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp` |
jotitadev commented 2026-10-16 17:00:48 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-16T17:00:48Z.

Review: COMMENTED


Linux run, which the PR doesn't cover yet: NVIDIA and lavapipe. Head aa4018fdf, merged onto main 143f13055.

Machine: Ubuntu 26.04, i7-8700, GCC 15.2, Release, SPIRV-Tools off. RTX 3070, NVIDIA 595.99.02 (Vulkan 1.4.329), and lavapipe, Mesa 26.0.3 (LLVM 21.1.8, Vulkan 1.4.335). All runs through ctest.

  • Red/green: the ShaderMemory.cpp change applied on its own over main fails agc_shader_memory with 2D biased sampling of a volume requires one slice and mip level zero only. With the fix, the ten tests from the description pass 14/14 (the regex also picks up the agc_driver_image_table* variants and agc_shared_write_partial_collect), three runs, on the 3070.
  • 3070, ^agc|shader|recompiler (display/flip/lds_atomics64 excluded, -j1): 614/615. The one failure is agc_driver_store_over_untracked. It fails 10/10 on plain main 143f13055 here too, so it is not from this PR.
  • lavapipe, 80 shader/image tests, agc_driver_image_plane_bias_on_single_level_volume and agc_driver_image_table* among them: 80/80, same as main. The per-wave key cases of the image-table tests skip themselves there (subgroup 8 doesn't hold one wave32).

Not run: a GPU execution that selects the poisoned volume record (the new checks are CPU-side), and no title. No AMD/Intel.

GPUs tested: NVIDIA GeForce RTX 3070 (595.99.02), lavapipe (Mesa 26.0.3), Ubuntu 26.04

Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5551040685 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6881#pullrequestreview-5551040685). Originally posted by [jotitadev](https://github.com/jotitadev) on 2026-10-16T17:00:48Z. **Review:** COMMENTED --- Linux run, which the PR doesn't cover yet: NVIDIA and lavapipe. Head `aa4018fdf`, merged onto `main` `143f13055`. Machine: Ubuntu 26.04, i7-8700, GCC 15.2, Release, SPIRV-Tools off. RTX 3070, NVIDIA 595.99.02 (Vulkan 1.4.329), and lavapipe, Mesa 26.0.3 (LLVM 21.1.8, Vulkan 1.4.335). All runs through ctest. - Red/green: the `ShaderMemory.cpp` change applied on its own over `main` fails `agc_shader_memory` with `2D biased sampling of a volume requires one slice and mip level zero only`. With the fix, the ten tests from the description pass 14/14 (the regex also picks up the `agc_driver_image_table*` variants and `agc_shared_write_partial_collect`), three runs, on the 3070. - 3070, `^agc|shader|recompiler` (display/flip/`lds_atomics64` excluded, `-j1`): 614/615. The one failure is `agc_driver_store_over_untracked`. It fails 10/10 on plain `main` `143f13055` here too, so it is not from this PR. - lavapipe, 80 shader/image tests, `agc_driver_image_plane_bias_on_single_level_volume` and `agc_driver_image_table*` among them: 80/80, same as `main`. The per-wave key cases of the image-table tests skip themselves there (subgroup 8 doesn't hold one wave32). Not run: a GPU execution that selects the poisoned volume record (the new checks are CPU-side), and no title. No AMD/Intel. GPUs tested: NVIDIA GeForce RTX 3070 (595.99.02), lavapipe (Mesa 26.0.3), Ubuntu 26.04 Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
SleglJan commented 2026-10-16 19:48:08 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by SleglJan on 2026-10-16T19:48:08Z.


@Scramblrrrr Linux title run, the cross-test from #5714. Title: 007 First Light (PPSA11386 v01.018.000). Setup: Linux 7.2.10, RTX 3080 10 GB, NVIDIA 615.78.08, GCC 16.2.1, Release, bubblewrap sandbox. Stack: main 4186f06a9 plus open PRs (#5987, #6553, #6465 and #6868 among them), unpublished local fixes the title needs, local logging and scripted input, and the title's two feedback-wait limits widened in its executable as described in #6172 (local only). For this run I reverted our local workaround for this throw (described in #5714) and cherry-picked this head aa4018fdf instead; it applied cleanly. Switches: APS5_HOST_IMPORT_MIB=12288, APS5_RESOURCE_CACHE_ENTRIES=64, APS5_NO_DRAW_SRT_ENTRIES=1, APS5_PROFILE_DRAW=1, a guest fault dump.

  • With neither the workaround nor this change, main-based stacks stop with 2D biased sampling of a volume requires one slice and mip level zero only. With this change the title passes that point, loads its save into gameplay and runs to present 1534, where the 2,700 s budget ended. The run did not stop on an error: no guest fault and no what() in the log.
  • Image-table faults compared with the previous run on the same stack with the workaround:
    • The same five deferred write-back failed: image table … unsupported operation sites appear, with identical counts up to present 1000. Four of the five no longer appeared in an earlier run of ours on a stack with an older revision of #6402 (stores through image tables). They are not from this change.
    • No new image-table fault reason appeared, and none with reason dimension.
  • Not run: ctest. jotitadev's review above has Linux ctest results on NVIDIA and lavapipe.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6223428448 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6881#issuecomment-6223428448). Originally posted by [SleglJan](https://github.com/SleglJan) on 2026-10-16T19:48:08Z. --- @Scramblrrrr Linux title run, the cross-test from #5714. Title: 007 First Light (PPSA11386 v01.018.000). Setup: Linux 7.2.10, RTX 3080 10 GB, NVIDIA 615.78.08, GCC 16.2.1, Release, bubblewrap sandbox. Stack: `main` 4186f06a9 plus open PRs (#5987, #6553, #6465 and #6868 among them), unpublished local fixes the title needs, local logging and scripted input, and the title's two feedback-wait limits widened in its executable as described in #6172 (local only). For this run I reverted our local workaround for this throw (described in #5714) and cherry-picked this head aa4018fdf instead; it applied cleanly. Switches: `APS5_HOST_IMPORT_MIB=12288`, `APS5_RESOURCE_CACHE_ENTRIES=64`, `APS5_NO_DRAW_SRT_ENTRIES=1`, `APS5_PROFILE_DRAW=1`, a guest fault dump. - With neither the workaround nor this change, main-based stacks stop with `2D biased sampling of a volume requires one slice and mip level zero only`. With this change the title passes that point, loads its save into gameplay and runs to present 1534, where the 2,700 s budget ended. The run did not stop on an error: no guest fault and no `what()` in the log. - Image-table faults compared with the previous run on the same stack with the workaround: - The same five `deferred write-back failed: image table … unsupported operation` sites appear, with identical counts up to present 1000. Four of the five no longer appeared in an earlier run of ours on a stack with an older revision of #6402 (stores through image tables). They are not from this change. - No new image-table fault reason appeared, and none with reason `dimension`. - Not run: ctest. jotitadev's review above has Linux ctest results on NVIDIA and lavapipe. AI-assisted: yes (Claude Code)
oneandonlydean commented 2026-10-17 00:41:51 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-17T00:41:51Z.


The red/green from @jotitadev (the ShaderMemory.cpp change alone fails agc_shader_memory with the volume throw; with the fix the ten tests pass 14/14 on the RTX 3070, and 80/80 on lavapipe) and @SleglJan's 007 run (past the throw, into gameplay to present 1534, no guest fault) cover this as asked. Not run yet: a GPU execution that selects the poisoned volume record, and the 007 run is on a stack of several PRs.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6227476173 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6881#issuecomment-6227476173). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-17T00:41:51Z. --- The red/green from @jotitadev (the `ShaderMemory.cpp` change alone fails `agc_shader_memory` with the volume throw; with the fix the ten tests pass 14/14 on the RTX 3070, and 80/80 on lavapipe) and @SleglJan's 007 run (past the throw, into gameplay to present 1534, no guest fault) cover this as asked. Not run yet: a GPU execution that selects the poisoned volume record, and the 007 run is on a stack of several PRs.
SleglJan commented 2026-10-17 07:34:56 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by SleglJan on 2026-10-17T07:34:56Z.


Heads-up for merge order: this head (aa4018fdf) and #6454's head (1752c4a89) merge without a git conflict, also onto current main 17cfb1f4c. But verifyVolumeBiasTableRejection in ShaderMemory.cpp doesn't compile against #6454's snapshot layout, which moves words into each column and makes codes a SharedValues. A GCC build of both on main bc3c0fc13 with #5799, #6317 and #6332 fails with:

  • column.codes = {0u, 1u};: no match for 'operator=' (operand types are 'ShaderRecompiler::SharedValues<unsigned int>' and '<brace-enclosed initializer list>')
  • snapshot.tables.words = {plane, invalid};: 'struct ShaderRecompiler::ImageTableSnapshot' has no member named 'words'

Your integration branch already has the adaptation (913b93635, "test(shader): adapt volume rejection fixture to shared columns"), but neither PR carries it yet, so whichever lands second needs it. cc @EagleBearerYS

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6231268241 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6881#issuecomment-6231268241). Originally posted by [SleglJan](https://github.com/SleglJan) on 2026-10-17T07:34:56Z. --- Heads-up for merge order: this head (aa4018fdf) and #6454's head (1752c4a89) merge without a git conflict, also onto current `main` 17cfb1f4c. But `verifyVolumeBiasTableRejection` in `ShaderMemory.cpp` doesn't compile against #6454's snapshot layout, which moves `words` into each column and makes `codes` a `SharedValues`. A GCC build of both on `main` bc3c0fc13 with #5799, #6317 and #6332 fails with: - `column.codes = {0u, 1u};`: `no match for 'operator=' (operand types are 'ShaderRecompiler::SharedValues<unsigned int>' and '<brace-enclosed initializer list>')` - `snapshot.tables.words = {plane, invalid};`: `'struct ShaderRecompiler::ImageTableSnapshot' has no member named 'words'` Your integration branch already has the adaptation (913b93635, "test(shader): adapt volume rejection fixture to shared columns"), but neither PR carries it yet, so whichever lands second needs it. cc @EagleBearerYS AI-assisted: yes (Claude Code)
EagleBearerYS commented 2026-10-17 08:35:35 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-17T08:35:35Z.


Thanks @SleglJan, confirmed: with both on main, ShaderMemory.cpp stops at those two lines on Linux and Windows (run). Whichever lands second takes the adaptation:

  • If #6881 lands first, #6454's next merge of main carries the same two lines as @Scramblrrrr's 913b93635, inside the merge so it builds. I have that merge ready: with it, the ^agc tests pass on Linux (646 of 646), and on Windows apart from the two replay tools that exit 0xc0000139 on that runner for other branches too (run).
  • If #6454 lands first, #6881 needs the same two lines, which 913b93635 already has.
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6231809031 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6881#issuecomment-6231809031). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-17T08:35:35Z. --- Thanks @SleglJan, confirmed: with both on `main`, `ShaderMemory.cpp` stops at those two lines on Linux and Windows ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39015266094)). Whichever lands second takes the adaptation: - If #6881 lands first, #6454's next merge of `main` carries the same two lines as @Scramblrrrr's 913b93635, inside the merge so it builds. I have that merge ready: with it, the `^agc` tests pass on Linux (646 of 646), and on Windows apart from the two replay tools that exit 0xc0000139 on that runner for other branches too ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39015302210)). - If #6454 lands first, #6881 needs the same two lines, which 913b93635 already has.
keravyn-ops commented 2026-10-17 09:21:38 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by keravyn-ops on 2026-10-17T09:21:38Z.


AMD / Windows run of this PR at aa4018fdf: Radeon 780M (RDNA 3, 0x15bf), AMD driver 25.10.20.01 (32.0.21020.1007), Windows 11 Home 10.0.26100, WinLibs GCC 15.2.0 r7, Release.

  • agc_shader_memory: pass (0.45 s)

AI-assisted: yes (runs made on the device above).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6232232992 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6881#issuecomment-6232232992). Originally posted by [keravyn-ops](https://github.com/keravyn-ops) on 2026-10-17T09:21:38Z. --- AMD / Windows run of this PR at aa4018fdf: Radeon 780M (RDNA 3, 0x15bf), AMD driver 25.10.20.01 (32.0.21020.1007), Windows 11 Home 10.0.26100, WinLibs GCC 15.2.0 r7, Release. - `agc_shader_memory`: pass (0.45 s) AI-assisted: yes (runs made on the device above).
Scramblrrrr commented 2026-10-18 08:15:16 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Scramblrrrr on 2026-10-18T08:15:16Z.


Thanks @SleglJan, @jotitadev, @keravyn-ops and @EagleBearerYS for the cross-tests and merge-order checks. I resumed today and have resolved the new main conflict in the standalone PR branch: main's dynamic-storage mip-chain test and this volume-rejection test are both retained, with no change to the production fix. The main-only update is local at fd0d1f172, not pushed yet; I am rebuilding before updating this PR.

The separate fresh-main007 integration (baseed01d79d3, current #6454a508aa03c) retains the two-line shared-column adaptation from913b93635. Its runtime libraries build, and its native test executables are rebuilding. It does not add those #6454-specific test types to this standalone PR while #6454 is unmerged. No new title result claimed yet. Raw title data remains local. AI-assisted: Codex.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6247525776 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6881#issuecomment-6247525776). Originally posted by [Scramblrrrr](https://github.com/Scramblrrrr) on 2026-10-18T08:15:16Z. --- Thanks @SleglJan, @jotitadev, @keravyn-ops and @EagleBearerYS for the cross-tests and merge-order checks. I resumed today and have resolved the new main conflict in the standalone PR branch: main's dynamic-storage mip-chain test and this volume-rejection test are both retained, with no change to the production fix. The main-only update is local at fd0d1f172, not pushed yet; I am rebuilding before updating this PR. The separate fresh-main007 integration (baseed01d79d3, current #6454a508aa03c) retains the two-line shared-column adaptation from913b93635. Its runtime libraries build, and its native test executables are rebuilding. It does not add those #6454-specific test types to this standalone PR while #6454 is unmerged. No new title result claimed yet. Raw title data remains local. AI-assisted: Codex.
Scramblrrrr commented 2026-10-18 08:25:09 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Scramblrrrr on 2026-10-18T08:25:09Z.


Rebased onto main e5c2b3c32 at head107482cae, preserving both main's dynamic-storage mip-chain test and this volume test. Clean-main-only agc_shader_memory rebuilt and passes0.39s (CTest total0.93s); conventions pass. Production fix unchanged. Description now includes the independent Linux/AMD results and merge-order adaptation. Our separate current-main007 integration c2d5e46a4 passes44/44selected native controls19.94s and is now cold-booting; no new title result yet. AI-assisted: Codex.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6247610273 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6881#issuecomment-6247610273). Originally posted by [Scramblrrrr](https://github.com/Scramblrrrr) on 2026-10-18T08:25:09Z. --- Rebased onto main e5c2b3c32 at head107482cae, preserving both main's dynamic-storage mip-chain test and this volume test. Clean-main-only agc_shader_memory rebuilt and passes0.39s (CTest total0.93s); conventions pass. Production fix unchanged. Description now includes the independent Linux/AMD results and merge-order adaptation. Our separate current-main007 integration c2d5e46a4 passes44/44selected native controls19.94s and is now cold-booting; no new title result yet. AI-assisted: Codex.
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!6881
No description provided.