Repository navigation
Conversation
High: upload buffer is refilled while an earlier submission may still read it (reviewed at 388cf3b)
Scenario: the title executes list L, updates the source CPU memory, then executes L again on the same or another queue. The first execution's copy can land the second execution's data, or a torn mix of both. Possible fixes: allocate (or pool) a fresh upload buffer per submission, or wait on or check the previous submission's fence before refilling. Related (perf): each |
|
Tested on an RTX 5080: pass, the same counts as
Not tested
AI use: Claude Code (Claude Opus 5.5, Claude Fable 5.2) |
…es zeros (on xcl-dev#473) Co-Authored-By: Claude Fable 5.2 <[email protected]>
|
Verification on RTX 3060 Ti (Windows 11): merge conflict with current |
What is in it
Fixes #319. When
CopyMemoryToMemoryXcopies from title CPU memory outside unified memory (crate::gpu::shader::readable) into a unified memory window,copy_memory_xnow recordsCopyBufferRegionfrom a per-list persistently mappedD3D12_HEAP_TYPE_UPLOADbuffer (sharingcreate_mapped_uploadwithpattern_buffer), copies fromsrcinto the upload buffer right before submission (ExecuteCommandListsandKickoffX), and keeps the upload buffer alive until the queue's fence completes viacpu_writes::Write::KeepAlive. Adds test cases intests/testtitle/src/gpu.rs(console_list_methods) writing to the title heap after recording and before bothExecuteCommandListsandKickoffX.Regression run
Main (
2997c9aca6ebf4577fed34ebdb3cb0a77dd9ec21):PR head (
388cf3baec605cef572f6966cb1b34b07fc655fb):Tested
cargo test --workspace -- --test-threads=4on Windows 11 Pro (26H2), Intel Core i5-14600KF, AMD Radeon RX 9060 XT (Adrenalin 26.11.2,XCL_ADAPTER=radeon): 676 passed, 0 failed, 41 ignored (SKIPPED: none). Includestest_title_runs_and_game_folder_is_untouchedexercisingCopyMemoryToMemoryXfrom title heap into graphics memory on bothExecuteCommandListsandKickoffX.Not tested
Linux / Wine / NVIDIA / Intel GPU paths.
AI use
AI-assisted: Antigravity (Gemini 3.1 Pro). Human reviewed and ran tests and smoke runs on Windows 11 Pro + Intel Core i5-14600KF + AMD Radeon RX 9060 XT (26.11.2).