Repository navigation
Honor DispatchX thread dimensions and validate partial workgroups - #9
Draft
FermentoCode wants to merge 1 commit into
Draft
FermentoCode wants to merge 1 commit into
FermentoCode wants to merge 1 commit into
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.