Repository navigation
Conversation
Owner
Author
|
Upstream PR xcl-dev#1071 was closed or merged. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When a command allocator is swapped out by
alloc_poolwhile an earlier command list still holds an active recording (or hasn't finished on the GPU), four follow-on list/allocator paths could still touch the stale backing or lose track of live recordings on spares:list_x::try_split_for_wait): creating a new PC command list segment resolvedalloc_pool::current(alloc)for the nativeCreateCommandListcall, but never registered the newly created PC segment withalloc_pool(created_on_backing), leaving the active backing unpinned for that segment.list_x::clear_segment_state): resetting or freeing extra PC segments did not callalloc_pool::forget_list(list), leaving them holding allocator spares until process shutdown.device_x::create_list): calledreal::dev_create_command_listandlist_x::on_createusing the raw titleallocinstead of resolvingpc_alloc = alloc_pool::current(alloc), creating new lists onto a retired busy allocator rather than the active substitute backing.real::cl_reset):ID3D12GraphicsCommandList::Resetbypassedalloc_pool::reset_list, both failing to redirect the titleallocatortocurrent(allocator)and failing to movethisonto the resolved PC backing inalloc_pool.What is in it
crates/xcl/src/hle/d3d12x/alloc_pool.rs: addcreated_on_backing(list, title_alloc, pc_alloc, ty)(and gatecreated_onunder#[cfg(test)]), and add testscl_reset_and_new_list_after_swap_use_active_backingandcreated_list_after_swap_tracks_active_backing.crates/xcl/src/hle/d3d12x/list_x.rs: addon_create_with_backing(list, alloc, pc_alloc, pso, ty)delegating fromon_create; callalloc_pool::forget_list(list)inclear_segment_state; register new split PC segments intry_split_for_waitviaalloc_pool::created_on_backing(p as usize, alloc, pc_alloc, ty.0); and add testmid_list_split_tracks_new_segment_in_alloc_pool_and_releases_spare_on_reset.crates/xcl/src/hle/d3d12x/device_x.rs: resolvepc_alloc = alloc_pool::current(alloc)increate_listand pass bothallocandpc_alloctolist_x::on_create_with_backing.crates/xcl/src/hle/d3d12x/real.rs: wrapID3D12GraphicsCommandList::Resetincl_resetwithalloc_pool::reset_list(this as usize, allocator as usize, -1, ...).Tested
rustc 1.100.0 (0ef1bc386 2026-11-09),DXC 1.8.2502.11, debug workspace build + test targets (.\scripts\test.ps1).32.0.21030.11004).610.88/32.0.16.1088).XCL_ADAPTER=radeon .\scripts\test.ps1: 740 passed, 0 failed, 41 ignored (0 GPU tests skipped;xcl_testtitleincluded and passed; exit code0).XCL_ADAPTER=nvidia .\scripts\test.ps1: 740 passed, 0 failed, 41 ignored (SKIPPED GPU tests:2 (no wave64)—gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware;xcl_testtitleincluded and passed; exit code0).Regression run
crates/xcl/src/hle/d3d12x/) and no retail Xbox title is available locally to produce the requiredxcl-smoke v1mainvs PR comparison blocks viascripts/smoke.ps1. Requesting a retail-title smoke run onmainand this branch before marking ready for review.Not tested
scripts/smoke.ps1(no retail game package locally).XCL_SAMPLE_RPF,XCL_SAMPLE_DLLS,XCL_SAMPLE_TTPF,XCL_SAMPLE_BCPACK,XCL_SAMPLE_BK2,XCL_SAMPLE_BVH4,XCL_SAMPLE_AWC,XCL_SAMPLE_XG,XCL_SAMPLE_DXCunset).d3d12SDKLayers.dllnot installed on this machine).AI use
Mirror of xcl-dev#1071 (auto-synced, do not edit).