Repository navigation
Conversation
…before publishing Fence::note_queue_signal only stored the maximum signalled value before completed_value_address was first called. If a queue signalled V1 and then V2 (V2 > V1) before completed_value_address, only V2 was armed: when the GPU reached V1 and paused before V2, the event never fired and the cell stayed stale at 0 even though GetCompletedValue() == V1. completed_value_address also published Cell(0) into FENCES before calling refresh(), allowing a concurrent caller to read 0 instead of the fence's current completed value. Record pre-cell queued signal values in a pruned BTreeSet so completed_value_address arms every pending value > initial, and initialise the cell from GetCompletedValue() before inserting it. Assisted-by: OpenCode (Gemini 4 Neon)
|
Full-suite run, since this PR has no test report yet. Tested exact head Tested
Not tested
AI use
|
…cl-dev#1286-xcl-dev#1291, xcl-dev#1294, xcl-dev#1296-xcl-dev#1297, xcl-dev#1300 Prevent background shader preloading and concurrent DXC/RADV compiles from exhausting host RAM under Wine, and integrate 11 open upstream PRs: - dxc.rs & real.rs: check free physical RAM (ullAvailPhys.min(ullAvailPageFile)) under Wine instead of swap-inclusive ullAvailPageFile, avoid bypassing the guard after 60 s under Wine, and serialize giant (>= 4 MiB DXIL) driver compiles with BIG_COMPILES under Wine. - pso_async.rs: cap background preload workers to 1 under Wine. - title_textures.rs: use real::create_raw_fence in submit_on_title_queue and read coherent-window hash bytes safely via with_title_bytes. - Integrate upstream PRs xcl-dev#968 (sparse::queue lock-free for late_release), xcl-dev#1286 (v_dot2_f32_f16 NEG_HI abs), xcl-dev#1287 (XMA >8 channels), xcl-dev#1288 (Sleep pauses during PSO bind waits), xcl-dev#1289 (pipeline stream bounds check), xcl-dev#1290 (root signature MAX_ARGS cap), xcl-dev#1291 (console UAV clears xcl-dev#53/xcl-dev#54), xcl-dev#1294 (shadowed PENDING accuracy), xcl-dev#1296 (16-bit compare low halves), xcl-dev#1297 (fence_x pre-cell signal arming), xcl-dev#1300 (log driver compute PSO refusal). Verified on RX 9060 XT under GE-Proton11-14 (MemoryMax=12G, 80 s): committed RAM stays flat at 4830 MB (down from 27.6 GB OOM), 1493 frames shown, exit 0x0. Assisted-by: Antigravity (Google DeepMind)
…fallbacks Incorporate targeted upstream fixes from ivall/xcl PRs and local diagnostics to resolve world-loading E_ACCESS_VIOLATION streaming errors, fence monitor deadlocks, and mesh/compute PSO visibility: - DirectStorage (ivall/xcl PR xcl-dev#549; relates to xcl-dev#289, xcl-dev#476, xcl-dev#1164): * crates/xcl/src/hle/dstorage.rs: Add Pending::late and refill_late_pages() so queues with 0 entries in destination physical-page arrays do not auto-submit at half capacity before the title calls Submit() and fills the page entries. Add unit test a_late_page_array_holds_a_half_full_queue_until_the_titles_submit. * Ensure lazy physical pages via kernelx::lazy::ensure() in snapshot_page_array() and before re-reading stale destination page tables on execute() failure, logging failing snapshot/live entries (adds test dest_physical_pages_rereads_stale_snapshot). - D3D12.X fences (ivall/xcl PR xcl-dev#1297): * crates/xcl/src/hle/d3d12x/fence_x.rs: Track all intermediate queued signal values in Fence::pending (BTreeSet<u64>) before completed_value_address() creates the cell, initialize the cell from GetCompletedValue() before publishing, and arm all pending values > initial so *cell cannot remain stale at 0 and deadlock callers waiting on intermediate fence values. Adds test intermediate_signal_queued_before_completed_value_address_updates_cell. - D3D12.X PSOs (ivall/xcl PR xcl-dev#1300 / xcl-dev#1035 and PR xcl-dev#1298): * crates/xcl/src/hle/d3d12x/real.rs: Log driver rejections of translated compute PSOs (hr, DXIL byte size, elapsed compile ms) directly via xlog_warn! so refusals are not masked after note_translation_error's 40-reason limit is consumed (PR xcl-dev#1300). * Update fallback_stream() to handle subobject types 24/25 (AS/MS) so mesh pipelines with MS in slot 24 rewrite cleanly with stand-in mesh shaders instead of invalid null AS payloads (PR xcl-dev#1298). Assisted-by: Antigravity (Gemini 4 Neon)
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
Independent Windows run on cb60656. Windows 11 build 26300, Ryzen 7 9800X3D, RTX 3080 Ti (621.35), Rust 1.99.1 MSVC.
With the D3D12 debug layer enabled, AI use: Codex (GPT-6, exact variant unspecified) wrote the scratch fixture, ran the tests and drafted this report. |
|
Linux/RADV + Wine GPU test report on PR Setup
Results
Not tested
AI use
|
fence_x::note_queue_signalonly recorded the maximum signalled value (f.signalled) beforecompleted_value_addresswas first called. If a queue signalledV1and thenV2(V2 > V1) beforecompleted_value_address, onlyV2was armed: when the GPU completedV1and paused beforeV2, the completion event never fired and*cellstayed stale at0even thoughGetCompletedValue() == V1(deadlocking any caller waiting on*cell >= V1).In addition,
completed_value_addresspublishedCell(0)intoFENCESbefore callingrefresh(), allowing a concurrent caller ofcompleted_value_addressto observe0instead of the fence's currentGetCompletedValue().This records pre-cell queued signal values in a pruned
BTreeSet<u64>socompleted_value_addressarms every pending value> initial, and initialises the cell fromGetCompletedValue()before inserting it.What is in it
crates/xcl/src/hle/d3d12x/fence_x.rs: track pre-cell queued signals inFence::pending(pruning completed values whenpending.len() >= 16), initialiseCellwithGetCompletedValue()before publishing, and arm all pending values> initial; add GPU testintermediate_signal_queued_before_completed_value_address_updates_cell(verified failing before the fix withcell stayed at 0 while fence GetCompletedValue() == 1).Tested
stable-x86_64-pc-windows-msvc), DXC 1.9.2609.5, debug (scripts/test.ps1) and release (scripts/smoke.ps1).\scripts\test.ps1(cargo build --workspace+cargo test --workspace -- --test-threads=4): 752 passed, 0 failed, 41 ignored (SKIPPED GPU tests: 2no wave64—gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask,gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware)cargo test -p xcl --lib intermediate_signal_queued_before_completed_value_address_updates_cellandthe_cell_follows_the_fence: both pass (first timed out atcell == 0before the fix)Regression run
main:
PR:
Not tested
AI use
fence_x.rs, wrote the fix and GPU test, ran the test suite andscripts/smoke.ps1regression runs, and drafted this PR description.