Repository navigation
fix(agc): NGG passthrough routing of a topology the mesh path does not assemble draws through the vertex path - #256
Closed
MichonGoddijn231849 wants to merge 1 commit into
Conversation
…t assemble draws through the vertex path Passthrough routing (VGT_SHADER_STAGES_EN bit 25) made every draw a mesh draw, whose assembly takes triangle lists and strips only, so passthrough rect lists and triangle fans, which the vertex path draws and drew before, were rejected. The path is chosen from the primitive type: passthrough triangle lists and strips are mesh draws, other topologies draw through the vertex path. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This was referenced Oct 1, 2026
Owner
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Since #143 (4cd8e35), passthrough routing (
VGT_SHADER_STAGES_ENbit 25) makes every draw a mesh draw. The mesh assembly takes only triangle lists and strips, so it rejects passthrough rect lists (primitive 7 and 17) and triangle fans (5) withunsupported geometry input or output assembly. Before #143 those draws took the vertex path, which draws them (rect lists throughrectList, fans asTRIANGLE_FAN). Its routing check still accepts the passthrough bit (0x02402010).The path is now chosen from the primitive type before the stage decode:
ShaderStageTestsgains passthrough rect lists (7, 17) and a fan (5), which must decode to the vertex path (rect lists as rect lists). The test fails without the change.GTA V draws passthrough rect lists and fans into its HDR scene target, and on current
mainevery one of them was rejected.Tested
Windows 11 Pro, AMD Ryzen 5 7600, NVIDIA GeForce RTX 5080 (driver 32.0.16.1074), 32 GB DDR5-5600, MinGW-w64 GCC 15.2.0.
agc_driver_graphics: the new cases pass, and fail without the change.VGT_SHADER_STAGES_EN=0x2002000: unsupported geometry input or output assemblyrejections into the HDR target are gone.ctest: all tests pass.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🤖 Generated with Claude Code