Repository navigation
Conversation
… handles of the view The two calls (list xcl-dev#53 / xcl-dev#54) went to the PC with the handles as the title gave them. Those are addresses of slots in a console view heap, which the PC took for descriptor handles: a retail title's first such clear in its world hung the GPU (the driver stopped responding; the device-removal trace names a list of 139 operations with 45 done and the clear next). The list now looks the two handles up as console slots and gives the PC the UAV's GPU handle in the heap that is bound and its CPU handle, as the older console list already does. Handles that are no console slots go on as they are. Part of xcl-dev#675. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
Independent Windows check of 9606785. Windows 11 build 26300, Ryzen 7 9800X3D, RTX 3080 Ti / 621.35, Rust 1.99.1 MSVC and DXC 1.8.2502.11. The clean head passed I also extended the fixture, without changing runtime code, to use separate shader-visible GPU and non-shader-visible CPU heaps as required by D3D12’s clear API. For both R32_UINT and R32_FLOAT, readback confirmed 288 texels updated and 3,808 retained their original values. Both standard and GPU-based validation passed with zero skipped tests, debug-layer warnings or errors, and a healthy device. The focused command was I also ran a separate shared-heap case for D80 on the same head. With heap windows enabled and no descriptor heap initially bound, the console clear bound the shared heap and filled all 4,096 texels in each of the R32_UINT and R32_FLOAT textures with the expected value. The focused test passed with zero skips or D3D12 debug-layer warnings or errors. The device remained healthy. Synthetic inputs only. No retail world-load run on this machine. AI-assisted. Codex (GPT-6, exact variant unavailable) extended the temporary fixture, ran the tests and drafted this report. |
|
Wine/vkd3d-proton lane: verified, clean. Tested: head
The handle-translation fix itself is on the console-list clear path, which the data-free suite lane cannot exercise; it only shows that nothing else breaks with it in. Not tested: the retail-title clear path that hangs without this fix (no title data on this lane, counts only). AI use: Hermes agent (local Qwen-class) ran both machines and drafted this; I checked it before posting. |
|
Independent Radeon iGPU and RTX 5090 readback through the title-facing slots on Tested
Not tested The parent, a retail title, the shared-heap GPU path, and the full workspace suite. AI use OpenAI Codex (GPT-6.2 Sol) adapted the test fixture, ran the checks and wrote this report. |
|
Independent RX 6800M check of exact PR head Environment: Windows 11 build 26200; Ryzen 9 5980HX; discrete AMD Radeon RX 6800M driver Clean-head tests: The command-list hook and GPU Selected-RX GPU readback: I changed only the GPU fixture's device selection locally to use Limits: Focused synthetic tests only. I did not run the full workspace suite, a paired owned-title smoke, or the retail world's first clear on this head. A separate title smoke attempt for another PR had stopped under the available-commit memory guard. This check does not establish that later device loss in the author's title runs is resolved. AI use: OpenAI Codex (GPT-6; exact variant unavailable in this session) ran the Windows tests, made and restored the test-only selector, and drafted this report. No game data was used. |
|
Two contributors checked independently and found that #1291 solves the same problem (for #675) in a different way: #1607, group D80. You may want to compare them with the other author and agree on one, or say in the PR why both are needed. This is a hint from the community triage in #1607, not a maintainer decision. AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table. |
…#2296, xcl-dev#2297, xcl-dev#2320, xcl-dev#2323, xcl-dev#2329, xcl-dev#2333 Integrates shader heap-base addresses (xcl-dev#1803), fenced superseded texture unmaps (xcl-dev#2270), cross-queue VRAM heap reclamation fencing (xcl-dev#2275, using create_raw_fence under Wine), PcCall frame clamping and orphan PSO drop (xcl-dev#2296), PSO pointer guards (xcl-dev#2297), KickoffX idle spare list switching (xcl-dev#2320, preserving UnadoptGuard), console-list descriptor heap binding (xcl-dev#2323), ClearUnorderedAccessView PC handles (xcl-dev#2329), and dispatch_chain PSO retention (xcl-dev#2333).
…Guard test submits
|
High — The clear can pass D3D12 a CPU descriptor from a shader-visible heap. clear_uav_handles checks the GPU slot’s visibility, then forwards c.pc_uav from the CPU slot’s backing heap without checking that heap’s visibility. The committed GPU test exercises exactly this case by passing the same slot from one shader-visible heap as both arguments. D3D12 explicitly requires the CPU descriptor to live in a non-shader-visible heap. A reviewer’s temporary two-heap test passed with validation enabled, which supports the normal two-heap path. Before merge, use a CPU-only descriptor for any supported same-slot clear and commit the two-heap regression test. Implementation and fixture · D3D12 handle requirements Medium — The committed GPU test bypasses the shared-heap branch used by the game. It binds a private heap and calls clear_uav_uint_x and clear_uav_float_x directly. A separate test checks the slot numbers. An independent reviewer successfully exercised the title-facing slots on AMD and NVIDIA, but explicitly excluded the shared heap. The retail runs used a modified tree that called ensure_view_heap unconditionally. I’d add one readback test that calls slots 53 and 54 through the wrapped list, uses a shared GPU heap and a separate CPU heap, and starts with no explicitly bound view heap. That would catch a regression where the handle arithmetic is correct but the command list lacks the heap containing the descriptor. |
A title's
ClearUnorderedAccessViewUint/Float(list #53 / #54) went to the PC with the two handles as the title gave them. Those are addresses of slots in a console view heap (console_heap), which the PC took for descriptor handles: a retail title's first such clear in its world hung the GPU. Now the list translates them, as the older console list (console_list) already does. Part of #675.What is in it
crates/xcl/src/hle/d3d12x/list_x.rs:clear_uav_uint_x/clear_uav_float_xfor XAsync: cancellation is the provider's to do #53 / Task queues: terminating cancels delayed callbacks before the termination callback #54.clear_uav_handleslooks the two handles up as console slots and gives the PC the UAV's GPU handle (in the title's own shader-visible heap, or in the shared heap when the view heap is hosted there - thenensure_view_heapbinds it if the title named no heap) and the UAV's CPU handle in the title's own PC heap. Handles that are no console slots go on as they are. A slot with no shader-visible UAV (a heap that is not shader visible, a sampler slot, a slot paired with a PC handle) is not cleared, with a warning for the first four. The rectangles go on unchanged.crates/xcl/src/hle/d3d12x/real.rs: the two entries in the command list's slots.the_command_list_hooks_clear_unordered_access_view(the two slots are XCL's - it fails without the entries);clear_uav_handles_are_those_of_the_pc_heap_behind_the_slots(the handles of a slot, of two slots, PC handles, a heap that is not shader visible, samplers);clear_unordered_access_view_takes_the_slots_of_a_console_heapon the GPU (an R32_UINT and an R32_FLOAT texture with their UAVs in a console heap's slots, both clears with the slots' addresses, the textures read back).Tested
stable-x86_64-pc-windows-msvc; debug for the tests, release for the title.cargo build --workspace && cargo test --workspace -- --test-threads=4on9606785: 1268 passed, 0 failed, 46 ignored. SKIPPED (28 notices): the wave64 cases ofgpu::recomp::lower::tests(4 tests),gpu::recomp::lower_dxil::tests(14 cases) anddispatch_chain_native_wave64_builds_whole, 3 per-lane cases the per-lane form refuses,gpu_wave32_program_in_wave64_hardwareandgpu_geometry_wave32_prefix_count_over_a_mask(no wave64),heap_window_out_of_memory_falls_back_to_the_switch_form(its switch is off),pso_measurement_compiles_an_exact_synthetic_record(Windows Developer Mode is off),uploads_start_from_each_subresources_stateandtest_title_draws_with_a_root_signature_under_the_debug_layer(no D3D12 debug layer on this PC).XCL_NETWORK=0, scripted pad, on a local tree that is not this head: D3D12.X: integration branch that reaches the in-world HUD on NVIDIA (reference, not for merge) #2057 at4df1e6e+mainat0f13d2a+ Recompiler: emit per-instruction globallycoherent on compute flat memory (stacked on #1850) #2067, XG: fix CopyFromSubresource 7-argument ABI and guard destination span #684, Rect lists: the CPU expansion finds the rect's corner, not always v1 #266, Activity: the local video memory budget, and a warning within XCL_VRAM_HEADROOM_MB of it #1515, kernelx: XMemMapPhysicalPagesScatter with no page array unmaps #495, DirectStorage: read a physical-page list again when its request runs #1405, D3D12.X: title texture reads outside the coherent window use the safe copy #751, D3D12.X: execute two-pass mesh shaders on DispatchMesh and ExecuteIndirect (supersedes #724) #2092, D3D12.X: shaders that index the heaps themselves get the heaps' addresses #1803, D3D12.X: the console's DispatchMesh indirect argument (107) is a PC DispatchMesh #1887, D3D12.X: a console MS in the AS slot is translated as the mesh shader it is #541, D3D12.X: XCL_DUMP_TARGETS dumps the most-drawn render targets of a frame #2050, the change of D3D12.X: XCL_TEXTURE_LEVEL_PAGES=1 gives a sampled texture's levels their pages with their texels #2306 for D3D12.X: integration branch that reaches the in-world HUD on NVIDIA (reference, not for merge) #2057's uploads and local diagnostics;XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1, the Series S profile (device_type = "lockhart"), where the hang came in every run:XCL_GPU_PROFILE=1 XCL_DRED=1)XCL_DRED=1names the same place in two runs: a list of 139 operations with 45 done, the next oneClearUnorderedAccessView(the first clear of the list; before it 17 barriers, 10 WriteBufferImmediate, 5 ResolveQueryData, 3 Dispatch, 3 ExecuteIndirect, 2 draws, 2 buffer copies and 2 texture copies), and the system log has the driver's "stopped responding" (event 4101) for each of the five runs.R32_FLOATtexture, each with a GPU handle and a CPU handle from two console heaps, and goes on (three runs of three).XCL_DRED=1names no list; local video memory 13.7 - 13.9 GB of a 15.0 GB budget), in run 8 with one that starts 10 s after a compute pipeline of 1.0 MB of DXIL came out of the driver (70 s in it), which is not this change's subject.Regression run
main:
PR (this PR's head commit):
A second round of the same two binaries:
main1169 frames, PR 1154. These 60 s end in the title's menus, before its first ClearUnorderedAccessView: the pair shows nothing else changed, not the fix.Not tested
ensure_view_heapcalled for every translated clear, not only for a view in the shared heap).AI use
🤖 Generated with Claude Code