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

Closed
SamG-Coder wants to merge 5 commits from upstream-pr/147 into main
SamG-Coder commented 2026-09-29 12:12:48 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by SamG-Coder on 2026-09-29T12:12:48Z.


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 a67b644f. 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 b9acd15b:

  • 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.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4676979822 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/147). Originally posted by [SamG-Coder](https://github.com/SamG-Coder) on 2026-09-29T12:12:48Z. --- 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 a67b644f. 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 b9acd15b: - 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.
SamG-Coder commented 2026-10-01 10:11:50 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by SamG-Coder on 2026-10-01T10:11:50Z.


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.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5929282623 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/147#issuecomment-5929282623). Originally posted by [SamG-Coder](https://github.com/SamG-Coder) on 2026-10-01T10:11:50Z. --- 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.

Pull request closed

Sign in to join this conversation.
No reviewers
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!147
No description provided.