Pr/465 integration rtx3080ti #538

Open
github-bot wants to merge 22 commits from github-bot/gh-538 into main AGit
Owner

@⁠pug205gti6 on GitHub · 2026-11-25 02:01 UTC · original
pug205gti6:pr/465-integration-rtx3080ti → main · +2288 −268 · 23 files · 22 commits · open

No description provided.

**@⁠pug205gti6** on GitHub · 2026-11-25 02:01 UTC · [original](https://github.com/fxceless/victory-fork/pull/538) `pug205gti6:pr/465-integration-rtx3080ti` → `main` · +2288 −268 · 23 files · 22 commits · open *No description provided.*
Co-Authored-By: Claude Opus 5.5 <[email protected]>
THE BUG.
Every ExecuteIndirect call (even when batched via VICTORY_INDIRECT_WINDOW=1) runs a clamp compute shader between two global UAV barriers and state transitions and invalidates cached host compute pipeline/root-signature state.

WHY NOT HYPOTHETICAL.
In gameplay, thousands of indirect mesh draws per frame pay compute/graphics mode switches, scratch-buffer copies, barrier stalls, and state rebinds even when the title argument buffers are already valid.

THE FIX.
Add VICTORY_INDIRECT_CLAMP (enabled by default; 0/false/no/off disables clamping). When disabled, draw::State::indirect validates record alignment/stride via indirect::validate_layout, refreshes the argument/count shadow ranges, emits a single UAV barrier (indirect::wait_direct), and executes ExecuteIndirect directly from the title argument buffer without running the clamp shader, scratch copy, state transitions, or pipeline invalidation.

SCOPE.
Only the indirect argument clamping path in indirect.rs and draw.rs. Default behavior (clamping enabled) is unchanged.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts:
#	crates/victory-gpu/src/resource.rs
#	crates/victory-gpu/src/shadow.rs
Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:45:45 +00:00
Author
Owner

@⁠Revens2 on GitHub · 2026-11-25 07:38 UTC · original

Duplicate of #465: @⁠LeonardoS11 opened this patch 45 minutes earlier, and gh pr diff returns the same bytes for both (+2288/-268 on 23 file(s), same title).

The original also carries the author's description, which this PR does not.

Both PRs are CONFLICTING, so this copy does not resolve the conflict it was probably made for.

Please continue in #465 so the review history and any test data stay in one place.
Thanks.

**@⁠Revens2** on GitHub · 2026-11-25 07:38 UTC · [original](https://github.com/fxceless/victory-fork/pull/538#issuecomment-7156096273) Duplicate of #465: @⁠LeonardoS11 opened this patch 45 minutes earlier, and `gh pr diff` returns the same bytes for both (+2288/-268 on 23 file(s), same title). The original also carries the author's description, which this PR does not. Both PRs are CONFLICTING, so this copy does not resolve the conflict it was probably made for. Please continue in #465 so the review history and any test data stay in one place. Thanks.
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/draw.rs
  • crates/victory-gpu/src/host.rs
  • crates/victory-gpu/src/indirect.rs
  • crates/victory-gpu/src/lib.rs
  • crates/victory-gpu/src/resource.rs
  • crates/victory-gpu/src/shadow.rs
  • crates/victory-gpu/src/watch.rs
  • crates/victory-shader/src/emit/lower.rs
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.
git fetch -u origin '+refs/pull/538/head:github-bot/gh-538'
git switch 'github-bot/gh-538'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-538'
git switch 'github-bot/gh-538'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-538'
git switch 'github-bot/gh-538'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-538'
git switch 'main'
git merge --squash 'github-bot/gh-538'
git switch 'main'
git merge --ff-only 'github-bot/gh-538'
git switch 'main'
git merge 'github-bot/gh-538'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.