AGC driver: PPSA99005 (ps5-opengl, Mesa shaders) aborts in DecodeVertexStageInfo: header pointer outside the registered shader header #2026

Closed
opened 2026-10-09 05:18:47 +00:00 by Recapi · 8 comments
Recapi commented 2026-10-09 05:18:47 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by Recapi on 2026-10-09T05:18:47Z.


PPSA99005 (blackbearreloaded/ps5-opengl showcase v1.0.1, an OpenGL showcase whose shaders come from the bundled Mesa/opengnm, not Sony's compiler) gets past every import once the open PRs for its absent imports are merged, and then aborts in the AGC driver while preparing a vertex-stage shader:

terminate: std::runtime_error: AGC graphics: AGC header pointer is outside the registered shader header

The throw is _readHeaderPod in Graphics/src/ShaderInputState.cpp: a pointer read from the shader header lands at or past the end of the header bytes the driver registered. Return addresses on the stack at the abort (symbolized with addr2line on the built .prx):

libc.prx            __cxa_throw
libSceAgcDriver.prx AgcDriver::Graphics::DecodeVertexStageInfo(...) [clone .cold]
libSceAgcDriver.prx AgcDriver::DriverDetail::(anonymous namespace)::PrepareRegistered(ShaderSnapshot const&, VulkanDevice const&, QueueState const&, bool)

so it is the DecodeVertexStageInfo(snapshot.header, snapshot.headerAddress, userData, nullptr, true) call in ShaderRegistry.cpp. I haven't checked which header field points outside: either the header registered for these shaders is shorter than what opengnm emits, or opengnm's header layout differs from what DecodeVertexStageInfo expects.

Reproduce

Linux (Ubuntu, GCC 15.2.0, full build), main f1451396 with these open PRs merged locally, all without conflicts:

Then eboot.bin and sce_module/libc.prx from ps5-opengl-showcase-1.0.1-PPSA99005.zip unwrapped from their SELF containers, relinked with relinker --registry (tools/import_audit.py: 0 absent, 2 stubs: _umtx_op, pthread_sigmask), and run in a bwrap sandbox with /dev/dri (RTX 2080 SUPER, driver 595.91.07). The title prints nothing before the abort (exit 134); the message above was read from the thrown exception in gdb.

Not tried on Windows.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5773200746 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2026). Originally posted by [Recapi](https://github.com/Recapi) on 2026-10-09T05:18:47Z. --- PPSA99005 ([blackbearreloaded/ps5-opengl](https://github.com/blackbearreloaded/ps5-opengl) showcase v1.0.1, an OpenGL showcase whose shaders come from the bundled Mesa/opengnm, not Sony's compiler) gets past every import once the open PRs for its absent imports are merged, and then aborts in the AGC driver while preparing a vertex-stage shader: ``` terminate: std::runtime_error: AGC graphics: AGC header pointer is outside the registered shader header ``` The throw is `_readHeaderPod` in [`Graphics/src/ShaderInputState.cpp`](https://github.com/boykopovar/AnyPS5/blob/f1451396/core/libs/prx/libSceAgcDriver/Graphics/src/ShaderInputState.cpp#L46): a pointer read from the shader header lands at or past the end of the header bytes the driver registered. Return addresses on the stack at the abort (symbolized with `addr2line` on the built `.prx`): ``` libc.prx __cxa_throw libSceAgcDriver.prx AgcDriver::Graphics::DecodeVertexStageInfo(...) [clone .cold] libSceAgcDriver.prx AgcDriver::DriverDetail::(anonymous namespace)::PrepareRegistered(ShaderSnapshot const&, VulkanDevice const&, QueueState const&, bool) ``` so it is the `DecodeVertexStageInfo(snapshot.header, snapshot.headerAddress, userData, nullptr, true)` call in `ShaderRegistry.cpp`. I haven't checked which header field points outside: either the header registered for these shaders is shorter than what opengnm emits, or opengnm's header layout differs from what `DecodeVertexStageInfo` expects. ### Reproduce Linux (Ubuntu, GCC 15.2.0, full build), `main` f1451396 with these open PRs merged locally, all without conflicts: - the title's absent imports: #1978, #1869, #1656, #1729, #1613, #1714, #1482, #1650, #1872, #1641, #1685, #1859, #1675, #1676 - `pthread_sigmask`, which has no PR yet: a local export that only throws (`NotImplemented_nid_no_patch`); it is not called before the abort - #1529, without which the title jumps to address 0 right at start-up (bundled `libc.prx` shim, #1497) Then `eboot.bin` and `sce_module/libc.prx` from `ps5-opengl-showcase-1.0.1-PPSA99005.zip` unwrapped from their SELF containers, relinked with `relinker --registry` (`tools/import_audit.py`: 0 absent, 2 stubs: `_umtx_op`, `pthread_sigmask`), and run in a `bwrap` sandbox with `/dev/dri` (RTX 2080 SUPER, driver 595.91.07). The title prints nothing before the abort (exit 134); the message above was read from the thrown exception in `gdb`. Not tried on Windows. AI-assisted: yes.
MarcZX10 commented 2026-10-09 05:21:47 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T05:21:47Z.


I traced the throw in DecodeVertexStageInfo: after copying the fixed Shader header, it bounds-checks three header-relative pointers: shader.user_data, userDataHeader.direct_resource_offset (for direct_resource_count entries), and shader.input_semantics (for num_input_semantics entries).

Could you identify which of those reads throws and report the headerAddress, registered header byte count, pointer value/offset, and required byte count? That will distinguish an invalid pointer from a count/layout mismatch. If convenient, also include the decoded pointer/count fields from the fixed header and ShaderUserData; no full game dump is needed. I don't see enough evidence to change the accepted layout yet.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6074842131 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2026#issuecomment-6074842131). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-09T05:21:47Z. --- I traced the throw in `DecodeVertexStageInfo`: after copying the fixed `Shader` header, it bounds-checks three header-relative pointers: `shader.user_data`, `userDataHeader.direct_resource_offset` (for `direct_resource_count` entries), and `shader.input_semantics` (for `num_input_semantics` entries). Could you identify which of those reads throws and report the `headerAddress`, registered header byte count, pointer value/offset, and required byte count? That will distinguish an invalid pointer from a count/layout mismatch. If convenient, also include the decoded pointer/count fields from the fixed header and `ShaderUserData`; no full game dump is needed. I don't see enough evidence to change the accepted layout yet.
Recapi commented 2026-10-09 05:51:16 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by Recapi on 2026-10-09T05:51:16Z.


It's the first one, shader.user_data: the message is _readHeaderPod's, and in DecodeVertexStageInfo only the ShaderUserData read goes through _readHeaderPod (the other two use _readHeaderArray, whose message says "header array"). It fails by two bytes of tail padding:

  • headerAddress = 0x7ffff72f2000, registered header = 342 bytes, the fixed header's header_size = 0x156 (342) too
  • shader.user_data = 0x7ffff72f2120, offset 0x120 (288)
  • required: sizeof(ShaderUserData) = 56, so 288 + 56 = 344 > 342
  • the fields of ShaderUserData end at byte 54 (sharp_resource_count[4] at 46..54); the last 2 bytes of the 56 are the padding that aligns the struct to 8. The header ends exactly at 288 + 54 = 342.

So the pointer is valid and the layout matches; the bound is sizeof(T), which includes padding the title's header doesn't carry.

This is the first DecodeVertexStageInfo call (staticAbi = true from PrepareRegistered, userData.size() = 4, reads = null). Fixed header, read from header.data():

Field Value
file_header / version 0x34333231 / 0x18
type 2
user_data +0x120
code +0x1000
sh_registers / num_sh_registers +0x60 / 6
cx_registers / num_cx_registers +0x90 / 11
specials / special_sizes_bytes +0xe8 / 0
output_semantics / num_output_semantics +0x118 / 1
input_semantics / num_input_semantics null / 0
header_size / shader_size 0x156 / 0xa8
embedded_constant_buffer_size_dqw, target, scratch_size_dw_per_thread 0

ShaderUserData (the 54 bytes at +0x120): direct_resource_offset and all four sharp_resource_offset null, eud_size_dw 0, srt_size_dw 0, direct_resource_count 0, sharp_resource_count {0, 0, 0, 0}. So the other two reads would not run for this shader: no direct resources, and with no vertex-attribute table it returns before input_semantics.

As a local test only (not a proposed patch), copying just the 54 used bytes there lets this call pass; the title then stops at the next check, sceAgcCreatePrimState: invalid context register offsets, which I haven't looked into.

Read with gdb on the build from the issue (breakpoint on DecodeVertexStageInfo's entry and on __cxa_throw).

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6075167912 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2026#issuecomment-6075167912). Originally posted by [Recapi](https://github.com/Recapi) on 2026-10-09T05:51:16Z. --- It's the first one, `shader.user_data`: the message is `_readHeaderPod`'s, and in `DecodeVertexStageInfo` only the `ShaderUserData` read goes through `_readHeaderPod` (the other two use `_readHeaderArray`, whose message says "header array"). It fails by two bytes of tail padding: - `headerAddress` = `0x7ffff72f2000`, registered header = 342 bytes, the fixed header's `header_size` = `0x156` (342) too - `shader.user_data` = `0x7ffff72f2120`, offset `0x120` (288) - required: `sizeof(ShaderUserData)` = 56, so 288 + 56 = 344 > 342 - the fields of `ShaderUserData` end at byte 54 (`sharp_resource_count[4]` at 46..54); the last 2 bytes of the 56 are the padding that aligns the struct to 8. The header ends exactly at 288 + 54 = 342. So the pointer is valid and the layout matches; the bound is `sizeof(T)`, which includes padding the title's header doesn't carry. This is the first `DecodeVertexStageInfo` call (`staticAbi` = true from `PrepareRegistered`, `userData.size()` = 4, `reads` = null). Fixed header, read from `header.data()`: | Field | Value | |---|---| | `file_header` / `version` | `0x34333231` / `0x18` | | `type` | 2 | | `user_data` | +`0x120` | | `code` | +`0x1000` | | `sh_registers` / `num_sh_registers` | +`0x60` / 6 | | `cx_registers` / `num_cx_registers` | +`0x90` / 11 | | `specials` / `special_sizes_bytes` | +`0xe8` / 0 | | `output_semantics` / `num_output_semantics` | +`0x118` / 1 | | `input_semantics` / `num_input_semantics` | null / 0 | | `header_size` / `shader_size` | `0x156` / `0xa8` | | `embedded_constant_buffer_size_dqw`, `target`, `scratch_size_dw_per_thread` | 0 | `ShaderUserData` (the 54 bytes at +`0x120`): `direct_resource_offset` and all four `sharp_resource_offset` null, `eud_size_dw` 0, `srt_size_dw` 0, `direct_resource_count` 0, `sharp_resource_count` {0, 0, 0, 0}. So the other two reads would not run for this shader: no direct resources, and with no vertex-attribute table it returns before `input_semantics`. As a local test only (not a proposed patch), copying just the 54 used bytes there lets this call pass; the title then stops at the next check, `sceAgcCreatePrimState: invalid context register offsets`, which I haven't looked into. Read with `gdb` on the build from the issue (breakpoint on `DecodeVertexStageInfo`'s entry and on `__cxa_throw`). AI-assisted: yes.
evDev69 commented 2026-10-09 06:05:21 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by evDev69 on 2026-10-09T06:05:21Z.


Confirming the comment above independently: same values (header_size 0x156, user_data +0x120, 2 bytes of tail padding, all ShaderUserData fields zero) on a different setup: Intel Xeon (relinked with --to-intel), lavapipe (Mesa 25.2) under Xvfb. Three additions:

Why the header ends at byte 54

opengnm writes the user-data block last and sizes the header to end after its last field: RESOURCE_LAYOUT_SIZE 54u, header_size = resource_at + RESOURCE_LAYOUT_SIZE (v1.0.1). So every opengnm shader header carries the 54 bytes and not the padding. Whether Sony's headers always leave at least 2 bytes after this block is unknown to me.

The next stop: sceAgcCreatePrimState: invalid context register offsets

The vgt_gs_out_prim_type slot at specials +0x20 is empty (offset 0, value 0). ge_cntl (0x25b), vgt_shader_stages_en (0x2d5) and ge_user_vgpr_en (0x262) are present. opengnm writes that slot only for linkage_primitive_override. Here VGT_SHADER_STAGES_EN is 0x2012010, so VGT_SHADER_STAGES_GS_BIT (0x20) is clear. With the bit clear, sceAgcCreatePrimState replaces contextValues[1] with the value derived from the primitive type and never uses the slot, but its valid check rejects the slot's offset first.

The stop after that

Skipping that offset check when the GS bit is clear (local test only), the title reaches drawing and terminates in VideoOutDriver::presentLoop on the check in Graphics/src/State.cpp: PA_SU_SC_MODE_CNTL (0x205) = 0x00080244. After the driver's masks the only remaining bit is 0x80000 (bit 19), the provoking-vertex bit, which an OpenGL title sets for GL's last-vertex convention. That looks like a missing feature rather than a header difference.

Neither local change is a proposed patch; they only show what each stop depends on. AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6075329161 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2026#issuecomment-6075329161). Originally posted by [evDev69](https://github.com/evDev69) on 2026-10-09T06:05:21Z. --- Confirming the comment above independently: same values (`header_size 0x156`, `user_data +0x120`, 2 bytes of tail padding, all `ShaderUserData` fields zero) on a different setup: Intel Xeon (relinked with `--to-intel`), lavapipe (Mesa 25.2) under Xvfb. Three additions: ### Why the header ends at byte 54 opengnm writes the user-data block last and sizes the header to end after its last field: [`RESOURCE_LAYOUT_SIZE 54u`](https://github.com/blackbearreloaded/ps5-opengl/blob/db752da4c89380af228497b5b6852163a4e61069/src/platform/ps5_agc_package.c#L16), [`header_size = resource_at + RESOURCE_LAYOUT_SIZE`](https://github.com/blackbearreloaded/ps5-opengl/blob/db752da4c89380af228497b5b6852163a4e61069/src/platform/ps5_agc_package.c#L407) (v1.0.1). So every opengnm shader header carries the 54 bytes and not the padding. Whether Sony's headers always leave at least 2 bytes after this block is unknown to me. ### The next stop: `sceAgcCreatePrimState: invalid context register offsets` The `vgt_gs_out_prim_type` slot at `specials +0x20` is empty (offset 0, value 0). `ge_cntl` (0x25b), `vgt_shader_stages_en` (0x2d5) and `ge_user_vgpr_en` (0x262) are present. opengnm [writes that slot only for `linkage_primitive_override`](https://github.com/blackbearreloaded/ps5-opengl/blob/db752da4c89380af228497b5b6852163a4e61069/src/platform/ps5_agc_package.c#L463-L465). Here `VGT_SHADER_STAGES_EN` is `0x2012010`, so `VGT_SHADER_STAGES_GS_BIT` (0x20) is clear. With the bit clear, `sceAgcCreatePrimState` replaces `contextValues[1]` with the value derived from the primitive type and never uses the slot, but its `valid` check rejects the slot's offset first. ### The stop after that Skipping that offset check when the GS bit is clear (local test only), the title reaches drawing and terminates in `VideoOutDriver::presentLoop` on the check in `Graphics/src/State.cpp`: `PA_SU_SC_MODE_CNTL` (0x205) = `0x00080244`. After the driver's masks the only remaining bit is `0x80000` (bit 19), the provoking-vertex bit, which an OpenGL title sets for GL's last-vertex convention. That looks like a missing feature rather than a header difference. Neither local change is a proposed patch; they only show what each stop depends on. AI-assisted: yes.
evDev69 commented 2026-10-09 06:08:27 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by evDev69 on 2026-10-09T06:08:27Z.


Two clarifications to my comment above, after checking the code paths:

  • Bit 19 of PA_SU_SC_MODE_CNTL is confirmed as PROVOKING_VTX_LAST: opengnm sets it whenever flatshade_first is false, GL's default last-vertex convention.
  • sceAgcCreatePrimState does not use the empty vgt_gs_out_prim_type slot when GS is off, but the driver does read it: DecodeRegisteredState in ShaderRegistry.cpp copies it into the context registers (state.context[special.vgt_gs_out_prim_type.offset] = special.vgt_gs_out_prim_type.value), so with opengnm's empty slot it writes 0 to context register 0. Relaxing only the PrimState check would leave that write in place. AI-assisten: yes.
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6075376633 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2026#issuecomment-6075376633). Originally posted by [evDev69](https://github.com/evDev69) on 2026-10-09T06:08:27Z. --- Two clarifications to my comment above, after checking the code paths: - Bit 19 of `PA_SU_SC_MODE_CNTL` is confirmed as `PROVOKING_VTX_LAST`: opengnm sets it [whenever `flatshade_first` is false](https://github.com/blackbearreloaded/ps5-opengl/blob/db752da4c89380af228497b5b6852163a4e61069/src/gallium/ps5/ps5_screen.c#L2244), GL's default last-vertex convention. - `sceAgcCreatePrimState` does not use the empty `vgt_gs_out_prim_type` slot when GS is off, but the driver does read it: `DecodeRegisteredState` in `ShaderRegistry.cpp` copies it into the context registers (`state.context[special.vgt_gs_out_prim_type.offset] = special.vgt_gs_out_prim_type.value`), so with opengnm's empty slot it writes 0 to context register 0. Relaxing only the `PrimState` check would leave that write in place. AI-assisten: yes.
MarcZX10 commented 2026-10-09 06:24:21 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T06:24:21Z.


Thanks for the field and header-size measurements. I opened #2063 for this bounds failure. It reads through the end of sharp_resource_count and leaves the C++ tail padding zero-initialized; the regression test builds a header ending at that field. On Debian 12/GCC 12.2, agc_driver_graphics passes in 8.82 s, and the conventions check passes.

This fixes the reported DecodeVertexStageInfo rejection. The later sceAgcCreatePrimState and provoking-vertex failures you observed remain separate follow-up behavior; I have not changed those paths here.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6075593486 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2026#issuecomment-6075593486). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-09T06:24:21Z. --- Thanks for the field and header-size measurements. I opened [#2063](https://github.com/boykopovar/AnyPS5/pull/2063) for this bounds failure. It reads through the end of `sharp_resource_count` and leaves the C++ tail padding zero-initialized; the regression test builds a header ending at that field. On Debian 12/GCC 12.2, `agc_driver_graphics` passes in 8.82 s, and the conventions check passes. This fixes the reported `DecodeVertexStageInfo` rejection. The later `sceAgcCreatePrimState` and provoking-vertex failures you observed remain separate follow-up behavior; I have not changed those paths here.
MarcZX10 commented 2026-10-09 06:31:59 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T06:31:59Z.


Follow-up: I opened #2066 for the next failure in the reproduction. sceAgcCreatePrimState now validates VGT_GS_OUT_PRIM_TYPE only when it consumes the supplied special register; with GS disabled and no HS, it emits the value derived from the primitive type. The registered-state decode also skips the absent offset-zero slot. agc_shader_helpers and agc_driver pass locally on Debian 12/GCC 12.2. This doesn't address the later PA_SU_SC_MODE_CNTL.PROVOKING_VTX_LAST check, which needs its own semantics review.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6075687660 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2026#issuecomment-6075687660). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-09T06:31:59Z. --- Follow-up: I opened [#2066](https://github.com/boykopovar/AnyPS5/pull/2066) for the next failure in the reproduction. `sceAgcCreatePrimState` now validates `VGT_GS_OUT_PRIM_TYPE` only when it consumes the supplied special register; with GS disabled and no HS, it emits the value derived from the primitive type. The registered-state decode also skips the absent offset-zero slot. `agc_shader_helpers` and `agc_driver` pass locally on Debian 12/GCC 12.2. This doesn't address the later `PA_SU_SC_MODE_CNTL.PROVOKING_VTX_LAST` check, which needs its own semantics review.
AlxcBTW commented 2026-10-10 05:34:05 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by AlxcBTW on 2026-10-10T05:34:05Z.


The ps5-opengl family on Windows (not tried there yet, per the report): Windows 11 (10.0.26200), WinLibs GCC 15.2.0 r7, NVIDIA RTX 5070 Laptop (616.92), main c9da0f93 with the titles' import PRs (see #1578), #1911 and #1944, then the PRs and branches below merged locally in this order. Each row is where the titles stop after that step:

After PPSA99005 ps5-opengl showcase PPSA39410 VITA5 PPSA99006 ProsperoPuzzles PPSA99050 ps5-homebrew-ui
imports only AGC header pointer is outside the registered shader header same same same
#2063, #2066, #2322 disables seamless cube filtering unsupported SPI_PS_INPUT_ENA/ADDR bit combination (ena 0x80 addr 0x80) same same
#1819 unsupported color depth, dimension, resource level or metadata mode color samples, fragments or destination alpha override (0x31d = 0x00012000) same as VITA5
branches 1 and 2 below shader metadata is outside the registered header prepared shader artifact is missing for the requested static ABI ... stage=5 (#1901) 2 s submission retirement timeout, then the process stays alive
branches 3 and 4 below, #1902 ready GL=4.6 (Core Profile) Mesa 26.2.0 ... 3840x2160, then guest sampler descriptor uses an anisotropy override ~20 s pipeline compile, then last provoking vertex with explicit per-vertex flat interpolation is unsupported same timeout, now exits with 1
branch 5 below last provoking vertex with explicit per-vertex flat interpolation is unsupported in a full catalog run: the same check after 16 s

So on Windows #2063, #2066 and #2322 together get all four past the header check (#2063 and #2066 are merged now), #1819 moves three of them past SPI_PS_INPUT_ENA, and #1902 gets VITA5 and the showcase past the null pixel program. The rest are branches I can't open upstream while intake is paused. Each passes the project's full CI on my fork, merged into main c72d5ce1 (Linux, macOS and Windows builds and tests; linked as CI):

  1. AlxcBTW:fix/agc-non-seamless-cube (CI): samplers with DISABLE_CUBE_WRAP (GL's default is non-seamless cube maps) are created with VK_SAMPLER_CREATE_NON_SEAMLESS_CUBE_MAP_BIT_EXT, the flag RADV maps to that bit; without the extension only a cube texture sampled through such a sampler throws.
  2. AlxcBTW:fix/agc-array-color-target (CI): 2D color targets with a nonzero MIP0_DEPTH (CB_COLOR_ATTRIB3 = 0x4dc6c001; radeonsi writes the last layer there) are accepted, and the view slice is checked against it. The slice offset was already there.
  3. AlxcBTW:fix/windows-immediate-exit (CI): after its retirement fail-stop ps5-homebrew-ui calls _Exit, which on Windows still runs module detach routines; FlipQueue's destructor then joins its terminated thread forever. _Exit/_exit now end the process with TerminateProcess.
  4. AlxcBTW:fix/agc-compute-without-specials (CI): opengnm registers compute headers without specials and passes the wave size in the dispatch initiator, so registration read a null specials pointer. Such shaders are now prepared at dispatch with the initiator's wave size. It touches the same lines as #1902; I have the combination resolved.
  5. AlxcBTW:fix/agc-aniso-override (CI): ANISO_OVERRIDE (S# word 2 bit 29) disables anisotropy for single-level images (Mesa sets it from !aniso_single_level). The bit is now accepted. Only a single-level texture sampled through an anisotropic sampler with it still throws. Edit: this duplicates TheAggie's #1415, which I missed. #1415 is the more complete change, because it tracks which images each sampler is paired with, so please use that one.

UI Lab's retirement timeout and VITA5's 20 s are the driver compiling one pixel shader. Its 21,652 bytes of RDNA code become 2.8 MB of SPIR-V, most of it the float-mode emulation around its 3,712 float operations. The showcase's last stop comes from flat inputs 1 and 2, which it reads with v_interp_mov_f32 P10 in last-provoking mode. That read is #1413's open question, so I left it alone. Both runs without APS5_TRACE_GPU ended with the title's own submission retirement failed instead, because the failed submission never retires. PPSA99006 renders into a 4-sample, 4-fragment color target (CB_COLOR0_ATTRIB 0x12000), which is #419's area.

AI-assisted: yes (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6094252292 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2026#issuecomment-6094252292). Originally posted by [AlxcBTW](https://github.com/AlxcBTW) on 2026-10-10T05:34:05Z. --- The ps5-opengl family **on Windows** (not tried there yet, per the report): Windows 11 (10.0.26200), WinLibs GCC 15.2.0 r7, NVIDIA RTX 5070 Laptop (616.92), `main` c9da0f93 with the titles' import PRs (see #1578), #1911 and #1944, then the PRs and branches below merged locally in this order. Each row is where the titles stop after that step: | After | PPSA99005 ps5-opengl showcase | PPSA39410 VITA5 | PPSA99006 ProsperoPuzzles | PPSA99050 ps5-homebrew-ui | |---|---|---|---|---| | imports only | `AGC header pointer is outside the registered shader header` | same | same | same | | #2063, #2066, #2322 | `disables seamless cube filtering` | `unsupported SPI_PS_INPUT_ENA/ADDR bit combination (ena 0x80 addr 0x80)` | same | same | | #1819 | | `unsupported color depth, dimension, resource level or metadata mode` | `color samples, fragments or destination alpha override` (`0x31d = 0x00012000`) | same as VITA5 | | branches 1 and 2 below | `shader metadata is outside the registered header` | `prepared shader artifact is missing for the requested static ABI ... stage=5` (#1901) | | 2 s submission retirement timeout, then the process stays alive | | branches 3 and 4 below, #1902 | `ready GL=4.6 (Core Profile) Mesa 26.2.0 ... 3840x2160`, then `guest sampler descriptor uses an anisotropy override` | ~20 s pipeline compile, then `last provoking vertex with explicit per-vertex flat interpolation is unsupported` | | same timeout, now exits with 1 | | branch 5 below | `last provoking vertex with explicit per-vertex flat interpolation is unsupported` | | | in a full catalog run: the same check after 16 s | So on Windows #2063, #2066 and #2322 together get all four past the header check (#2063 and #2066 are merged now), #1819 moves three of them past `SPI_PS_INPUT_ENA`, and #1902 gets VITA5 and the showcase past the null pixel program. The rest are branches I can't open upstream while intake is paused. Each passes the project's full CI on my fork, merged into `main` c72d5ce1 (Linux, macOS and Windows builds and tests; linked as CI): 1. [`AlxcBTW:fix/agc-non-seamless-cube`](https://github.com/AlxcBTW/AnyPS5/pull/1) ([CI](https://github.com/AlxcBTW/AnyPS5/actions/runs/38021726433)): samplers with `DISABLE_CUBE_WRAP` (GL's default is non-seamless cube maps) are created with `VK_SAMPLER_CREATE_NON_SEAMLESS_CUBE_MAP_BIT_EXT`, the flag RADV maps to that bit; without the extension only a cube texture sampled through such a sampler throws. 2. [`AlxcBTW:fix/agc-array-color-target`](https://github.com/AlxcBTW/AnyPS5/pull/3) ([CI](https://github.com/AlxcBTW/AnyPS5/actions/runs/38021730285)): 2D color targets with a nonzero `MIP0_DEPTH` (`CB_COLOR_ATTRIB3 = 0x4dc6c001`; radeonsi writes the last layer there) are accepted, and the view slice is checked against it. The slice offset was already there. 3. [`AlxcBTW:fix/windows-immediate-exit`](https://github.com/AlxcBTW/AnyPS5/pull/2) ([CI](https://github.com/AlxcBTW/AnyPS5/actions/runs/38021728372)): after its retirement fail-stop ps5-homebrew-ui calls `_Exit`, which on Windows still runs module detach routines; `FlipQueue`'s destructor then joins its terminated thread forever. `_Exit`/`_exit` now end the process with `TerminateProcess`. 4. [`AlxcBTW:fix/agc-compute-without-specials`](https://github.com/AlxcBTW/AnyPS5/pull/4) ([CI](https://github.com/AlxcBTW/AnyPS5/actions/runs/38021732424)): opengnm registers compute headers without specials and passes the wave size in the dispatch initiator, so registration read a null specials pointer. Such shaders are now prepared at dispatch with the initiator's wave size. It touches the same lines as #1902; I have the combination resolved. 5. [`AlxcBTW:fix/agc-aniso-override`](https://github.com/AlxcBTW/AnyPS5/pull/5) ([CI](https://github.com/AlxcBTW/AnyPS5/actions/runs/38021734260)): `ANISO_OVERRIDE` (S# word 2 bit 29) disables anisotropy for single-level images (Mesa sets it from `!aniso_single_level`). The bit is now accepted. Only a single-level texture sampled through an anisotropic sampler with it still throws. *Edit:* this duplicates TheAggie's #1415, which I missed. #1415 is the more complete change, because it tracks which images each sampler is paired with, so please use that one. UI Lab's retirement timeout and VITA5's 20 s are the driver compiling one pixel shader. Its 21,652 bytes of RDNA code become 2.8 MB of SPIR-V, most of it the float-mode emulation around its 3,712 float operations. The showcase's last stop comes from flat inputs 1 and 2, which it reads with `v_interp_mov_f32` P10 in last-provoking mode. That read is #1413's open question, so I left it alone. Both runs without `APS5_TRACE_GPU` ended with the title's own `submission retirement failed` instead, because the failed submission never retires. PPSA99006 renders into a 4-sample, 4-fragment color target (`CB_COLOR0_ATTRIB` `0x12000`), which is #419's area. AI-assisted: yes (Claude Code).
oneandonlydean commented 2026-10-10 06:25:00 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-10T06:25:00Z.


Closing: #2063 reads the user-data header without its tail padding, so DecodeVertexStageInfo no longer stops on this header, and #2066 accepts the unused geometry output register. The later stops in the table above are separate issues.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6094629456 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2026#issuecomment-6094629456). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-10T06:25:00Z. --- Closing: #2063 reads the user-data header without its tail padding, so `DecodeVertexStageInfo` no longer stops on this header, and #2066 accepts the unused geometry output register. The later stops in the table above are separate issues.
Sign in to join this conversation.
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#2026
No description provided.