AGC: OliSe Player stops on 'last provoking vertex with explicit per-vertex triangle-strip interpolation is unsupported' #5245

Closed
opened 2026-10-13 15:33:38 +00:00 by YossiYad · 5 comments
YossiYad commented 2026-10-13 15:33:38 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by YossiYad on 2026-10-13T15:33:38Z.


OliSe Player (PPSA01153, catalog 02.001.000) stops at the triangle-strip sibling of the guard #4030 removed for flat inputs:

[videoout] presentation failed: AGC graphics: last provoking vertex with explicit per-vertex triangle-strip interpolation is unsupported
terminate called after throwing an instance of 'std::runtime_error'

Linux (Fedora 44 distrobox, GCC 16, Release), RX 7700 XT (RADV), main 0f2683cb plus #4514, #4469, #4467 and #5218 (none of them touches AGC); catalog build, eboot.bin unwrapped, 40 s run. It aborts about 1 s after start-up, while the title's first ps5-opengl (Mesa) pipelines are compiled; the shaders compiled just before the throw are a vertex and a pixel shader with primitive=6 in ps5-gallium's log.

The check is the second Require in ValidateProvokingVertex (Graphics/src/Pipeline.cpp): the pipeline uses the last provoking vertex (PA_SU_SC_MODE_CNTL.PROVOKING_VTX_LAST, GL's default convention), the topology is a triangle strip, and a pixel shader reads an input through the explicit per-vertex path (v_interp_mov P10/P20 or raw v_interp_p* vertex reads). For odd triangles of a strip, the order in which the three vertices reach the pixel shader under the last provoking vertex is what nobody has measured: Vulkan's pervertexEXT order for odd strip triangles follows the provoking-vertex mode, and whether the PS5's parameter-cache order (P0/P10/P20) matches it is the open part of #1413.

What would settle it:

  • the vertex order of odd strip triangles with PROVOKING_VTX_LAST on RDNA2 hardware or a console, read through v_interp_mov P0/P10/P20; or
  • a ps5-opengl CTS case that draws a strip with explicit per-vertex inputs (#1413 cites its provoking_vtx_last pass).

I have not changed anything here; the issue records the title and the exact stop for whoever takes #1413 further.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5833162461 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5245). Originally posted by [YossiYad](https://github.com/YossiYad) on 2026-10-13T15:33:38Z. --- OliSe Player (PPSA01153, catalog 02.001.000) stops at the triangle-strip sibling of the guard #4030 removed for flat inputs: ``` [videoout] presentation failed: AGC graphics: last provoking vertex with explicit per-vertex triangle-strip interpolation is unsupported terminate called after throwing an instance of 'std::runtime_error' ``` Linux (Fedora 44 distrobox, GCC 16, Release), RX 7700 XT (RADV), `main` `0f2683cb` plus #4514, #4469, #4467 and #5218 (none of them touches AGC); catalog build, `eboot.bin` unwrapped, 40 s run. It aborts about 1 s after start-up, while the title's first ps5-opengl (Mesa) pipelines are compiled; the shaders compiled just before the throw are a vertex and a pixel shader with `primitive=6` in ps5-gallium's log. The check is the second `Require` in `ValidateProvokingVertex` (`Graphics/src/Pipeline.cpp`): the pipeline uses the last provoking vertex (`PA_SU_SC_MODE_CNTL.PROVOKING_VTX_LAST`, GL's default convention), the topology is a triangle strip, and a pixel shader reads an input through the explicit per-vertex path (`v_interp_mov` P10/P20 or raw `v_interp_p*` vertex reads). For odd triangles of a strip, the order in which the three vertices reach the pixel shader under the last provoking vertex is what nobody has measured: Vulkan's `pervertexEXT` order for odd strip triangles follows the provoking-vertex mode, and whether the PS5's parameter-cache order (P0/P10/P20) matches it is the open part of #1413. What would settle it: - the vertex order of odd strip triangles with `PROVOKING_VTX_LAST` on RDNA2 hardware or a console, read through `v_interp_mov` P0/P10/P20; or - a ps5-opengl CTS case that draws a strip with explicit per-vertex inputs (#1413 cites its `provoking_vtx_last` pass). I have not changed anything here; the issue records the title and the exact stop for whoever takes #1413 further.
YossiYad commented 2026-10-13 15:38:04 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by YossiYad on 2026-10-13T15:38:04Z.


A measurement that may help here: the vertex order of odd triangle-strip primitives as a pixel shader sees it, on an RX 7700 XT (RDNA3, RADV, Mesa 26.x), first and last provoking vertex. A 6-vertex strip; each vertex outputs its index; the pixel shader writes the three per-vertex values of each primitive.

Read through provoking even triangle (i, i+1, i+2) odd triangle (i, i+1, i+2)
interpolateAtVertexAMD (RADV: explicit input, parameter cache in pass-through, ROTATE_PC_PTR clear) first i, i+1, i+2 i, i+2, i+1
same last i, i+1, i+2 i, i+2, i+1
pervertexEXT (RADV: interp_explicit_strict, ROTATE_PC_PTR set) first i, i+1, i+2 i, i+2, i+1
same last i, i+1, i+2 i+1, i, i+2
  • The unrotated parameter-cache order does not change with PROVOKING_VTX_LAST: odd strip primitives are (i, i+2, i+1) in both modes, which is the base table of primsrast-barycentric-order-table.
  • pervertexEXT follows the spec's last-vertex table on RADV (triStripVertexOrderIndependentOfProvokingVertex = false): (i+1, i, i+2). RADV gets there by setting ROTATE_PC_PTR for strict per-vertex inputs (radv_cmd_buffer.c, offset_to_ps_input).
  • So on a host where that property is false, with the last provoking vertex, unrotated slot k of an odd strip primitive is pervertexEXT[(k + 1) % 3]; even primitives, the first provoking vertex, and hosts where the property is true need no remap. The parity would have to come from PrimitiveId, which does not follow strip restarts.

Caveats: RDNA3 rather than the PS5's RDNA2, observed through RADV rather than raw PM4, and it says nothing about guest shaders that set ROTATE_PC_PTR in SPI_PS_INPUT_CNTL themselves. Interpolated reads are not affected either way, since AnyPS5 feeds the per-vertex values and the barycentrics in the same Vulkan order; only reads that rely on which vertex sits in which slot are. I have not changed the guard. The test program is about 150 lines of C plus three shaders; happy to attach it.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6149265966 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5245#issuecomment-6149265966). Originally posted by [YossiYad](https://github.com/YossiYad) on 2026-10-13T15:38:04Z. --- A measurement that may help here: the vertex order of odd triangle-strip primitives as a pixel shader sees it, on an RX 7700 XT (RDNA3, RADV, Mesa 26.x), first and last provoking vertex. A 6-vertex strip; each vertex outputs its index; the pixel shader writes the three per-vertex values of each primitive. | Read through | provoking | even triangle (i, i+1, i+2) | odd triangle (i, i+1, i+2) | |---|---|---|---| | `interpolateAtVertexAMD` (RADV: explicit input, parameter cache in pass-through, `ROTATE_PC_PTR` clear) | first | i, i+1, i+2 | i, i+2, i+1 | | same | last | i, i+1, i+2 | i, i+2, i+1 | | `pervertexEXT` (RADV: `interp_explicit_strict`, `ROTATE_PC_PTR` set) | first | i, i+1, i+2 | i, i+2, i+1 | | same | last | i, i+1, i+2 | **i+1, i, i+2** | - The unrotated parameter-cache order does not change with `PROVOKING_VTX_LAST`: odd strip primitives are (i, i+2, i+1) in both modes, which is the base table of [`primsrast-barycentric-order-table`](https://github.com/KhronosGroup/Vulkan-Docs/blob/main/chapters/primsrast.adoc). - `pervertexEXT` follows the spec's last-vertex table on RADV (`triStripVertexOrderIndependentOfProvokingVertex = false`): (i+1, i, i+2). RADV gets there by setting `ROTATE_PC_PTR` for strict per-vertex inputs (`radv_cmd_buffer.c`, `offset_to_ps_input`). - So on a host where that property is false, with the last provoking vertex, unrotated slot k of an odd strip primitive is `pervertexEXT[(k + 1) % 3]`; even primitives, the first provoking vertex, and hosts where the property is true need no remap. The parity would have to come from `PrimitiveId`, which does not follow strip restarts. Caveats: RDNA3 rather than the PS5's RDNA2, observed through RADV rather than raw PM4, and it says nothing about guest shaders that set `ROTATE_PC_PTR` in `SPI_PS_INPUT_CNTL` themselves. Interpolated reads are not affected either way, since AnyPS5 feeds the per-vertex values and the barycentrics in the same Vulkan order; only reads that rely on which vertex sits in which slot are. I have not changed the guard. The test program is about 150 lines of C plus three shaders; happy to attach it.
YossiYad commented 2026-10-13 17:30:25 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by YossiYad on 2026-10-13T17:30:25Z.


The stop is intermittent: on plain main 0214069e (Linux, RX 7700 XT), 40 s runs of OliSe Player reach it in 2 of 5 runs, about 1 s after start-up when it does; the other runs keep the player up at 25-60 fps. Whoever checks a fix here should run it several times.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6151349283 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5245#issuecomment-6151349283). Originally posted by [YossiYad](https://github.com/YossiYad) on 2026-10-13T17:30:25Z. --- The stop is intermittent: on plain `main` `0214069e` (Linux, RX 7700 XT), 40 s runs of OliSe Player reach it in 2 of 5 runs, about 1 s after start-up when it does; the other runs keep the player up at 25-60 fps. Whoever checks a fix here should run it several times.
hansjm10 commented 2026-10-13 18:54:36 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by hansjm10 on 2026-10-13T18:54:36Z.


I’m investigating this on gfx1036/RADV, Mesa 22.3.6: repeated plain-main runs, followed by vertex-order measurements through interpolateAtVertexAMD with first/last provoking vertex. Native fragment-barycentric testing is unavailable on this driver, so I’ll report that limitation explicitly. The guard stays unchanged; this is data gathering, not a proposed remap.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6152853870 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5245#issuecomment-6152853870). Originally posted by [hansjm10](https://github.com/hansjm10) on 2026-10-13T18:54:36Z. --- I’m investigating this on gfx1036/RADV, Mesa 22.3.6: repeated plain-main runs, followed by vertex-order measurements through `interpolateAtVertexAMD` with first/last provoking vertex. Native fragment-barycentric testing is unavailable on this driver, so I’ll report that limitation explicitly. The guard stays unchanged; this is data gathering, not a proposed remap. AI-assisted: yes.
YossiYad commented 2026-10-14 08:06:12 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by YossiYad on 2026-10-14T08:06:12Z.


A second title stops here: RetroArch's EmulationStation frontend (PPSA99169, /app0/es-de/es-de.bin, rendering through the title's ps5-gallium Mesa). Linux, RX 7700 XT (RADV), main 315260903 with #5083, which ES-DE needs to start at all. After a game returns to ES-DE through the title's game mode, its first presentation fails with:

[videoout] presentation failed: AGC graphics: last provoking vertex with explicit per-vertex triangle-strip interpolation is unsupported

So the guard now blocks both OliSe Player and the ES-DE frontend of RetroArch.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6163831766 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5245#issuecomment-6163831766). Originally posted by [YossiYad](https://github.com/YossiYad) on 2026-10-14T08:06:12Z. --- A second title stops here: RetroArch's EmulationStation frontend (PPSA99169, `/app0/es-de/es-de.bin`, rendering through the title's ps5-gallium Mesa). Linux, RX 7700 XT (RADV), `main` `315260903` with #5083, which ES-DE needs to start at all. After a game returns to ES-DE through the title's game mode, its first presentation fails with: ``` [videoout] presentation failed: AGC graphics: last provoking vertex with explicit per-vertex triangle-strip interpolation is unsupported ``` So the guard now blocks both OliSe Player and the ES-DE frontend of RetroArch.
milescoviello commented 2026-10-15 03:04:57 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-15T03:04:57Z.


A third title that stops here: Régie5 (PPSA99520, catalog 0.3.0), which draws through ps5-opengl (EGL, OpenGL 4.6). Unlike OliSe Player it stops on every run: 3 of 3 runs on main a077a88df, plus the same stop in two earlier sweeps, each about 1 s after start-up, before the first flip:

[videoout] presentation failed: AGC graphics: last provoking vertex with explicit per-vertex triangle-strip interpolation is unsupported

Linux (Ubuntu 24.04, GCC 13.3, Release), RTX 4070 Ti, NVIDIA 595.99.02. For the host side of YossiYad's table: this driver also reports triStripVertexOrderIndependentOfProvokingVertex = false, the same as RADV.

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6183452182 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5245#issuecomment-6183452182). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-15T03:04:57Z. --- A third title that stops here: Régie5 (PPSA99520, catalog 0.3.0), which draws through ps5-opengl (EGL, OpenGL 4.6). Unlike OliSe Player it stops on every run: 3 of 3 runs on `main` `a077a88df`, plus the same stop in two earlier sweeps, each about 1 s after start-up, before the first flip: ``` [videoout] presentation failed: AGC graphics: last provoking vertex with explicit per-vertex triangle-strip interpolation is unsupported ``` Linux (Ubuntu 24.04, GCC 13.3, Release), RTX 4070 Ti, NVIDIA 595.99.02. For the host side of YossiYad's table: this driver also reports `triStripVertexOrderIndependentOfProvokingVertex = false`, the same as RADV. AI-assisted: yes
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#5245
No description provided.