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

Open
faycalbaklouti wants to merge 1 commit from upstream-pr/1544 into main
faycalbaklouti commented 2026-11-30 21:57:28 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by faycalbaklouti on 2026-11-30T21:57:28Z.


What it changes

A private window or buffer placed over title memory does not record accesses in the flight tracker. Under late submission the GPU can still use those bytes after the CPU has moved on. Decline the legacy private placement at admission whenever submissions are asynchronous. Preserve the existing synchronous level threshold and leave the separate section-view path alone. A policy test covers disabled, window-only and buffer-enabled levels in synchronous and late modes.

Base: 368967f8, crates/victory-gpu/src/inplace.rs:136.

How it was tested

Windows-target workspace comparison against 368967f8fe at head 25cf022b34. BASELINE-IDENTICAL. Both Clippy variants fail on the base precedence lint. Workspace tests execute and stop in the GPU unit suite with the same five failing assertions on both SHAs. This is baseline-identical on the Windows target under Wine, not a green native Windows run. The separate touched-package suite and each named head witness satisfy the package gate; clean-base zero matches are not passes.

head clippy: exit 101
error: operator precedence might not be obvious
error: could not compile `victory-formats` (lib test) due to 1 previous error
head all-features: exit 101
error: operator precedence might not be obvious
error: could not compile `victory-formats` (lib test) due to 1 previous error
head test: exit 101
    Finished `test` profile [unoptimized] target(s) in 35.65s
test result: ok. 18 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.06s
test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.37s
test result: ok. 13 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
test result: ok. 42 passed; 0 failed; 5 ignored; 0 measured; 0 filtered out; finished in 6.39s
test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: FAILED. 412 passed; 5 failed; 35 ignored; 0 measured; 0 filtered out; finished in 12.30s
error: test failed, to rerun pass `-p victory-gpu --lib`
base clippy: exit 101
error: operator precedence might not be obvious
error: could not compile `victory-formats` (lib test) due to 1 previous error
base all-features: exit 101
error: operator precedence might not be obvious
error: could not compile `victory-formats` (lib test) due to 1 previous error
base test: exit 101
    Finished `test` profile [unoptimized] target(s) in 35.69s
test result: ok. 18 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.06s
test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.36s
test result: ok. 13 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
test result: ok. 42 passed; 0 failed; 5 ignored; 0 measured; 0 filtered out; finished in 6.40s
test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: FAILED. 411 passed; 5 failed; 35 ignored; 0 measured; 0 filtered out; finished in 12.22s
error: test failed, to rerun pass `-p victory-gpu --lib`
Clippy: crates/victory-formats/src/texture.rs:1346:55 (`operator precedence might not be obvious`). Tests: cores.rs:171 (`cpu_sets` empty); watch.rs:5075 (two placeholder checks), 5204 (no mapping), 3494 (known holes). The Wine child and display wrapper return 101 from the failing test binary. See both raw test logs for exact names and summaries. Per-package commands and exact-name comparisons: PACKAGE-TESTS.json, order 13.
Touched-package validation, Windows target under Wine:
head 25cf022b34: cargo xwin test --locked --target x86_64-pc-windows-msvc -p victory-gpu --lib — exit 101
test result: FAILED. 412 passed; 5 failed; 35 ignored; 0 measured; 0 filtered out; finished in 12.02s
head 25cf022b34: cargo xwin test --locked --target x86_64-pc-windows-msvc -p victory-gpu --lib -- --exact inplace::private_flight_tests::private_windows_and_buffers_require_synchronous_submissions --nocapture --test-threads=1 — exit 0
test inplace::private_flight_tests::private_windows_and_buffers_require_synchronous_submissions ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 451 filtered out; finished in 0.00s
base 368967f8fe: cargo xwin test --locked --target x86_64-pc-windows-msvc -p victory-gpu --lib — exit 101
test result: FAILED. 411 passed; 5 failed; 35 ignored; 0 measured; 0 filtered out; finished in 12.11s
base 368967f8fe: cargo xwin test --locked --target x86_64-pc-windows-msvc -p victory-gpu --lib -- --exact inplace::private_flight_tests::private_windows_and_buffers_require_synchronous_submissions --nocapture --test-threads=1 — exit 0
Absent from clean base source; zero selected, not a passing witness.
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 451 filtered out; finished in 0.00s
watch::many_askers_tests::no_mapping_is_lost_between_askers: same failed test, different assertions in unchanged crates/victory-gpu/src/watch.rs (head :5207, base :5204); not an assertion-identical result.
Matched package failures: cores::tests::the_fast_cores_are_those_of_the_best_class_if_there_is_a_worse_one, watch::many_askers_tests::bits_and_holes_with_faults_that_take_no_lock, watch::many_askers_tests::holes_are_known_until_the_runtime_tells, watch::many_askers_tests::no_mapping_is_lost_between_askers, watch::tests::what_is_left_alone_is_no_known_hole

No native Windows Actions, live title, or GPU validation is claimed.


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

<!-- greyfinch-sync:fxceless/victory-fork:issue:5574495210 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1544). Originally posted by [faycalbaklouti](https://github.com/faycalbaklouti) on 2026-11-30T21:57:28Z. --- ## What it changes A private window or buffer placed over title memory does not record accesses in the flight tracker. Under late submission the GPU can still use those bytes after the CPU has moved on. Decline the legacy private placement at admission whenever submissions are asynchronous. Preserve the existing synchronous level threshold and leave the separate section-view path alone. A policy test covers disabled, window-only and buffer-enabled levels in synchronous and late modes. Base: `368967f8`, `crates/victory-gpu/src/inplace.rs:136`. ## How it was tested Windows-target workspace comparison against `368967f8fe` at head `25cf022b34`. BASELINE-IDENTICAL. Both Clippy variants fail on the base precedence lint. Workspace tests execute and stop in the GPU unit suite with the same five failing assertions on both SHAs. This is baseline-identical on the Windows target under Wine, not a green native Windows run. The separate touched-package suite and each named head witness satisfy the package gate; clean-base zero matches are not passes. ```text head clippy: exit 101 error: operator precedence might not be obvious error: could not compile `victory-formats` (lib test) due to 1 previous error head all-features: exit 101 error: operator precedence might not be obvious error: could not compile `victory-formats` (lib test) due to 1 previous error head test: exit 101 Finished `test` profile [unoptimized] target(s) in 35.65s test result: ok. 18 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.06s test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.37s test result: ok. 13 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s test result: ok. 42 passed; 0 failed; 5 ignored; 0 measured; 0 filtered out; finished in 6.39s test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: FAILED. 412 passed; 5 failed; 35 ignored; 0 measured; 0 filtered out; finished in 12.30s error: test failed, to rerun pass `-p victory-gpu --lib` base clippy: exit 101 error: operator precedence might not be obvious error: could not compile `victory-formats` (lib test) due to 1 previous error base all-features: exit 101 error: operator precedence might not be obvious error: could not compile `victory-formats` (lib test) due to 1 previous error base test: exit 101 Finished `test` profile [unoptimized] target(s) in 35.69s test result: ok. 18 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.06s test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.36s test result: ok. 13 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s test result: ok. 42 passed; 0 failed; 5 ignored; 0 measured; 0 filtered out; finished in 6.40s test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: FAILED. 411 passed; 5 failed; 35 ignored; 0 measured; 0 filtered out; finished in 12.22s error: test failed, to rerun pass `-p victory-gpu --lib` Clippy: crates/victory-formats/src/texture.rs:1346:55 (`operator precedence might not be obvious`). Tests: cores.rs:171 (`cpu_sets` empty); watch.rs:5075 (two placeholder checks), 5204 (no mapping), 3494 (known holes). The Wine child and display wrapper return 101 from the failing test binary. See both raw test logs for exact names and summaries. Per-package commands and exact-name comparisons: PACKAGE-TESTS.json, order 13. Touched-package validation, Windows target under Wine: head 25cf022b34: cargo xwin test --locked --target x86_64-pc-windows-msvc -p victory-gpu --lib — exit 101 test result: FAILED. 412 passed; 5 failed; 35 ignored; 0 measured; 0 filtered out; finished in 12.02s head 25cf022b34: cargo xwin test --locked --target x86_64-pc-windows-msvc -p victory-gpu --lib -- --exact inplace::private_flight_tests::private_windows_and_buffers_require_synchronous_submissions --nocapture --test-threads=1 — exit 0 test inplace::private_flight_tests::private_windows_and_buffers_require_synchronous_submissions ... ok test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 451 filtered out; finished in 0.00s base 368967f8fe: cargo xwin test --locked --target x86_64-pc-windows-msvc -p victory-gpu --lib — exit 101 test result: FAILED. 411 passed; 5 failed; 35 ignored; 0 measured; 0 filtered out; finished in 12.11s base 368967f8fe: cargo xwin test --locked --target x86_64-pc-windows-msvc -p victory-gpu --lib -- --exact inplace::private_flight_tests::private_windows_and_buffers_require_synchronous_submissions --nocapture --test-threads=1 — exit 0 Absent from clean base source; zero selected, not a passing witness. test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 451 filtered out; finished in 0.00s watch::many_askers_tests::no_mapping_is_lost_between_askers: same failed test, different assertions in unchanged crates/victory-gpu/src/watch.rs (head :5207, base :5204); not an assertion-identical result. Matched package failures: cores::tests::the_fast_cores_are_those_of_the_best_class_if_there_is_a_worse_one, watch::many_askers_tests::bits_and_holes_with_faults_that_take_no_lock, watch::many_askers_tests::holes_are_known_until_the_runtime_tells, watch::many_askers_tests::no_mapping_is_lost_between_askers, watch::tests::what_is_left_alone_is_no_known_hole ``` No native Windows Actions, live title, or GPU validation is claimed. --- **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
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/1544:upstream-pr/1544'
git switch 'upstream-pr/1544'

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.

git switch 'main'
git merge --no-ff 'upstream-pr/1544'
git switch 'upstream-pr/1544'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1544'
git switch 'upstream-pr/1544'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1544'
git switch 'main'
git merge --squash 'upstream-pr/1544'
git switch 'main'
git merge --ff-only 'upstream-pr/1544'
git switch 'main'
git merge 'upstream-pr/1544'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
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.

Reference
fxceless/victory-fork!1544
No description provided.