fix(agc): bind a V# past the range limit by the memory behind it #5778

Merged
meh7an merged 1 commit from upstream-pr/5778 into main 2026-10-15 16:50:37 +00:00
meh7an commented 2026-10-14 10:17:59 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by meh7an on 2026-10-14T10:17:59Z.


What

A buffer V# whose size (num_records * stride) is past maxStorageBufferRange stopped the draw with shader buffer exceeds descriptor range limit, and on current main a failed draw ends the title. Titles leave such words in descriptor slots their shaders do not reach on the path taken. Following the review of #3202, ShaderResources::addGuestBuffer now binds such a V# by the guest memory behind it:

  • the readable registered allocation holding its base ends before the limit: bound up to that allocation's end;
  • no registered allocation holds its base: the empty placeholder buffer, as for a null V#;
  • the allocation reaches the limit: it still throws.

A V# inside the limit is unchanged. The console's behaviour for an access past the bound range is not known; it is recorded under Unknown function info in docs/dev/debt/libSceAgcDriver.md.

Prince of Persia: The Lost Crown (PPSA10528) binds c8010002 2c6bec20 c0053c00 04000013 while it loads a save: base 0xec20c8010002, above the user address space, about 33 TB.

Tested

Windows 11 Pro 10.0.26300, WinLibs GCC 15.2.0, Release, this branch on main 872f52320.

  • agc_driver_graphics passes. The new oversizedDescriptorTests checks the three cases: an oversized V# 8 KiB before the end of a 64 KiB registered block is bound as those 8 KiB with their bytes; one at the block's start (64 KiB, past the mock 16 KiB limit) still throws; one over unregistered memory binds the placeholder. The two existing oversized cases over unregistered test memory are now accepted. Nothing in the test is Windows-only.
  • PPSA10528 1.4.1: without the change, loading a save aborted with shader buffer exceeds descriptor range limit. With it, the save loads and the first level renders. That run was on main ea53213fd with this change plus local versions of #3295 and #5049, which the title needs to get that far.
  • Linux: not built or run.

Checklist

  • Based on current main; no other open PR implements the same functions (#3202 did and is closed; this follows its review)
  • 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
  • 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
  • Unblocks: PPSA10528; also the reports on #3202 (PPSA15388, PPSA28416)
  • GPUs tested: NVIDIA GeForce RTX 2080 Ti, driver 617.14, Windows 11 Pro 10.0.26300
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4856377011 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5778). Originally posted by [meh7an](https://github.com/meh7an) on 2026-10-14T10:17:59Z. --- ### What A buffer V# whose size (`num_records * stride`) is past `maxStorageBufferRange` stopped the draw with `shader buffer exceeds descriptor range limit`, and on current `main` a failed draw ends the title. Titles leave such words in descriptor slots their shaders do not reach on the path taken. Following the review of #3202, `ShaderResources::addGuestBuffer` now binds such a V# by the guest memory behind it: - the readable registered allocation holding its base ends before the limit: bound up to that allocation's end; - no registered allocation holds its base: the empty placeholder buffer, as for a null V#; - the allocation reaches the limit: it still throws. A V# inside the limit is unchanged. The console's behaviour for an access past the bound range is not known; it is recorded under Unknown function info in `docs/dev/debt/libSceAgcDriver.md`. Prince of Persia: The Lost Crown (PPSA10528) binds `c8010002 2c6bec20 c0053c00 04000013` while it loads a save: base `0xec20c8010002`, above the user address space, about 33 TB. ### Tested Windows 11 Pro 10.0.26300, WinLibs GCC 15.2.0, Release, this branch on `main` 872f52320. - `agc_driver_graphics` passes. The new `oversizedDescriptorTests` checks the three cases: an oversized V# 8 KiB before the end of a 64 KiB registered block is bound as those 8 KiB with their bytes; one at the block's start (64 KiB, past the mock 16 KiB limit) still throws; one over unregistered memory binds the placeholder. The two existing oversized cases over unregistered test memory are now accepted. Nothing in the test is Windows-only. - PPSA10528 1.4.1: without the change, loading a save aborted with `shader buffer exceeds descriptor range limit`. With it, the save loads and the first level renders. That run was on `main` ea53213fd with this change plus local versions of #3295 and #5049, which the title needs to get that far. - Linux: not built or run. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions (#3202 did and is closed; this follows its review) - [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 - [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] Unblocks: PPSA10528; also the reports on #3202 (PPSA15388, PPSA28416) - [x] GPUs tested: NVIDIA GeForce RTX 2080 Ti, driver 617.14, Windows 11 Pro 10.0.26300 - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-14 16:30:54 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-14T16:30:54Z.


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
PR 5926 docs/dev/debt/libSceAgcDriver.md L21

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 1395 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 1896 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 4040 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 4448 docs/dev/debt/libSceAgcDriver.md
PR 4650 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 5058 docs/dev/debt/libSceAgcDriver.md
PR 5372 docs/dev/debt/libSceAgcDriver.md
PR 5499 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 5500 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 5761 docs/dev/debt/libSceAgcDriver.md
PR 5867 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 5881 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 5884 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 5925 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6177 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 6188 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6208 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 6222 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6235 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6173185856 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5778#issuecomment-6173185856). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-14T16:30:54Z. --- <!-- 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 | |---|---|---|---| | [PR 5926](https://www.github.com/boykopovar/AnyPS5/pull/5926) | `docs/dev/debt/libSceAgcDriver.md` [L21](https://github.com/boykopovar/AnyPS5/blob/0029e62f974c453a5f6c7333f3bdb13e770e3903/docs/dev/debt/libSceAgcDriver.md#L21) | | | 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 1395](https://www.github.com/boykopovar/AnyPS5/pull/1395) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 1896](https://www.github.com/boykopovar/AnyPS5/pull/1896) | `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp` | | [PR 4040](https://www.github.com/boykopovar/AnyPS5/pull/4040) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 4448](https://www.github.com/boykopovar/AnyPS5/pull/4448) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 4650](https://www.github.com/boykopovar/AnyPS5/pull/4650) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 5058](https://www.github.com/boykopovar/AnyPS5/pull/5058) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 5372](https://www.github.com/boykopovar/AnyPS5/pull/5372) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 5499](https://www.github.com/boykopovar/AnyPS5/pull/5499) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 5500](https://www.github.com/boykopovar/AnyPS5/pull/5500) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 5761](https://www.github.com/boykopovar/AnyPS5/pull/5761) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 5867](https://www.github.com/boykopovar/AnyPS5/pull/5867) | `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp` | | [PR 5881](https://www.github.com/boykopovar/AnyPS5/pull/5881) | `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp` | | [PR 5884](https://www.github.com/boykopovar/AnyPS5/pull/5884) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 5925](https://www.github.com/boykopovar/AnyPS5/pull/5925) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6177](https://www.github.com/boykopovar/AnyPS5/pull/6177) | `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp` | | [PR 6188](https://www.github.com/boykopovar/AnyPS5/pull/6188) | `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6208](https://www.github.com/boykopovar/AnyPS5/pull/6208) | `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp` | | [PR 6222](https://www.github.com/boykopovar/AnyPS5/pull/6222) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6235](https://www.github.com/boykopovar/AnyPS5/pull/6235) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` |
xXPBSXx commented 2026-10-14 16:58:12 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-14T16:58:12Z.


Kena: Bridge of Spirits (PPSA01746) stops on the throw this PR changes, with a V# of this kind. A local print in front of the Require(byteSize <= maxStorageBufferRange ...) in addGuestBuffer (not part of any PR; #5761's head 25cc5e6d2, fragment shader, binding 63, element 1 of 2, read only) gave words 00000000 00fff000 06f00000 00000000 byteSize 29679943680 limit 4294967295 stride 255 records 116391936 base f00000000000 (PPSA01746_rX/run_170224.err line 119, what(): AGC graphics: shader buffer exceeds descriptor range limit at line 122; the same words in run_171822.err line 116).

By the code: that base (0xf000_0000_0000) is not in the registered allocations, so RegisteredReadableEnd (GuestBufferMemory.cpp:2365) returns 0, the new branch sets byteSize = 0, and the slot gets the empty placeholder buffer instead of the throw. I did not run Kena with this PR, so I do not know whether the title then gets past this draw; it stopped at other places in other runs on the same head (buffer descriptor uses an unsupported type at ResourceMaterializer.cpp:590, and Vulkan result -4).

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6173716326 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5778#issuecomment-6173716326). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-14T16:58:12Z. --- Kena: Bridge of Spirits (PPSA01746) stops on the throw this PR changes, with a V# of this kind. A local print in front of the `Require(byteSize <= maxStorageBufferRange ...)` in `addGuestBuffer` (not part of any PR; #5761's head `25cc5e6d2`, fragment shader, binding 63, element 1 of 2, read only) gave `words 00000000 00fff000 06f00000 00000000 byteSize 29679943680 limit 4294967295 stride 255 records 116391936 base f00000000000` (`PPSA01746_rX/run_170224.err` line 119, `what(): AGC graphics: shader buffer exceeds descriptor range limit` at line 122; the same words in `run_171822.err` line 116). By the code: that base (`0xf000_0000_0000`) is not in the registered allocations, so `RegisteredReadableEnd` (`GuestBufferMemory.cpp:2365`) returns 0, the new branch sets `byteSize = 0`, and the slot gets the empty placeholder buffer instead of the throw. I did not run Kena with this PR, so I do not know whether the title then gets past this draw; it stopped at other places in other runs on the same head (`buffer descriptor uses an unsupported type` at `ResourceMaterializer.cpp:590`, and `Vulkan result -4`). AI-assisted (Claude Code).
xXPBSXx commented 2026-10-14 18:09:30 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-14T18:09:30Z.


Tested on head e9c98900e (the current head of this pull request on GitHub, same SHA).

Kena: Bridge of Spirits (PPSA01746) gets past the shader buffer exceeds descriptor range limit throw that this change targets (one run).

  • Tree: main 278765a07 + this head (clean merge, tree 65dc50edc), no other changes. In the run (PPSA01746_rK5/run_200250.err, 805 lines, 240 s limit) there is no line with exceeds descriptor range (0 of 805). The run ends at line 121 with a different error: what(): AGC graphics: guest sampler descriptor uses unnormalized coordinates with anisotropic filtering, which is not implemented (line 119 [videoout] presentation failed: …, line 122 FATAL: abort()); that is a sampler gap, not related to this pull request.
  • For comparison, earlier runs of the title on other heads stopped at that throw: the log quoted in this thread (#5761's head, PPSA01746_rX/run_170224.err line 122, what(): AGC graphics: shader buffer exceeds descriptor range limit). I did not run main 278765a07 without this pull request, so the comparison is with those earlier runs, not with the same main.

Test conditions

  • Windows 10 (19045), MinGW-w64 GCC 15.2.0, Release. ninja -C build -j4 relinker plus all 126 core/libs/libs/*.prx of the merged tree, finished 20:01:54 local time (libSceAgcDriver.prx 20:01:45, relinker.exe 20:01:54).
  • Relink: relink_title_trace.ps1 -Id PPSA01746 -Repo <that tree> = relinker.exe --windows --registry --trace-imports from the converted inputs of the earlier PPSA01746_rX run (no -ModuleDir). Run: run_title.ps1 -Seconds 240, APS5_TRACE_CALLS=all.

Limits

One title, one run. Whether the draw behind the old throw is rendered correctly, I did not look at. This pull request's own tests were not run.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6175068869 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5778#issuecomment-6175068869). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-14T18:09:30Z. --- Tested on head `e9c98900e` (the current head of this pull request on GitHub, same SHA). Kena: Bridge of Spirits (PPSA01746) gets past the `shader buffer exceeds descriptor range limit` throw that this change targets (one run). - Tree: `main` `278765a07` + this head (clean merge, tree `65dc50edc`), no other changes. In the run (`PPSA01746_rK5/run_200250.err`, 805 lines, 240 s limit) there is no line with `exceeds descriptor range` (0 of 805). The run ends at line 121 with a different error: `what(): AGC graphics: guest sampler descriptor uses unnormalized coordinates with anisotropic filtering, which is not implemented` (line 119 `[videoout] presentation failed: …`, line 122 `FATAL: abort()`); that is a sampler gap, not related to this pull request. - For comparison, earlier runs of the title on other heads stopped at that throw: the log quoted in this thread (#5761's head, `PPSA01746_rX/run_170224.err` line 122, `what(): AGC graphics: shader buffer exceeds descriptor range limit`). I did not run `main` `278765a07` without this pull request, so the comparison is with those earlier runs, not with the same `main`. ### Test conditions - Windows 10 (19045), MinGW-w64 GCC 15.2.0, Release. `ninja -C build -j4 relinker` plus all 126 `core/libs/libs/*.prx` of the merged tree, finished 20:01:54 local time (`libSceAgcDriver.prx` 20:01:45, `relinker.exe` 20:01:54). - Relink: `relink_title_trace.ps1 -Id PPSA01746 -Repo <that tree>` = `relinker.exe --windows --registry --trace-imports` from the converted inputs of the earlier `PPSA01746_rX` run (no `-ModuleDir`). Run: `run_title.ps1 -Seconds 240`, `APS5_TRACE_CALLS=all`. ### Limits One title, one run. Whether the draw behind the old throw is rendered correctly, I did not look at. This pull request's own tests were not run. AI-assisted (Claude Code).
xXPBSXx commented 2026-10-15 10:35:13 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-15T10:35:13Z.


Teardown (PPSA15246) stops on the same throw class as Kena here, and with this PR it moves on to the next check instead of passing.

Without this PR (session B, main d92a8dad390af1807cc91622b924252141816a5a, PPSA15246_rR/run_110418.err lines 23-27): [gpu] driver failure: compute shader 0x1409cd300: AGC graphics: shader buffer exceeds descriptor range limit (the check in ShaderResources::addGuestBuffer), then FATAL: abort() (SIGABRT).

With this PR (head e9c98900e7c6c466381a3d99ed8d558b6d9f053f) on main e49ec591dc93c9e4dfaad8b6dbc0b995dd7830a0 (merge tree 76ee4db26da038be8c6ff1864f164ca44a9cf492), same title executable (PPSA15246_rR/app.exe, relinked 2026-10-15 09:54:01, hardlinked as PPSA15246_rY5/app.exe), same key plan as B (run_menu.log), 240 s requested: the addGuestBuffer throw is gone, and the same shader stops one check later, at line 31 and 33 of PPSA15246_rY5/run_122959.err (60 lines):

[videoout] presentation failed: compute shader 0x1409cd300: AGC graphics: guest buffer view exceeds descriptor range limit

(line 33 repeats it as what()).
That text comes from GuestBufferMemory::Descriptor (GuestBufferMemory.cpp:4061 on that main: Require(range <= context.limits.maxStorageBufferRange, ...)), which runs on the view that addGuestBuffer now hands out. So for this title the PR does not remove the stop; it only passes its own check. I did not print the V# or the sizes, so I do not know why the view is still past the limit; one possibility, not checked, is that the bound size ends within the view adjustment of the limit (ViewBytes adds the alignment adjustment to the size).

The window title shows the run was at FPS: 59.94 (804) before it stalled (FPS: 0.27 (842) to the end; send_keys_td5778.log).

Tested. Windows 10 (19045), MinGW-w64 GCC 15.2, Release, NVIDIA GeForce RTX 4080 SUPER. ninja -j 8 libs exit 0 (script times 12:19:10 to 12:28:13), run_title.ps1, one game at a time, script times 12:29:20 to 12:32:35 (includes the wait for the run mutex), one run, no local changes. Relinker commit and command for the executable are not recorded in my notes (made by session B). Not tested: Linux, other GPUs, a picture.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6190068995 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5778#issuecomment-6190068995). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-15T10:35:13Z. --- Teardown (PPSA15246) stops on the same throw class as Kena here, and with this PR it moves on to the next check instead of passing. Without this PR (session B, `main` `d92a8dad390af1807cc91622b924252141816a5a`, `PPSA15246_rR/run_110418.err` lines 23-27): `[gpu] driver failure: compute shader 0x1409cd300: AGC graphics: shader buffer exceeds descriptor range limit` (the check in `ShaderResources::addGuestBuffer`), then `FATAL: abort() (SIGABRT)`. With this PR (head `e9c98900e7c6c466381a3d99ed8d558b6d9f053f`) on `main` `e49ec591dc93c9e4dfaad8b6dbc0b995dd7830a0` (merge tree `76ee4db26da038be8c6ff1864f164ca44a9cf492`), same title executable (`PPSA15246_rR/app.exe`, relinked 2026-10-15 09:54:01, hardlinked as `PPSA15246_rY5/app.exe`), same key plan as B (`run_menu.log`), 240 s requested: the `addGuestBuffer` throw is gone, and the same shader stops one check later, at line 31 and 33 of `PPSA15246_rY5/run_122959.err` (60 lines): ``` [videoout] presentation failed: compute shader 0x1409cd300: AGC graphics: guest buffer view exceeds descriptor range limit ``` (line 33 repeats it as `what()`). That text comes from `GuestBufferMemory::Descriptor` (`GuestBufferMemory.cpp:4061` on that `main`: `Require(range <= context.limits.maxStorageBufferRange, ...)`), which runs on the view that `addGuestBuffer` now hands out. So for this title the PR does not remove the stop; it only passes its own check. I did not print the V# or the sizes, so I do not know why the view is still past the limit; one possibility, not checked, is that the bound size ends within the view adjustment of the limit (`ViewBytes` adds the alignment adjustment to the size). The window title shows the run was at `FPS: 59.94 (804)` before it stalled (`FPS: 0.27 (842)` to the end; `send_keys_td5778.log`). **Tested.** Windows 10 (19045), MinGW-w64 GCC 15.2, Release, NVIDIA GeForce RTX 4080 SUPER. `ninja -j 8 libs` exit 0 (script times 12:19:10 to 12:28:13), `run_title.ps1`, one game at a time, script times 12:29:20 to 12:32:35 (includes the wait for the run mutex), one run, no local changes. Relinker commit and command for the executable are not recorded in my notes (made by session B). Not tested: Linux, other GPUs, a picture. AI-assisted (Claude Code).
adriadam10 commented 2026-10-15 12:54:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-15T12:54:52Z.


Checked on Linux (RADV): agc_driver_graphics passes with the change and fails without it, the rest of the libSceAgcDriver ctest scope is green apart from agc_driver_tessellation (RADV segfault, also on main). Both partial-allocation and unregistered cases are pinned, and the allocation-reaching-the-limit case still throws. Merging once the full Build is green.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6192550974 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5778#issuecomment-6192550974). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-15T12:54:52Z. --- Checked on Linux (RADV): `agc_driver_graphics` passes with the change and fails without it, the rest of the libSceAgcDriver ctest scope is green apart from `agc_driver_tessellation` (RADV segfault, also on main). Both partial-allocation and unregistered cases are pinned, and the allocation-reaching-the-limit case still throws. Merging once the full Build is green.
alfalfa-star commented 2026-10-15 20:47:33 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by alfalfa-star on 2026-10-15T20:47:33Z.


Title evidence on main after this PR: Kena: Bridge of Spirits (PPSA01802).

On main aa1927872 (2026-10-14) Kena stopped before its first scene with AGC graphics: shader buffer exceeds descriptor range limit (a read-only V# with an unmapped base, see #5428). On plain main ce991f1ec (includes this PR, no other changes, relinked with that build's relinker), one 150 s run:

  • It shows the Ember Lab logos, then the loading screen, then renders the 3D forest scene and keeps presenting it until the time limit (exit by timeout, no throw, no crash, no GPU reset).
  • The picture has a blown-out white glare over the middle of the scene and stretched vertical streaks in the upper half. No UI is visible in the dumped frames; no pad input was given, so nothing past this scene was tested.
  • No throws and no skipped draws or dispatches in the log; the only unsupported lines are 6 of Shader … has unsupported registered shader type 8; it is not prepared at registration.

Setup: Linux (Arch, kernel 7.2.9), GCC, Release, RX 9070 XT (RADV, Mesa 26.2.4). Diagnostics only: APS5_TRACE_SKIPS=1 APS5_DUMP_FRAMES=40 APS5_DUMP_FRAMES_EVERY=100.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6201950433 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5778#issuecomment-6201950433). Originally posted by [alfalfa-star](https://github.com/alfalfa-star) on 2026-10-15T20:47:33Z. --- Title evidence on `main` after this PR: Kena: Bridge of Spirits (PPSA01802). On `main` aa1927872 (2026-10-14) Kena stopped before its first scene with `AGC graphics: shader buffer exceeds descriptor range limit` (a read-only V# with an unmapped base, see #5428). On plain `main` ce991f1ec (includes this PR, no other changes, relinked with that build's relinker), one 150 s run: - It shows the Ember Lab logos, then the loading screen, then renders the 3D forest scene and keeps presenting it until the time limit (exit by `timeout`, no throw, no crash, no GPU reset). - The picture has a blown-out white glare over the middle of the scene and stretched vertical streaks in the upper half. No UI is visible in the dumped frames; no pad input was given, so nothing past this scene was tested. - No throws and no skipped draws or dispatches in the log; the only `unsupported` lines are 6 of `Shader … has unsupported registered shader type 8; it is not prepared at registration`. Setup: Linux (Arch, kernel 7.2.9), GCC, Release, RX 9070 XT (RADV, Mesa 26.2.4). Diagnostics only: `APS5_TRACE_SKIPS=1 APS5_DUMP_FRAMES=40 APS5_DUMP_FRAMES_EVERY=100`. AI-assisted (Claude Code).
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!5778
No description provided.