Skip to content

fix(agc): a mesh draw shorter than one primitive draws nothing - #6279

Merged
adriadam10 merged 1 commit into
boykopovar:mainfrom
hypermoist:fix/mesh-draw-short-of-a-primitive
Oct 18, 2026
Merged

adriadam10 merged 1 commit into
boykopovar:mainfrom
hypermoist:fix/mesh-draw-short-of-a-primitive

Conversation

@hypermoist

Copy link
Copy Markdown
Contributor

What

A direct mesh draw with fewer indices than one input primitive (for example 2 indices of a triangle list) threw mesh draw contains no complete primitive, and the draw was skipped through an exception. The hardware assembles no primitive from it, as Vulkan does for a non-mesh draw that short, so it is now an empty draw (inputs.nothing), as other empty draws already are. In PPSA08427's hub that is about 1800 draws per 10 s, each paying an exception.

A mesh pipeline whose subgroup holds zero primitives still throws, now with its own message (mesh pipeline groups no primitive (zero primitives per group)). Indirect mesh draws are unchanged.

Tested

CachyOS Linux (kernel 7.2.9), NVIDIA GeForce RTX 3060, driver 615.78.08, GCC 16.2.1, Release, on main 721db55.

  • agc_driver_mesh draws a triangle list of 2 vertices, indexed and not, and checks that nothing was drawn. On main it fails with AGC graphics: mesh draw contains no complete primitive.
  • Pass: agc_driver_mesh, agc_driver_graphics.

Checklist

  • Based on current main; no other open PR implements the same functions
  • 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: none
  • GPUs tested: NVIDIA GeForce RTX 3060, driver 615.78.08, CachyOS Linux (kernel 7.2.9)
  • AI-assisted: yes

🤖 Generated with Claude Code

https://claude.ai/code/session_01Uzy15wqYTt6iWyxYXEzUWo

@github-actions

github-actions Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

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 1191 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 1368 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 1395 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 4072 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 5441 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 5499 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 5609 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 5925 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 6188 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 6215 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 6292 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 6312 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 6414 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 6529 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 6539 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 6615 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 6683 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 6763 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 6946 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 6947 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 6973 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 6987 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 6989 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 6995 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 7002 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 7256 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 7642 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp

A direct mesh draw with fewer indices than its input primitive threw "mesh draw
contains no complete primitive" (about 1800 skipped draws per 10 s in PPSA08427's
hub, each paying an exception). The hardware assembles no primitive from it, as
Vulkan does for a non-mesh draw that short, so it is now an empty draw. A mesh
pipeline grouping zero primitives still throws, with its own message.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Uzy15wqYTt6iWyxYXEzUWo
@adriadam10
adriadam10 force-pushed the fix/mesh-draw-short-of-a-primitive branch from 19ea517 to e2a4d10 Compare October 18, 2026 19:46
@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Oct 18, 2026
@adriadam10
adriadam10 merged commit 0737757 into boykopovar:main Oct 18, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agc libSceAgc*

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants