Repository navigation
Conversation
Helpers for the copy path that changes no behaviour yet: - sparse.rs: extract new_state from the inline closure in init, so shadow_window (next commit) can call it when no sparse windows exist - uma.rs: Uma::shadowed flag and is_gpu_copy(p): a sparse window or a committed one the GPU has a copy of. Never set to true in this commit. - list_x.rs: note_copy_into tracks PC copies into console buffers whose memory the GPU has a copy of; note_write uses is_gpu_copy - real.rs: uma_shadowed helper, res_map and dev_create_placed_resource_x use is_gpu_copy (= is_sparse while shadowed is false) Based on Ahmet-Dedeler's c70bf8a on mac-on-main-wip. Co-authored-by: Ahmet Dedeler <105894172+Ahmet-Dedeler@users.noreply.github.com> Assisted-by: Claude Code (Claude Opus 4.6 ported it; Claude Opus 5.5 reviewed it)
|
Full-suite run, since this PR has no test report yet. Tested exact head Tested
Not tested
AI use
|
Hardware test report — commit
|
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
Regression pair for Tested
this PR, Not tested
AI use: Claude Code (Claude Opus 5.5) |
|
A regression run under Wine on Linux, on a retail title. Tested
Regression run main (first run): this PR: The last Not tested
AI use
|
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
Nothing has happened on this PR for 3 days, so it is marked |
|
Closing: its commit is in |
First of four PRs that bring the unified memory copy path to
main(Part of #258): helpers it needs, with no change in behaviour. D3DMetal answers E_NOTIMPL forOpenExistingHeapFromAddress, so on a Mac there is no GPU unified memory; the copy path (the fourth PR) gives the committed window a copy in video memory instead.Based on Ahmet-Dedeler's
c70bf8aonmac-on-main-wip("Unified memory without OpenExistingHeapFromAddress: the committed window gets a copy in video memory"), which he handed over in #258 (comment). Rebased ontomain930e8b4and split into four PRs.What is in it
crates/xcl/src/gpu/uma.rs:Uma::shadowed(never set in this PR) andis_gpu_copy(p): a sparse window, or a committed one the GPU only has a copy of.crates/xcl/src/hle/d3d12x/sparse.rs:new_stateextracted frominit, so the copy path can build the state without sparse windows; it keepsmain'sparkedlist and debug names.crates/xcl/src/hle/d3d12x/list_x.rs:note_copy_into, which records PC copies into console buffers whose memory the GPU only has a copy of; it returns at once whileshadowedis false.crates/xcl/src/hle/d3d12x/real.rs: the places that askedis_sparseaskis_gpu_copy, which is the same thing whileshadowedis false.Tested
x86_64-pc-windows-gnu(mingw-w64 GCC 16.2.0), debug, DXC 1.9.2609. Each test in its own process (<test exe> --exact <test> --test-threads=1 --nocapture).3dd994a: the seven UMA tests that fail onmainon this host fail the same way, at the same lines (gpu_uma_import_check_at_init,gpu_unified_memory_arena,gpu_memory_windows_above_4_gib,gpu_mesh_mode_reads_memory_windows,gpu_bvh64_intersect_ray_across_memory_windows_and_grazing,gpu_memory_windows_reject_out_of_uma_aliasing,gpu_sparse_vram_descriptors_buffers_and_xmem), and thelist_xandvramtests I sampled still pass.cargo test --workspace -- --test-threads=4: 751 passed, 0 failed, 41 ignored on both (@futurepro62, D3D12.X: prepare for the unified memory copy path #1326 (comment)); AMD RX 9070 XT (RDNA4), Windows 11, release: 751 passed, 0 failed, 41 ignored, with the seven UMA tests passing natively (@eizispark, D3D12.X: prepare for the unified memory copy path #1326 (comment)).Regression run
This changes runtime files, so it needs an
xcl-smokepair from someone with a title; I have none. Nothing in it is reached whileshadowedis false.Not tested
AI use
c70bf8aontomainand split it. Claude Code with Claude Opus 5.5 reviewed the slices, ran the tests above on this machine and wrote this description.