Translate voxelization geometry shaders and recover Wave32 masks #3852

Closed
Maddoux wants to merge 12 commits from upstream-pr/3852 into main
Maddoux commented 2026-11-30 09:22:03 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Maddoux on 2026-11-30T09:22:03Z.


Summary

  • Translate the single-stream triangle voxelization geometry profile. Check that the embedded copy stage exports each live channel from the expected LDS slot before lowering the geometry shader's input loads, output writes, emits and cuts to DXIL.
  • Bind translated geometry shaders in the host graphics pipeline with geometry-stage root visibility and a cache key that includes the GS bytecode.
  • Retry a Wave32 compute shader when it needs the numeric bits of a saved lane mask. Take the necessary branches wave-wide so the ballot can see lanes outside the guest EXEC mask.

This overlaps #2801 and #2220. The geometry path here requires an identity copy-stage layout, and the compute retry preserves the whole wave at the mask definition. This draft is an independently tested alternative for comparison.

Verification

  • The RTX 5080 release preloader reported 25,985 shaders in the cache, 0 do not translate. The previous build reported 25,789 cached and 196 failures.
  • Offline DXIL validation passed for all 195 previously rejected geometry shaders and the adaptive shadow-ray compute shader. The emitted VS, GS and PS signatures matched for both geometry layouts.
  • The focused geometry and Wave32 regression tests and the staged asset-policy check passed.
  • In-game rendering and geometry PSO creation remain unverified. The available WARP adapter supported Shader Model 6.2 and the translated DXIL targets 6.6.
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5562460883 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3852). Originally posted by [Maddoux](https://github.com/Maddoux) on 2026-11-30T09:22:03Z. --- ## Summary - Translate the single-stream triangle voxelization geometry profile. Check that the embedded copy stage exports each live channel from the expected LDS slot before lowering the geometry shader's input loads, output writes, emits and cuts to DXIL. - Bind translated geometry shaders in the host graphics pipeline with geometry-stage root visibility and a cache key that includes the GS bytecode. - Retry a Wave32 compute shader when it needs the numeric bits of a saved lane mask. Take the necessary branches wave-wide so the ballot can see lanes outside the guest EXEC mask. This overlaps #2801 and #2220. The geometry path here requires an identity copy-stage layout, and the compute retry preserves the whole wave at the mask definition. This draft is an independently tested alternative for comparison. ## Verification - The RTX 5080 release preloader reported **25,985 shaders in the cache, 0 do not translate**. The previous build reported 25,789 cached and 196 failures. - Offline DXIL validation passed for all 195 previously rejected geometry shaders and the adaptive shadow-ray compute shader. The emitted VS, GS and PS signatures matched for both geometry layouts. - The focused geometry and Wave32 regression tests and the staged asset-policy check passed. - In-game rendering and geometry PSO creation remain unverified. The available WARP adapter supported Shader Model 6.2 and the translated DXIL targets 6.6.
trustno1-coder commented 2026-12-01 18:48:11 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-12-01T18:48:11Z.


Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7321572726 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3852#issuecomment-7321572726). Originally posted by [trustno1-coder](https://github.com/trustno1-coder) on 2026-12-01T18:48:11Z. --- Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

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
trustno1-coder/VIctory-NVIDIA!3852
No description provided.