GPU: defer host replacements for private translator lists #1503

Open
Swagi-REDACTED wants to merge 2 commits from upstream-pr/1503 into main
Swagi-REDACTED commented 2026-11-28 01:05:46 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by Swagi-REDACTED on 2026-11-28T01:05:46Z.


Private translator backing lists currently acquire an empty native command allocator/list immediately after their recorded host side is detached for submission. The next recording is required to reset the back before using it, so acquire its replacement from the existing reuse pool at reset instead.

What is in it

  • Defer replacements only for private translator backs. Ordinary title-list replacement/resubmission and detached-work retirement retain their existing behavior.
  • Regression tests exercise both detach paths, duplicate list names, ordinary resubmission, and upload ownership across backing reset/destruction. The private-back regression failed before the change.

Tested
Windows 11, Ryzen 7 9800X3D, 16 GiB RAM, RTX 3060 12 GiB, NVIDIA 621.14; Rust 1.98.1.

cargo +1.98.1 test --release --locked --offline -p victory-gpu --lib -- --test-threads=1 --nocapture (private --target-dir omitted):

  • Upstream base 368967f: 414 passed, 2 failed, 35 ignored.
  • PR head e0a774b: 416 passed, 2 failed, 35 ignored.
  • The same two failures reproduce on both: indirect::tests::host_list_budget_starts_empty_at_each_submission and indirect::tests::warp_batch_charges_every_execution.
  • Focused list suite on the integration copy: 10 passed, 0 failed, 0 ignored. Asset policy passed for the three changed files.

Local runs of A newer retail game used a separate integration branch (8b5f992, also carrying #1210, #1495 and #1442). Loading still fails. These runs do not establish a frame-rate or progression improvement; no such claim is made here. The original commit message records that integration branch's test counts, which include two additional library tests.

Not tested
Full workspace suite, a successful gameplay/prologue run, a controlled memory/performance benchmark, or an actual GPU execution of the cut-list regression case. The 35 ignored GPU tests were not coverage.

AI use
Codex, GPT-6 (exact serving variant not provided): implemented the change and regression tests, ran local validation, and performed a read-only code review. Committed under the contributor's identity with Codex as coauthor.

<!-- greyfinch-sync:fxceless/victory-fork:issue:5535207012 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1503). Originally posted by [Swagi-REDACTED](https://github.com/Swagi-REDACTED) on 2026-11-28T01:05:46Z. --- Private translator backing lists currently acquire an empty native command allocator/list immediately after their recorded host side is detached for submission. The next recording is required to reset the back before using it, so acquire its replacement from the existing reuse pool at reset instead. **What is in it** - Defer replacements only for private translator backs. Ordinary title-list replacement/resubmission and detached-work retirement retain their existing behavior. - Regression tests exercise both detach paths, duplicate list names, ordinary resubmission, and upload ownership across backing reset/destruction. The private-back regression failed before the change. **Tested** Windows 11, Ryzen 7 9800X3D, 16 GiB RAM, RTX 3060 12 GiB, NVIDIA 621.14; Rust 1.98.1. `cargo +1.98.1 test --release --locked --offline -p victory-gpu --lib -- --test-threads=1 --nocapture` (private `--target-dir` omitted): - Upstream base `368967f`: 414 passed, 2 failed, 35 ignored. - PR head `e0a774b`: 416 passed, 2 failed, 35 ignored. - The same two failures reproduce on both: `indirect::tests::host_list_budget_starts_empty_at_each_submission` and `indirect::tests::warp_batch_charges_every_execution`. - Focused list suite on the integration copy: 10 passed, 0 failed, 0 ignored. Asset policy passed for the three changed files. Local runs of **A newer retail game** used a separate integration branch (`8b5f992`, also carrying #1210, #1495 and #1442). Loading still fails. These runs do not establish a frame-rate or progression improvement; no such claim is made here. The original commit message records that integration branch's test counts, which include two additional library tests. **Not tested** Full workspace suite, a successful gameplay/prologue run, a controlled memory/performance benchmark, or an actual GPU execution of the cut-list regression case. The 35 ignored GPU tests were not coverage. **AI use** Codex, GPT-6 (exact serving variant not provided): implemented the change and regression tests, ran local validation, and performed a read-only code review. Committed under the contributor's identity with Codex as coauthor.
akimfomin commented 2026-11-28 01:22:40 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by akimfomin on 2026-11-28T01:22:40Z.


The useful cross-project control here is XCL #2333, where an untracked command list must keep the caller's allocator. Your 0d7a2baf changes the opposite ownership case, a translator-owned private list. A focused A/B can pin both behaviors in one test: keep a private list alive through a host replacement request, then issue the same request with an ordinary tracked list and ensure its replacement still runs. Compare whether replacement is queued or executed in each case. This is a source comparison, with no hardware claim.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7231622488 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1503#issuecomment-7231622488). Originally posted by [akimfomin](https://github.com/akimfomin) on 2026-11-28T01:22:40Z. --- The useful cross-project control here is [XCL #2333](https://github.com/xcl-dev/xcl/pull/2333), where an untracked command list must keep the caller's allocator. Your `0d7a2baf` changes the opposite ownership case, a translator-owned private list. A focused A/B can pin both behaviors in one test: keep a private list alive through a host replacement request, then issue the same request with an ordinary tracked list and ensure its replacement still runs. Compare whether replacement is queued or executed in each case. This is a source comparison, with no hardware claim.
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/1503:upstream-pr/1503'
git switch 'upstream-pr/1503'

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/1503'
git switch 'upstream-pr/1503'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1503'
git switch 'upstream-pr/1503'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1503'
git switch 'main'
git merge --squash 'upstream-pr/1503'
git switch 'main'
git merge --ff-only 'upstream-pr/1503'
git switch 'main'
git merge 'upstream-pr/1503'
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!1503
No description provided.