Repository navigation
Conversation
DispatchMesh checked y * z != 1, which overflows in debug builds, and a dispatch with y or z = 0 still ran its x groups. mesh_groups runs none when any dimension is 0, as D3D12 does. Split from Marvisak#24. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
zhaibingye
added a commit
to zhaibingye/VIctory
that referenced
this pull request
Nov 25, 2026
A zero group dimension does not submit work. Preserve existing nonzero behavior and avoid multiplying the other dimensions for the warning. Portable helper regression and Windows MSVC test compilation passed.
|
Ran on Windows 11 with an RTX 3070 (Ampere, driver 616.56), debug build, at AI-assisted (Claude Code). |
catminou4
reviewed
Nov 25, 2026
catminou4
left a comment
Contributor
There was a problem hiding this comment.
Static review only: victory-gpu is Windows-only (D3D12/windows_sys) — nothing compiles or runs on macOS; source review of the diff.
Mesh dispatch with an empty dimension runs nothing — degenerate-dispatch guard; cheap correctness fix.
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.
Summary
Split from #24, as the triage there suggested: only the direct
DispatchMeshfix.Evidence
No game files used; untested against the game. New test
mesh_dispatches_run_x_groups_unless_empty:(5,1,1) → 5;(0,1,1),(5,0,1),(5,1,0) → none;(5,2,3) → 5;(5,MAX,MAX) → 5with no overflow.cargo test -p victory-gpu --lib: 142 passed, 2 failed (dynamic_slots_are_held_until_released,lists_share_a_table_and_copies_keep_their_views, which fail on main too). Changed lines are rustfmt-clean.Merge Danger
Door: two-way
Blast Radius: small. Only a
DispatchMeshwith a zero dimension changes (it no longer draws).🤖 Generated with Claude Code