Skip to content

fix(agc): preserve optional user pointers for fused geometry shaders - #147

Closed
SamG-Coder wants to merge 5 commits into
boykopovar:mainfrom
SamG-Coder:codex/shader-fusion-validation
Closed

SamG-Coder wants to merge 5 commits into
boykopovar:mainfrom
SamG-Coder:codex/shader-fusion-validation

Conversation

@SamG-Coder

@SamG-Coder SamG-Coder commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Preserve optional merged shader user-data pointers when present, while allowing a completely absent optional pair. Required pointers and incomplete pairs retain strict register validation.

Rebased onto upstream a67b644. The branch now contains five follow-up commits: Windows mesh-test support, guest wave-size launch state, NGG passthrough inputs, hidden vertex-table prefix handling, and optional merged pointers. The first four retain the work from #143.

The former #113 and #133 foundations are now upstream and have been removed from this PR's diff. The imported #124 fusion implementation has also been removed in favor of upstream's current fusion code; this branch no longer depends on #124. Upstream request serialization version 4 remains readable, and the added passthrough field is written as version 5.

Current validation

Windows / RTX 5080, commit b9acd15:

  • Full build and library packaging passed.
  • 78/78 CTest tests passed.
  • Four original PS5-targeted demos, converted with the current relinker, passed their existing three-point foreground checks: passthrough and mesh rendering at both wave32 and wave64.
  • The two split-fusion demos failed before capture: the resulting vertex shader reported absent resource declarations. These are failures, not rendering passes.

Draft status and limits

Keep this draft. The previous 46,048-sample fusion result and structural resource-plan results describe the older dependency stack, not this rebased branch. They are superseded as current-branch evidence. The current upstream fusion behavior needs further investigation before the split-fusion demos can pass again. Nonzero back-half resource-pointer reloads, incomplete-pointer rejection, and broader converted-demo coverage remain outstanding.

No performance, clean-exit, physical-console, or complete-application compatibility claim is made. Demos, captures and detailed results remain outside Git; no application shader bytes or assets are included. No new GPU instruction opcodes are added.

@github-actions github-actions Bot added build shader core/shader agc libSceAgc* labels Sep 29, 2026
@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Sep 30, 2026
@SamG-Coder
SamG-Coder force-pushed the codex/shader-fusion-validation branch from 8345fbc to b9acd15 Compare September 30, 2026 23:20
@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Oct 1, 2026
@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Oct 1, 2026
@SamG-Coder

Copy link
Copy Markdown
Contributor Author

Superseded by upstream and #143. Upstream now includes the optional merged-pointer fix; the remaining geometry follow-ups are consolidated in rebased #143, with a successful build, 88/88 CTest tests, and fresh converted-demo validation. No unique fix remains in this PR.

@SamG-Coder
SamG-Coder force-pushed the codex/shader-fusion-validation branch from b9acd15 to ab48b92 Compare October 1, 2026 10:11
@SamG-Coder SamG-Coder closed this Oct 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agc libSceAgc* build needs rebase Conflicts with main, rebase needed shader core/shader

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant