Record of Lodoss War (PPSA05347) on Windows: AGC draw aborts with "unsupported primitive type 3" (line strip) #4572

Closed
opened 2026-10-12 15:59:24 +00:00 by xXPBSXx · 3 comments
xXPBSXx commented 2026-10-12 15:59:24 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-12T15:59:24Z.


Record of Lodoss War (PPSA05347, from the owner's own dump), Windows 10, MinGW GCC, NVIDIA RTX 4080 SUPER, libs built from main 3d8ffeb27 (the libs_late build of this series of test runs), relinked with 0 absent imports.

Observed: in four separate runs (run_172908, run_173759, run_174128, run_174853, all on 2026-10-12) the title runs until the first presentation of a draw and then aborts with

[videoout] presentation failed: AGC graphics: unsupported primitive type 3
what():  AGC graphics: unsupported primitive type 3

The throw is the default: branch of the primitive-type switch in core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp (DecodeState, user config register 0x242). The switch maps 1 (point list), 2 (line list), 4 (triangle list), 5 (triangle fan), 6 (triangle strip), 7 and 17 (rect list) and 9 (patch) and has no case for 3.

Source for the value: shadPS4 src/video_core/amdgpu/regs_vertex.h, enum class PrimitiveType: LineList = 2, LineStrip = 3, TriangleList = 4, TriangleFan = 5, TriangleStrip = 6, PatchPrimitive = 9, ... RectList = 17, so 3 is the line strip; renderer_vulkan/liverpool_to_vk.cpp maps it to vk::PrimitiveTopology::eLineStrip.

Not established: which draw issues it, whether the title relies on primitive restart for the strip, and whether the cases 1 and 2 style restrictions (point/line list handling in the same switch) apply to a line strip here. I have not changed the code. A candidate fix is a case 3 with VK_PRIMITIVE_TOPOLOGY_LINE_STRIP plus a test; I have not tried it.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5816696135 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/4572). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-12T15:59:24Z. --- Record of Lodoss War (PPSA05347, from the owner's own dump), Windows 10, MinGW GCC, NVIDIA RTX 4080 SUPER, libs built from `main` `3d8ffeb27` (the `libs_late` build of this series of test runs), relinked with 0 absent imports. **Observed:** in four separate runs (`run_172908`, `run_173759`, `run_174128`, `run_174853`, all on 2026-10-12) the title runs until the first presentation of a draw and then aborts with ``` [videoout] presentation failed: AGC graphics: unsupported primitive type 3 what(): AGC graphics: unsupported primitive type 3 ``` The throw is the `default:` branch of the primitive-type switch in `core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp` (`DecodeState`, user config register `0x242`). The switch maps 1 (point list), 2 (line list), 4 (triangle list), 5 (triangle fan), 6 (triangle strip), 7 and 17 (rect list) and 9 (patch) and has no case for 3. **Source for the value:** shadPS4 `src/video_core/amdgpu/regs_vertex.h`, `enum class PrimitiveType`: `LineList = 2, LineStrip = 3, TriangleList = 4, TriangleFan = 5, TriangleStrip = 6, PatchPrimitive = 9, ... RectList = 17`, so 3 is the line strip; `renderer_vulkan/liverpool_to_vk.cpp` maps it to `vk::PrimitiveTopology::eLineStrip`. **Not established:** which draw issues it, whether the title relies on primitive restart for the strip, and whether the cases 1 and 2 style restrictions (point/line list handling in the same switch) apply to a line strip here. I have not changed the code. A candidate fix is a `case 3` with `VK_PRIMITIVE_TOPOLOGY_LINE_STRIP` plus a test; I have not tried it. AI-assisted (Claude Code).
xXPBSXx commented 2026-10-12 16:30:41 +00:00 (Migrated from github.com)
Author
Contributor

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


For information: PR #4584 (fix(agc): decode primitive type 3 as a line strip) adds the missing case 3 in DecodeState.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6128378916 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/4572#issuecomment-6128378916). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-12T16:30:41Z. --- For information: PR #4584 (`fix(agc): decode primitive type 3 as a line strip`) adds the missing `case 3` in `DecodeState`. AI-assisted (Claude Code).
LeandroLP23 commented 2026-10-13 20:14:17 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-13T20:14:17Z.


#4584 (fix(agc): decode primitive type 3 as a line strip) was merged on 2026-10-13 as 02d4839b6, so this stop is fixed on main and the issue can be closed.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6154298396 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/4572#issuecomment-6154298396). Originally posted by [LeandroLP23](https://github.com/LeandroLP23) on 2026-10-13T20:14:17Z. --- #4584 (`fix(agc): decode primitive type 3 as a line strip`) was merged on 2026-10-13 as `02d4839b6`, so this stop is fixed on `main` and the issue can be closed. AI-assisted: yes (Claude Code)
oneandonlydean commented 2026-10-14 00:08:48 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-14T00:08:48Z.


Closing: #4584 decodes primitive type 3 as a line strip on main. Comment here if the title still stops on it on current main.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6157871301 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/4572#issuecomment-6157871301). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-14T00:08:48Z. --- Closing: #4584 decodes primitive type 3 as a line strip on main. Comment here if the title still stops on it on current main.
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#4572
No description provided.