Skip to content

Honor DispatchX thread dimensions and validate partial workgroups - #9

Draft
FermentoCode wants to merge 1 commit into
nvidia-wave-compatfrom
fix/dispatchx-thread-dimensions
Draft

FermentoCode wants to merge 1 commit into
nvidia-wave-compatfrom
fix/dispatchx-thread-dimensions

Conversation

@FermentoCode

Copy link
Copy Markdown
Owner

Backport the thread-count dispatch and shader masks from mynzjerko’s upstream PR #646, commit 170c2426952c. This fork also checks the converted group dimensions and each partial axis before binding. It skips a marked dispatch whose group size is unknown, whose group count exceeds the host limit, or whose shader lacks a required axis mask. This can drop work for an unsupported shader. Ordinary group-count dispatches keep their previous behavior.

The CPU planner tests cover the 65,535-group limit on all three axes. On an RTX 3090 Ti and WARP, all 24 bounded wave32 cases passed, including requests for 1 and 872 threads, with and without a barrier. The shader suite passed 212 tests. The GPU crate passed 115 tests in its default configuration and 122 with diagnostics. The hardware run covered wave64 emulated over wave32. Native wave64 hardware was unavailable.

This change preserves the existing builder guards. It does not establish the validity of any title-provided acceleration structure or a change in scene lighting.

Backport the group conversion, shader masks and Wave64 regression authored by mynzjerko in fxceless#646, commit 170c242.

On this fork, reject marked dispatches before binding when a group dimension is unknown, a rounded group count exceeds the D3D12 per-axis limit, or any partial axis lacks its own shader mask. Preserve existing builder quarantine and add CPU planner and bounded Wave32 regressor coverage.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant