fix(shader): preserve NGG passthrough and wave32 launch inputs #143

Merged
SamG-Coder merged 5 commits from upstream-pr/143 into main 2026-10-01 18:17:52 +00:00
SamG-Coder commented 2026-09-29 03:12:39 +00:00 (Migrated from github.com)

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


Route supported NGG passthrough triangle draws through the mesh translation path, preserving launch registers, packed primitive inputs, wave32/wave64 behavior, and the hidden-word prefix used by vertex-table metadata.

Rebased onto upstream c088b873. The #113 and #133 foundations are now upstream and are no longer included as dependency commits. Request serialization uses version 6 for the passthrough field, preserving upstream's version-5 pixel-input layout. Point/line passthrough remains unsupported.

Current validation

Windows / RTX 5080:

  • Final full build passed; 88/88 CTest tests passed at 5bcb6eae.
  • Fresh converted PS5-targeted demos passed wave32/wave64 passthrough, mesh launch, cross-wave shared-memory, and raw vertex-table position fetching: eight positive cases.
  • The deliberately corrupted shared-memory case produced the expected failure colour and was rejected by the positive image expectation.
  • Independent full triangle/background pixel checks passed for the launch/shared-memory cases and both vertex-table cases.
  • All eight positive demos, the negative control, and both independent pixel oracles were rerun on final commit 5bcb6eae after adapting to the upstream driver-module refactor.

The older strip, FP16 and full-program compilation results are historical coverage and were not rerun for this update. No physical-console, complete-application, performance or clean-exit claim is made. Captures stop after readback. Demos and reports remain outside Git; no application shader assets are included.

#147 is superseded: its optional-pointer fix is now upstream, and its remaining geometry changes are consolidated here. No unmerged dependencies. AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4672026252 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/143). Originally posted by [SamG-Coder](https://github.com/SamG-Coder) on 2026-09-29T03:12:39Z. --- Route supported NGG passthrough triangle draws through the mesh translation path, preserving launch registers, packed primitive inputs, wave32/wave64 behavior, and the hidden-word prefix used by vertex-table metadata. Rebased onto upstream c088b873. The #113 and #133 foundations are now upstream and are no longer included as dependency commits. Request serialization uses version 6 for the passthrough field, preserving upstream's version-5 pixel-input layout. Point/line passthrough remains unsupported. ### Current validation Windows / RTX 5080: - Final full build passed; 88/88 CTest tests passed at 5bcb6eae. - Fresh converted PS5-targeted demos passed wave32/wave64 passthrough, mesh launch, cross-wave shared-memory, and raw vertex-table position fetching: eight positive cases. - The deliberately corrupted shared-memory case produced the expected failure colour and was rejected by the positive image expectation. - Independent full triangle/background pixel checks passed for the launch/shared-memory cases and both vertex-table cases. - All eight positive demos, the negative control, and both independent pixel oracles were rerun on final commit 5bcb6eae after adapting to the upstream driver-module refactor. The older strip, FP16 and full-program compilation results are historical coverage and were not rerun for this update. No physical-console, complete-application, performance or clean-exit claim is made. Captures stop after readback. Demos and reports remain outside Git; no application shader assets are included. #147 is superseded: its optional-pointer fix is now upstream, and its remaining geometry changes are consolidated here. No unmerged dependencies. AI-assisted: yes.
boykopovar commented 2026-10-01 20:52:22 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by boykopovar on 2026-10-01T20:52:22Z.


#258

Revert "fix(shader): preserve NGG passthrough and wave32 launch inputs"
due to a regression detected on Dreaming Sarah.

The image wasn't displayed (black screen). Related logs:

[gpu] skipped draw: AGC graphics: VGT_SHADER_STAGES_EN=0x2002000: unsupported geometry input or output assembly [DRAW_IN
DEX_AUTO, color target 0x120c560000]
[gpu] skipped draw: AGC graphics: subgroup capability 61 is unsupported for shader stage 128 [DRAW_INDEX_OFFSET_2, color
 target 0x120cce0000]
[gpu] skipped draw: AGC graphics: subgroup capability 61 is unsupported for shader stage 128 [DRAW_INDEX_OFFSET_2, color
 target 0x120c560000]
[gpu] skipped draw: AGC graphics: subgroup capability 61 is unsupported for shader stage 128 [DRAW_INDEX_OFFSET_2, color
 target 0x120b7c0000]

The problem is also described in #256

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5940313584 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/143#issuecomment-5940313584). Originally posted by [boykopovar](https://github.com/boykopovar) on 2026-10-01T20:52:22Z. --- #258 Revert "fix(shader): preserve NGG passthrough and wave32 launch inputs" due to a regression detected on Dreaming Sarah. The image wasn't displayed (black screen). Related logs: ``` [gpu] skipped draw: AGC graphics: VGT_SHADER_STAGES_EN=0x2002000: unsupported geometry input or output assembly [DRAW_IN DEX_AUTO, color target 0x120c560000] [gpu] skipped draw: AGC graphics: subgroup capability 61 is unsupported for shader stage 128 [DRAW_INDEX_OFFSET_2, color target 0x120cce0000] [gpu] skipped draw: AGC graphics: subgroup capability 61 is unsupported for shader stage 128 [DRAW_INDEX_OFFSET_2, color target 0x120c560000] [gpu] skipped draw: AGC graphics: subgroup capability 61 is unsupported for shader stage 128 [DRAW_INDEX_OFFSET_2, color target 0x120b7c0000] ``` The problem is also described in #256
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!143
No description provided.