Repository navigation
Conversation
|
Reviewed and tested at Looks clean and well-tested (both C and C++ calling conventions covered on WARP). One small nit: Tested locally
AI use
|
4a9d63e to
42fbd67
Compare
…ustomHeapProperties The test reports SKIPPED through runner::skip_test when it gets no DXGI factory, WARP adapter or WARP device, and the parent passes the child's SKIPPED lines on, instead of passing silently. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
42fbd67 to
b72b472
Compare
|
Review (head b72b472, diff read, not a merge-check: the
Fine: the change is limited to AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point. |
|
Test report (not a merge-check: AI-written and posted by Foniass without a human check of each point. |
Clamp multi-bit
nodeMaskvalues to single-adapter1and map console-only heap types aboveGPU_UPLOAD(5) toDEFAULTinget_custom_heap_properties_x.Previously,
device_x::get_custom_heap_properties_xforwardednodeMaskandheapTypeunchanged to PCGetCustomHeapProperties. On single-adapter PC D3D12, passing a multi-bit/all-nodesnodeMask > 1(for example0x3or0xFFFF_FFFF) or a console-only heap type (> 5) makes PCGetCustomHeapPropertiesreturn zeroedD3D12_HEAP_PROPERTIES(Type = D3D12_HEAP_TYPE_UNKNOWN (0),CPUPageProperty = UNKNOWN,MemoryPoolPreference = UNKNOWN), which subsequentCreateHeaporCreateCommittedResourcecalls reject withE_INVALIDARG.What is in it
crates/xcl/src/hle/d3d12x/device_x.rs:pc_custom_heap_query(mask, ty)clamping nonzeronodeMaskvalues to1(matchingpc_queue_descandcreate_list) and mapping console-only heap types (ty > D3D12_HEAP_TYPE_GPU_UPLOAD) toD3D12_HEAP_TYPE_DEFAULT(matchingdev_create_heap), while leaving invalid PC inputs (0=UNKNOWN,4=CUSTOM) untouched so PC still rejects them.pc_custom_heap_queryinget_custom_heap_properties_xbefore invoking PCGetCustomHeapProperties.pc_custom_heap_query_sanitizes_node_mask_and_console_heap_typeand child-process-isolated WARP testget_custom_heap_properties_x_sanitizes_node_mask_and_console_heap_typecoveringmask = 3(DEFAULT, C++ order),mask = u32::MAX(UPLOAD, C order), console heap type6, and preservation of rejection forCUSTOM (4).Tested
rustc 1.99.0 (b940084d7 2026-09-28), DXC 1.9 (XCL_DXC_DIR), debug for tests and release forxcl-smoke.cargo test -p xcl --lib -- hle::d3d12x::device_x::tests:: --nocapture):get_custom_heap_properties_x_sanitizes_node_mask_and_console_heap_typefailed before the fix (mask=3 DEFAULT,mask=MAX UPLOAD, andCONSOLE(6)all returned[0, 0, 0, 1, 1]instead ofD3D12_HEAP_TYPE_CUSTOM), and all 22device_xtests passed after (22 passed, 0 failed,0.18s,0skips).cargo test --workspace -j 2 -- --test-threads=4 --skip test_title_runs_and_game_folder_is_untouched --skip uma_driver::tests::): 2663 passed, 0 failed, 49 ignored, 9 filtered across 41 test binaries.SKIPPEDGPU tests on this wave32 adapter (26 total across--nocaptureworkspace baseline): 21no wave64(RTX 5070 Ti is wave32), 3 wave32 per-lane#1426f16/cvt-f16 refusals, 2no heap windows(opt-inXCL_HEAP_WINDOWS=1).ea3b5e4d) 150 s regression run below (0device removals,0crashes,1583frames vs1695onmain,33990 MBpeak commit vs31546 MBonmain).Regression run
Not tested
nodeMask > 1is clamped to1for single-adapter PC D3D12 parity withpc_queue_descandcreate_list) and AMD RDNA / wave64 GPUs.uma_driver::tests::(skipped locally due to pre-existing0x7C10003exit on NVIDIA) andtest_title_runs_and_game_folder_is_untouched.AI use