GPU: do not place untracked private memory under outstanding submissions #4647

Open
github-bot wants to merge 1 commit from github-bot/gh-4646 into main AGit
Owner

@⁠faycalbaklouti on GitHub · 2026-12-01 00:40 UTC · original
faycalbaklouti:fix/private-placement-submission-order-ci → main · +20 −8 · 1 files · 1 commits · open

What it changes

Legacy private windows and buffers do not declare their writes to the flight tracker. With outstanding asynchronous submissions, reject both private-placement levels at place_for so callers use ordinary copies. Synchronous thresholds and the tracked fallback policy are unchanged.

How it was tested

Windows MSVC target under CPU-only Wine. Head 90236bf5771f84ba6fe420e50a9fc3f4690ae494; base 7d93ee07599bff5ceffdd1b50a1ed822bb854383.

base-victory-gpu-suite.log:
head_sha=7d93ee07599bff5ceffdd1b50a1ed822bb854383
command=cargo xwin test --locked --target x86_64-pc-windows-msvc -p victory-gpu --no-fail-fast 
test result: FAILED. 1117 passed; 16 failed; 66 ignored; 0 measured; 0 filtered out; finished in 65.76s
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
exit=101

15-head-victory-gpu-suite.log:
head_sha=90236bf5771f84ba6fe420e50a9fc3f4690ae494
command=cargo xwin test --locked --target x86_64-pc-windows-msvc -p victory-gpu --no-fail-fast 
test result: FAILED. 1118 passed; 16 failed; 66 ignored; 0 measured; 0 filtered out; finished in 65.62s
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
exit=101

15-head-exact.log:
head_sha=90236bf5771f84ba6fe420e50a9fc3f4690ae494
command=cargo xwin test --locked --target x86_64-pc-windows-msvc -p victory-gpu --no-fail-fast --lib -- --exact inplace::private_flight_tests::private_windows_and_buffers_require_synchronous_submissions --nocapture --test-threads=1 
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 1199 filtered out; finished in 0.00s
exit=0

15-base-exact.log:
head_sha=7d93ee07599bff5ceffdd1b50a1ed822bb854383
command=cargo xwin test --locked --target x86_64-pc-windows-msvc -p victory-gpu --no-fail-fast --lib -- --exact inplace::private_flight_tests::private_windows_and_buffers_require_synchronous_submissions --nocapture --test-threads=1 
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 1199 filtered out; finished in 0.00s
exit=0

15-control-exact.log:
head_sha=7d93ee07599bff5ceffdd1b50a1ed822bb854383
command=cargo xwin test --locked --target x86_64-pc-windows-msvc -p victory-gpu --no-fail-fast --lib -- --exact inplace::private_flight_tests::private_windows_and_buffers_require_synchronous_submissions --nocapture --test-threads=1 
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 1199 filtered out; finished in 0.00s
exit=101
assertion failed: !base_allows_private(level, window, true)
  • victory-gpu: 16 identical named failures; none head-only.
  • Exact head/base/test-only-control outcomes matched expectations.
  • GPU and profile: no game or physical GPU run.
  • Before/after: package comparison above; no game or performance claim.
  • Shader wave sizes on hardware: not tested.
  • Touched package suites did not establish native Windows CI success.

The control uses the old private-placement predicate in a test-only adapter.

Earlier workspace tests under Winefailed the same four CLI tests on head and base: the explicit !on_wine() assertion in tests::windows_is_not_wine, the system Direct3D version assertion, and two late-DLL visibility tests. This is baseline-identical on Wine, not a native Windows result. The target’s CI workflow has not run on our fork PRs yet; it may require maintainer approval. Those workspace results are historical; this is not a fresh workspace or CI result.

Checked for overlap

  • I searched open PRs for the same issue and touched files. Related: #1363 addresses level 2 with late wait by downgrading it to 1; it still allows the level-1 private-window call. This patch covers both legacy windows and buffers at place_for without changing global level or tracked fallback. #4211 is an in-place test probe.

Radicle project hub (open-source porting and preservation history): https://radicle.network/nodes/rosa.radicle.network/rad:z3rqQw7796wMbgj8RszExtWR4wMSE
Live development stream: https://vdo.ninja/?view=gta6rtx4090live1080p60

**@⁠faycalbaklouti** on GitHub · 2026-12-01 00:40 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4646) `faycalbaklouti:fix/private-placement-submission-order-ci` → `main` · +20 −8 · 1 files · 1 commits · open ## What it changes Legacy private windows and buffers do not declare their writes to the flight tracker. With outstanding asynchronous submissions, reject both private-placement levels at `place_for` so callers use ordinary copies. Synchronous thresholds and the tracked fallback policy are unchanged. ## How it was tested Windows MSVC target under CPU-only Wine. Head `90236bf5771f84ba6fe420e50a9fc3f4690ae494`; base `7d93ee07599bff5ceffdd1b50a1ed822bb854383`. ```text base-victory-gpu-suite.log: head_sha=7d93ee07599bff5ceffdd1b50a1ed822bb854383 command=cargo xwin test --locked --target x86_64-pc-windows-msvc -p victory-gpu --no-fail-fast test result: FAILED. 1117 passed; 16 failed; 66 ignored; 0 measured; 0 filtered out; finished in 65.76s test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s exit=101 15-head-victory-gpu-suite.log: head_sha=90236bf5771f84ba6fe420e50a9fc3f4690ae494 command=cargo xwin test --locked --target x86_64-pc-windows-msvc -p victory-gpu --no-fail-fast test result: FAILED. 1118 passed; 16 failed; 66 ignored; 0 measured; 0 filtered out; finished in 65.62s test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s exit=101 15-head-exact.log: head_sha=90236bf5771f84ba6fe420e50a9fc3f4690ae494 command=cargo xwin test --locked --target x86_64-pc-windows-msvc -p victory-gpu --no-fail-fast --lib -- --exact inplace::private_flight_tests::private_windows_and_buffers_require_synchronous_submissions --nocapture --test-threads=1 test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 1199 filtered out; finished in 0.00s exit=0 15-base-exact.log: head_sha=7d93ee07599bff5ceffdd1b50a1ed822bb854383 command=cargo xwin test --locked --target x86_64-pc-windows-msvc -p victory-gpu --no-fail-fast --lib -- --exact inplace::private_flight_tests::private_windows_and_buffers_require_synchronous_submissions --nocapture --test-threads=1 test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 1199 filtered out; finished in 0.00s exit=0 15-control-exact.log: head_sha=7d93ee07599bff5ceffdd1b50a1ed822bb854383 command=cargo xwin test --locked --target x86_64-pc-windows-msvc -p victory-gpu --no-fail-fast --lib -- --exact inplace::private_flight_tests::private_windows_and_buffers_require_synchronous_submissions --nocapture --test-threads=1 test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 1199 filtered out; finished in 0.00s exit=101 assertion failed: !base_allows_private(level, window, true) ``` - `victory-gpu`: 16 identical named failures; none head-only. - Exact head/base/test-only-control outcomes matched expectations. - GPU and profile: no game or physical GPU run. - Before/after: package comparison above; no game or performance claim. - Shader wave sizes on hardware: not tested. - Touched package suites did not establish native Windows CI success. The control uses the old private-placement predicate in a test-only adapter. Earlier workspace tests under Winefailed the same four CLI tests on head and base: the explicit `!on_wine()` assertion in `tests::windows_is_not_wine`, the system Direct3D version assertion, and two late-DLL visibility tests. This is baseline-identical on Wine, not a native Windows result. The target’s CI workflow has not run on our fork PRs yet; it may require maintainer approval. Those workspace results are historical; this is not a fresh workspace or CI result. ## Checked for overlap - [x] I searched open PRs for the same issue and touched files. Related: #1363 addresses level 2 with late wait by downgrading it to 1; it still allows the level-1 private-window call. This patch covers both legacy windows and buffers at `place_for` without changing global level or tracked fallback. #4211 is an in-place test probe. --- **Radicle project hub (open-source porting and preservation history):** https://radicle.network/nodes/rosa.radicle.network/rad:z3rqQw7796wMbgj8RszExtWR4wMSE **Live development stream:** https://vdo.ninja/?view=gta6rtx4090live1080p60
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 00:46:32 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/4647/head:github-bot/gh-4646'
git switch 'github-bot/gh-4646'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-4646'
git switch 'github-bot/gh-4646'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-4646'
git switch 'github-bot/gh-4646'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-4646'
git switch 'main'
git merge --squash 'github-bot/gh-4646'
git switch 'main'
git merge --ff-only 'github-bot/gh-4646'
git switch 'main'
git merge 'github-bot/gh-4646'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!4647
No description provided.