Skip to content

GPU: defer host replacements for private translator lists - #1503

Draft
Swagi-REDACTED wants to merge 1 commit into
fxceless:mainfrom
Swagi-REDACTED:contrib/defer-thin-replacements
Draft

Swagi-REDACTED wants to merge 1 commit into
fxceless:mainfrom
Swagi-REDACTED:contrib/defer-thin-replacements

Conversation

@Swagi-REDACTED

Copy link
Copy Markdown

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 2eade68: 423 passed, 2 failed, 35 ignored.
  • PR head 0d7a2ba: 425 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.

A detached private translator back immediately acquired an empty native
command allocator and list, even while idle. Take a reusable host list at
the next recording's reset instead. The detached submission keeps its
recorded host side, uploads and state; ordinary title lists keep their
existing empty replacement and resubmission behavior.

Regression tests cover both detach paths, duplicate names, ordinary title
resubmission, and upload ownership across backing reset and destruction.
All 10 list tests pass on RTX 3060. Full GPU tests: 427 passed, 2 failed,
35 ignored; baseline b0f4db6 has 425 passed and the same 2 failures, 35
ignored. Loading remains unsuccessful; this is not a progression fix.

Assisted-by: Codex (GPT-6; exact serving variant not provided)
Co-authored-by: Codex <codex@openai.com>

Copy link
Copy Markdown

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants