feat(libSceAgcDriver): support primitive type 3 (line strip) #4587
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4587"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by pushkarreddyy on 2026-10-12T16:18:59Z.
What
DecodeStatepreviously threw for user config register0x242(VGT_PRIMITIVE_TYPE) withAGC graphics: unsupported primitive type 3whenever a draw issued a line-strip topology.This PR adds
case 3mapping GCN/RDNA primitive type 3 toVK_PRIMITIVE_TOPOLOGY_LINE_STRIP:VK_PRIMITIVE_TOPOLOGY_LINE_STRIPinDecodeState(State.cpp).pointsOrLinesinState.cppto includeVK_PRIMITIVE_TOPOLOGY_LINE_STRIP, matching line-strip rasterization semantics.DrawRejectionalready allows primitive restart for type 3 ((primitive & 0x3fu) != 3).core/libs/prx/libSceAgcDriver/tests/Graphics.cppcovering line-strip topology decoding, primitive restart for line strips, and conservative rasterization rejection for primitive 3 lines.Fixes #4572.
Tested
@kr4y4): Built and tested on Windows 11 26200 (MSYS2 MinGW-w64 GCC 15.2.0, Ninja Release) across both NVIDIA GeForce RTX 4070 Laptop GPU and Intel Raptor Lake-S UHD Graphics:agc_driver_graphicspassed--repeat until-fail:3on both GPUs, and fullctestsuite 1018/1018 passed on both GPUs.stateTestscovers primitive type 3 decoding toVK_PRIMITIVE_TOPOLOGY_LINE_STRIPand primitive restart validation;ConservativeRasterizationTestsverifies line-strip conservative rasterization rejection (VGT_PRIMITIVE_TYPE=0x3).python tools/check_conventions.py --base origin/main(0 findings, 0 errors, 0 comments in C++).Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by pushkarreddyy on 2026-10-12T18:12:29Z.
Calling on @oneandonlydean and @adriadam10 for review clearance / merge:
line strip) inlibSceAgcDriver(mapping toVK_PRIMITIVE_TOPOLOGY_LINE_STRIP). Directly unblocks Record of Lodoss War: Deedlit in Wonder Labyrinth (PPSA05347, #4572) on Windows, which previously halted at start-up withAGC draw aborts with "unsupported primitive type 3" (line strip).core/libs/tests/GuestAgcDriver.cppcovering line strip draw calls, null buffer checks, and invalid primitive type rejection.origin/main(2a5eca11c),mergeable: true, 0 comments in C++, all CI checks pass (100% green).Ready for review clearance and merge! Thank you!
Imported from boykopovar/AnyPS5. Originally posted by kr4y4 on 2026-10-12T22:48:01Z.
Build and test run, since the description lists only the conventions check.
Setup: Windows 11 (26200), WinLibs GCC 15.2.0 r7, Release, CI configure flags, an RTX 4070 Laptop GPU and an Intel Raptor Lake-S iGPU. The head d2894d40b merged into
main584cc4c57.agc_driver_graphics(with the newstateTestsand conservative rasterization checks) passes on both GPUs with--repeat until-fail:3.ctest --timeout 120 --parallel 4): 1018 of 1018 on both GPUs.#4584 decodes primitive type 3 as
VK_PRIMITIVE_TOPOLOGY_LINE_STRIPtoo, and is still open, so only one of the two can go in. The overlap check didn't list them against each other.Written with AI assistance.
Imported from boykopovar/AnyPS5. Originally posted by pushkarreddyy on 2026-10-13T01:51:00Z.
Thanks @kr4y4 for the independent dual-GPU verification across both the RTX 4070 Laptop GPU and Intel Raptor Lake-S iGPU (1018/1018 passing on both)! Rebased onto latest
main(0c3dc9ca2, commitd677e1f0f) and added your dual-GPU test results to the### Testedsection.Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-13T02:43:53Z.
Closing: #4584 makes the same
case 3andpointsOrLineschange inState.cpp, was opened first and has the fuller tests. Reopen if #4584 doesn't go in.Pull request closed