Repository navigation
Conversation
|
Verified on Windows 11 10.0.26300, NVIDIA GeForce RTX 5090 (driver 621.24), Rust 1.100.0 MSVC 14.44.35207, debug build, on One more than the baseline; keeping in-flight texture upload objects alive is covered and green. Tree restored afterwards (full diff against a clean checkout), hardware adapter, no Wine, no game data. AI-assisted (opencode): applied the patch to a built tree, ran the suite, reverted it. |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
Empirical test report (8151725)PR #1486 at Hardware / environment
Commands and results
Observed behavior
Not tested The full GPU workspace suite and game smoke runs were omitted. The focused run did not inject a real D3D12 AI use Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against |
…ailure In gpu/texture.rs: - In upload_batch(), `queue.Signal(&up.fence, up.value)?` returned early after ExecuteCommandLists had already submitted `up.list`, dropping `up` (releasing its staging buffer, command list, allocator, and fence) while the GPU could still execute the list. - In upload(), a failure from `wait(dev, queue)` dropped `staging`, `list`, and `alloc` while the GPU could still execute `list`. - UPLOADERS was keyed solely by raw `queue` pointer; keying by `(dev, queue)` avoids cross-device reuse if a new device allocates a queue at a freed queue address. Route post-submit waits in both upload() and upload_batch() through finish_gpu_wait(), which leaks the in-flight objects via mem::forget on any Signal or wait error, and key UPLOADERS by `(dev, queue)`. Assisted-by: OpenCode (Gemini 4 Neon)
8151725 to
bd33797
Compare
|
Rebased onto AI use: OpenCode, Claude Fable 5.2 rebased it, adapted the test, ran the suite and the smoke pair and wrote this. |
|
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
Thanks! — Devin |
|
Independent desktop NVIDIA verification of PR #1486 at head Environment
Targeted tests & build (
|
| Command | Result |
|---|---|
cargo test --release -p xcl --lib -- --nocapture finish_gpu_wait_keeps_inflight_alive_on_error_and_returns_on_ok (3 consecutive runs) |
1 passed; 0 failed; 0 ignored; 1222 filtered out × 3 (0.00s, 0.00s, 0.00s, 0 skipped) |
cargo test --release -p xcl --lib -- --nocapture gpu::texture:: (3 consecutive runs) |
15 passed; 0 failed; 0 ignored; 1208 filtered out × 3 (0.65s, 0.57s, 0.58s; 14 executed incl. 3 live RTX 4060 GPU upload tests with byte_exact=true + 1 self-skipped retail_ttpf_textures_detile_with_their_mip_chains because XCL_SAMPLE_TTPF is unset) |
cargo build --release -p xcl |
Clean build (1m 29s, exit 0, 0 new warnings in gpu/texture.rs) |
Paired quiet 60 s retail smoke (title: 29640639)
Exact parent & merge-base (06c9f5505f63f10c5ec49ef932d75b2c28177324, cached baseline on the same machine):
xcl-smoke v1
commit: 06c9f5505f63f10c5ec49ef932d75b2c28177324
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1588 (PresentX 1589)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14452 MB
PR #1486 (bd33797d4255854b290515dd0c93757ccbf26c96):
xcl-smoke v1
commit: bd33797d4255854b290515dd0c93757ccbf26c96
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1546 (PresentX 1546)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14463 MB
Limits of coverage
finish_gpu_wait_keeps_inflight_alive_on_error_and_returns_on_okand all14executedgpu::texture::tests (including live RTX 4060gpu_upload_batches_reuse_the_queues_upload_buffer,gpu_console_textures_upload_every_mip_and_slice, andgpu_large_mixed_upload_keeps_tight_staging_and_exact_pixels) passed3/3;retail_ttpf_textures_detile_with_their_mip_chainsself-skipped becauseXCL_SAMPLE_TTPFwas unset.- The
Signal/fence-wait failure path is verified by thefinish_gpu_waitunit test rather than by injecting a live D3D12 device removal during texture upload; the 60 s retail smoke confirms normal upload reuse and runtime stability (0device removals,0crashes, steady 60 Hz), with single-run frame/commit delta vs. the cached parent reflecting normal startup variance.
AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).
|
Tested on AMD / Linux: The head as it is (not merged onto current Tests (
Not tested
AI use
|
|
merge-check claim |
|
merge-check |
|
merge-check |
|
Part of this is on main now: commit 5ee1547 ( AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
After
ExecuteCommandLists,upload_batchcalledSignalandwaitand then dropped the allocator, command list and staging buffer unconditionally. IfSignalor the wait failed, the CPU freed memory the GPU could still be reading; the same applies to the uploader kept inUPLOADERS, which was keyed only by the queue pointer and could hand a device another device's staging buffer.This keeps the in-flight objects alive when
Signalor the wait fails (finish_gpu_waitforgets them instead of dropping them) and keys the uploader map by(device, queue).What is in it
crates/xcl/src/gpu/texture.rs:finish_gpu_wait;upload_batchkeeps(allocator, command list, staging)alive on error;UPLOADERSis keyed by(device, queue); unit testfinish_gpu_wait_keeps_inflight_alive_on_error_and_returns_on_ok.(device, queue)key when rebasing.Since the last push: rebased onto
main06c9f55. The conflict was in the test module, wheremainhad addedlarge_staging_uses_sixteen_mib_growth_steps/gpu_large_mixed_upload_keeps_tight_staging_and_exact_pixelsat the same place; both sides are kept.mainalso changed the uploader key to(device, queue), so the branch's test now builds that key too.Tested
stable-x86_64-pc-windows-msvc), DXC 1.9.2609.5, debug (scripts/test.ps1) and release (scripts/smoke.ps1).\\scripts\\test.ps1(cargo build --workspace+cargo test --workspace -- --test-threads=4): 1266 passed, 0 failed, 46 ignored (SKIPPED: the wave64 / direct-DXIL per-lane tests that need 64-lane hardware or a semantics mode this adapter refuses,no heap windows, andcannot disable the driver cache (Windows Developer Mode is required))cargo test -p xcl --lib -- gpu::texture: 15 passed, 0 failedstd::mem::forget(in_flight)put back tostd::mem::drop(in_flight): 0 passed, 1 failed —assertion left == right failed: in-flight objects must stay alive on error(left: 1, right: 0)Regression run
main (
426a5a7, clean tree, no local changes):PR (
bd33797, clean tree, no local changes):(The main block is
426a5a7, an ancestor of the currentmain06c9f55, from the same machine and data folder.)Not tested
Signal/waitfailure while the GPU is still reading (the test drivesfinish_gpu_waitdirectly)AI use
06c9f55, kept both tests at the conflict, adapted the test tomain's(device, queue)key, confirmed the new test fails without the fix, ran the suite and thescripts/smoke.ps1pair.