GPU: an indirect execution of at most zero records ends before its argument clamp #239
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!239
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-239"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@fffluffy-dev on GitHub · 2026-11-24 22:58 UTC · original
fffluffy-dev:gpu/indirect-max-zero→main· +22 −0 · 2 files · 1 commits · openAn
ExecuteIndirectwithMaxCommandCount0 runs nothing, butState::execute_indirectstill refreshed the arguments, went throughindirect::bound(a UAV barrier and two state changes on the scratch buffer, even with no clamp dispatch),prepareand an empty host execution. It now returns at once, counted as run, not dropped.A count of 0 in a count buffer is left alone: that buffer is mostly written by the title's passes on the card after the list is recorded, so the CPU cannot know it (that needs GPU-side work, e.g. upstream #242/#740).
Validation (cargo-xwin, tests under Wine):
cargo test -p victory-gpu111 passed, 1 ignored, new testonly_an_execution_of_no_records_ends_early; clippy clean both ways; policy ok. How oftenmax == 0happens in the title's frames is not measured; if it never does, this saves nothing.AI use: written with Claude Code (Claude Opus 5.5); reviewed and posted with my approval. No game files were used.
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.