GPU: an indirect execution of at most zero records ends before its argument clamp #239
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from fxceless/victory-fork. Originally posted by fffluffy-dev on 2026-11-24T22:58:28Z.
An
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
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.