Skip to content

D3D12.X: reclaim cooling and idle tiles on pool heap OOM - #1663

Open
n-romanovich wants to merge 1 commit into
xcl-dev:mainfrom
n-romanovich:vram/reclaim-tiles-on-oom
Open

n-romanovich wants to merge 1 commit into
xcl-dev:mainfrom
n-romanovich:vram/reclaim-tiles-on-oom

Conversation

@n-romanovich

@n-romanovich n-romanovich commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Addresses #1585.

When Pages::bind hits E_OUTOFMEMORY (0x8007000E) in alloc_pool_heap, it previously failed immediately even when freed tiles were still waiting in cooling (up to COOL = 2s) or unreferenced pages were sitting in idle (up to IDLE = 2s). Now, on take_batch failure, if pool.cooling or idle is non-empty, Pages::bind waits up to 1,000 ms for Pages::fence and, on Ok(()), calls TilePool::reclaim_for_oom (draining cooling tiles and evicting the oldest still-idle pages up to missing tiles) before retrying take_batch. If fence::wait fails or times out, it logs a warning and returns None without reclaiming potentially in-flight tiles.

What is in it

  • Extracted pop_idle_page from sweep_idle in crates/xcl/src/hle/d3d12x/vram.rs. - Added TilePool::reclaim_for_oom and wired Pages::bind to wait on self.fence, reclaim cooling/idle tiles, and retry take_batch on OOM. - Added unit test reclaim_for_oom_drains_cooling_and_idle_pages covering cooling drain, stale idle entry skipping, and Own/Extra idle eviction.

Tested
Hardware: Windows 11 x64, NVIDIA GeForce RTX 5060 Ti.

  • cargo test -p xcl --lib vram::tests -- --test-threads=4: 11 passed; 0 failed; 1 ignored
  • cargo test --workspace -- --test-threads=4: 960 passed; 0 failed; 43 ignored
    • SKIPPED: 21 wave64 / unsupported #1426 per-lane GPU tests (no wave64 / unsupported V_MUL_F16 / V_PK_MUL_F16 / V_CVT_F16_F32), shaders::tests::pso_measurement_compiles_an_exact_synthetic_record (Windows Developer Mode is required), heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows)

Regression run
Main (5478c4a7c1ae5adba127c8d27018d7fdbf3a8725):

xcl-smoke v1
commit: 5478c4a7c1ae5adba127c8d27018d7fdbf3a8725
gpu: NVIDIA GeForce RTX 5060 Ti
title: FILES
seconds: 60
exit: 0x0
frames shown: 1541 (PresentX 1541)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15701 MB

PR (bdcc0ebe47316ad219212d28435c26a7833f239f):

xcl-smoke v1
commit: bdcc0ebe47316ad219212d28435c26a7833f239f
gpu: NVIDIA GeForce RTX 5060 Ti
title: FILES
seconds: 60
exit: 0x0
frames shown: 1470 (PresentX 1470)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14542 MB

Not tested

  • macOS / Linux (crate targets Windows only).
  • AMD / wave64-capable GPU.

AI use

  • Antigravity (model name not provided): implemented the fix and unit tests, ran the test suite and smoke.ps1 runs.

@eizispark

Copy link
Copy Markdown

Hardware test report — commit 40fd9b6

Verified 40fd9b647ca69f344a17408305e50effa39c86cf (clean merge with main c160d86ef2efe3a07e4dfb473e4fa72eafb413c0): pass.

Tested

  • Hardware: AMD Radeon RX 9070 XT (RDNA4, native wave32 + wave64, driver 32.0.32015.16001), AMD Ryzen 7 9800X3D, 32 GB RAM, Windows 11 x64, rustc 1.100.0 (0ef1bc386 2026-11-09), debug tests + release smoke
  • cargo test --workspace --no-fail-fast -- --test-threads=4: 778 passed, 0 failed, 41 ignored (1 skipped: heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows)
  • All 11/11 hle::d3d12x::vram::tests passed on AMD RDNA4, including reclaim_tile_drains_cooling_and_idle_pages_on_oom and take_tile_reclaims_only_after_fence_on_oom
  • Both native RDNA4 wave64 GPU tests (gpu_geometry_wave32_prefix_count_over_a_mask and gpu_wave32_program_in_wave64_hardware, plus console_wave64_compute_through_the_pso_hook_dispatch_and_read_back) passed cleanly

Regression run (scripts/smoke.ps1, 60 s, warm shader/driver cache)
main (c160d86ef2efe3a07e4dfb473e4fa72eafb413c0):

xcl-smoke v1
commit: c160d86ef2efe3a07e4dfb473e4fa72eafb413c0
gpu: AMD Radeon RX 9070 XT
title: GTA6.Xbox.v1.0.2.1
seconds: 60
exit: 0x0
frames shown: 1671 (PresentX 1671)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14861 MB

PR (40fd9b647ca69f344a17408305e50effa39c86cf):

xcl-smoke v1
commit: 40fd9b647ca69f344a17408305e50effa39c86cf
gpu: AMD Radeon RX 9070 XT
title: GTA6.Xbox.v1.0.2.1
seconds: 60
exit: 0x0
frames shown: 1674 (PresentX 1674)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14856 MB

Not tested

  • actual CreateHeap pool-heap OOM in a live retail session (16 GB VRAM RX 9070 XT did not hit OOM during the 60 s smoke), NVIDIA/Intel GPUs, Wine/vkd3d-proton, gameplay past the menus

AI use

  • Verified and formatted with Antigravity (Google DeepMind, Gemini 4 Carbon).

@n-romanovich

Copy link
Copy Markdown
Contributor Author

Thanks for the review!

anoyarou added a commit to anoyarou/xcl that referenced this pull request Nov 24, 2026
…g, DirectStorage, and stream tracking

Cherry-picks upstream stabilization improvements across VRAM allocation,
pipeline caching, DirectStorage lifetime, descriptor heap indexing, Media
Foundation device bridging, and stream PSO tracking:

- D3D12.X: reclaim cooling and idle tiles on pool heap OOM (xcl-dev#1663,
  addressing xcl-dev#1585 and xcl-dev#1668). When CreateHeap returns 0x8007000E (E_OUTOFMEMORY),
  Pages::take_tile waits on Pages::fence up to 1000 ms to drain cooling tiles or
  force-evict idle pages rather than failing immediately. (by Nikita Romanovich)

- DirectStorage: close a queue when its last reference is released (xcl-dev#1675).
  Moves queue_close logic into QueueInner::close and invokes it when the final
  queue reference is released, preventing background workers from writing to freed
  caller buffers and marking pending entries complete with E_QUEUE_CLOSED. (by eizispark)

- D3D12.X: a pipeline the driver gave up on is not built again (xcl-dev#1665).
  Persists driver E_OUTOFMEMORY refusal state into used-pipelines.txt (!<key>)
  so giant compute pipelines that the host driver refuses to compile are skipped
  on subsequent runs. (by zorde23)

- Recompiler: access outside heap windows takes a null view without branching
  (xcl-dev#1669, xcl-dev#680). Replaces conditional branches in XCL_HEAP_WINDOWS=1
  (if (xcl_w >= windows)) with a branchless select pointing out-of-bounds accesses
  to a dedicated null UAV view (MEM_HEAP_NULL). (by milesah3ad)

- HLE: bridge ID3D12Device before direct ResetDevice and cache D3D11 companion
  (xcl-dev#1677). Fixes MFResetDXGIDeviceManagerX in mfplat.rs to bridge
  ID3D12Device COM pointers and caches multithreaded companion ID3D11Device
  instances per adapter LUID. (by eizispark)

- D3D12.X: route stream graphics PSOs through create_graphics_pso_tracked
  (xcl-dev#1661, finding XCL-BT-023 from xcl-dev#1489). Ensures stream-created
  graphics PSOs receive D3D12_PIPELINE_STATE_FLAG_DYNAMIC_DEPTH_BIAS and are
  tracked in device_x::note_base for CreateDerivedPipelineStateX and RSSetDepthBiasX.
  (by fixgep)

Assisted-by: Antigravity
@MiharaxD

Copy link
Copy Markdown

Test report on an 8 GB NVIDIA card, head 40fd9b6 (on main 9e3831e).

Tested

  • RTX 3070 Ti 8 GB (8017 MiB dedicated, driver 621.01), Intel i5-14400F, 32 GB RAM, Windows 11 Pro 10.0.26300, Rust 1.100.0, DXC 1.9.2602.17.
  • cargo build --workspace, then cargo test --workspace --no-fail-fast -- --test-threads=4 (debug) on 40fd9b6: 778 passed, 0 failed, 41 ignored (lib tests 729 / 0 / 21). reclaim_tile_drains_cooling_and_idle_pages_on_oom and take_tile_reclaims_only_after_fence_on_oom pass (the second prints could not wait for tile fence before OOM reclaim: Timeout(1000), its timeout case).
  • SKIPPED: gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware (no wave64), heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows).
  • Retail title, the PR's smoke run below: the log has no OOM reclaim, no video memory or 8007000E line, so 60 s on the start screen did not run the GPU out of memory and the new path did not run.

Regression run
scripts/smoke.ps1 -Game <game folder> -Seconds 60 (release builds, start screen, no input). main is c160d86:

main:

xcl-smoke v1
commit: c160d86ef2efe3a07e4dfb473e4fa72eafb413c0
gpu: NVIDIA GeForce RTX 3070 Ti
title: game
seconds: 60
exit: 0x0
frames shown: 1586 (PresentX 1586)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15055 MB

this PR's head:

xcl-smoke v1
commit: 40fd9b647ca69f344a17408305e50effa39c86cf
gpu: NVIDIA GeForce RTX 3070 Ti
title: game
seconds: 60
exit: 0x0
frames shown: 1605 (PresentX 1605)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15007 MB

Not tested

  • Real VRAM exhaustion (0x8007000E) in the retail title: it did not happen in this run, so the reclaim was only exercised by the unit tests.
  • AMD / Intel, gameplay past the start screen.

AI use: Claude Code (Claude Opus 5.5) built the PR, ran the tests and both smoke runs, read the logs and wrote this report; I checked it before posting.

@DavidM1911

Copy link
Copy Markdown
Contributor

Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, ~22 ignored.

Thanks!

@Adika713

Copy link
Copy Markdown
Contributor

Live 0x8007000E reproduction on AMD: the reclaim change removes the VRAM wall, but host memory becomes the next limit

I saw that this PR's description and two reviewers mark live retail VRAM exhaustion as untested. I have a local repro that reaches it, so here is a paired run on the same copied retail folder.

Setup:

  • RX 6950 XT, Windows 11 x64, release xcl.
  • Both runs used XCL_NETWORK=0, XCL_ACTIVITY=1, XCL_PRESS_A_AT='15,22,25,30,35,40,50,60,80,100', XCL_RUN_SECONDS=240.
  • Baseline: upstream main aaa093657bd96a146c05c0c1a9b61149fe761453.
  • PR side: head c2ae579e9aa5ee3feda1131f48754aa023a41e1e merged with that same main as 36b93e91475e3f2187db3b27d30c476efa89c88d. cargo build --release -p xcl --locked passed.

Results:

Run VRAM failure evidence End
main aaa0936 First CreateHeap(0x4000000 bytes, type 1) refusal at 100.572 s; 8 such refusals and 1,647 no video memory for more pages of title textures (0x8007000E) lines 0x80000003 at game_scarlett_master.exe+0x193e00f, with rax, rcx and rsi all 0x8007000e
PR c2ae579 + same main 0 CreateHeap ... refused (0x8007000e) lines and 0 no video memory ... lines 0xc0000409 from memory allocation of 2097152 bytes failed

Last memory samples:

  • main at 129.068 s: 17,908 MB process commit; 7,982 MB local video memory; target pages 4,555 MB (pools 4,608 MB).
  • PR at 122.398 s: 18,062 MB process commit; 8,264 MB local video memory; target pages 4,719 MB (pools 4,864 MB).

What this does and does not show:

  • It directly exercises the failure mode described in the PR: on this machine the title previously got a hard 0x8007000E wall from streamed texture pools, and with the change that wall did not appear in a 240 s run.
  • It does not show that the title loads. The PR run then hit a separate host-commit/Rust allocation failure at about 18 GB, so that is the next limit here, not a result of this change.
  • A successful reclaim is not logged, so I cannot claim from the log that reclaim_for_oom specifically ran. The verified observation is the absence of the pool-heap refusals and no video memory lines under the same setup.
  • This is a failure-mode comparison, not a scripts/smoke.ps1 60 s pair, and it is not a substitute for the PR-description check.

AI use: OpenCode with Big Pickle ran the builds and retail-title runs, read the logs, and drafted this report. Please verify before posting.

@JJAutoCompare

Copy link
Copy Markdown

XCL PR #1663 verification

Clean detached HEAD c2ae579e9aa5ee3feda1131f48754aa023a41e1e on STOR-WINLAB. The diff changes only crates/xcl/src/hle/d3d12x/vram.rs.

Windows 11 Enterprise Evaluation x64, build 26200. AMD Ryzen 7 3800X, Intel Arc A770 (16,258 MiB reported by XCL), driver 32.0.101.9175. DXC 1.9.2609.5 (01b62ad47), rustc 1.100.0 (0ef1bc386, x86_64-pc-windows-msvc). Unoptimized Cargo profiles with debug info and incremental compilation disabled.

Tested

  • cargo build --workspace and cargo test --workspace --no-run succeeded outside the A770 lock. The latter built 19 test executables.
  • With XCL_ADAPTER=NONE_CPU_ONLY outside the lock, each command returned 1 passed, 0 failed, 0 ignored and 0 skip messages.
    • cargo test -p xcl --lib hle::d3d12x::vram::tests::reclaim_for_oom_drains_cooling_and_idle_pages -- --exact verified reuse of two cooling tiles and two still-idle pages before timeout, preservation of a reused active page, and a false result when reclaimable tiles ran out.
    • cargo test -p xcl --lib hle::d3d12x::vram::tests::idle_pages_are_swept_from_their_queue -- --exact verified the ordinary idle deadline and stale-entry handling.
  • cargo test --workspace --no-fail-fast -- --test-threads=4 ran once under Invoke-ArcTest.ps1 with XCL_ADAPTER=A770 and RUST_TEST_NOCAPTURE=1. Exit 101. The 20 result lines (19 executable results and one doctest result) sum to 941 passed, 19 failed and 43 ignored. Both focused tests passed again.

Workspace failures and skips

18 GPU DXIL/recompiler unit tests failed, including compute PSO creation errors (0x80070057) and shader output mismatches. The synthetic title e2e also failed on dynamic depth bias via RSSetDepthBiasX (#94), producing blue where it expected green. The log contains 25 explicit skip messages, including 17 for missing wave64 and one for tiled-resource tier below 2. Skip messages include partial test skips and provide no coverage for the skipped paths.

Not tested

Actual D3D12 pool-heap OOM, the fence-wait and retry under driver OOM, a matched main run, retail-title smoke, and other GPUs.

AI use

T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high) ran the build and verification. Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against pr1663-suite.log and published.

IvyNotFound added a commit to IvyNotFound/xcl that referenced this pull request Nov 25, 2026
# Conflicts:
#	crates/xcl/src/hle/d3d12x/vram.rs
IvyNotFound added a commit to IvyNotFound/xcl that referenced this pull request Nov 25, 2026
…terface params in xcl-dev#2028's two-pass test helper

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
IvyNotFound added a commit to IvyNotFound/xcl that referenced this pull request Nov 25, 2026
xcl-dev#1182 keys owned pages by their physical page, but the count of tiles to take (from the
xcl-dev#1985/xcl-dev#1663 batch code) still looked pages up by address: a page already shared through its
physical page was counted as missing, and a new one not, so fresh_iter ran dry and the
title aborted at vram.rs:789 in the first XCLM run (49 s, menus).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@throny throny added the goal:world-load Bears on the retail title getting past world loading label Nov 25, 2026
@n-romanovich
n-romanovich force-pushed the vram/reclaim-tiles-on-oom branch from c2ae579 to 24e5eb3 Compare November 25, 2026 10:58
@Adika713

Copy link
Copy Markdown
Contributor

The current no-GPU CI failure on head 24e5eb3 is a test-only stale API rename, not a failure in the reclaim change. I reproduced it locally at the exact PR head with cargo test --workspace --locked --no-run: two E0599 errors at crates/xcl/src/hle/d3d12x/vram.rs:1872-1873, because TilePool::add_heap was replaced upstream by add_heap_at(slot, pool_pages).

A two-line replacement fixes the build and preserves the test setup:

pool.add_heap_at(0, 2);
pool.add_heap_at(1, 3);
Verified locally on the exact head 24e5eb3:

Before: cargo test --workspace --locked --no-run failed with E0599 at vram.rs:1872:25 and 1873:25; the compiler suggested add_heap_at.
After the two-line change: cargo test --workspace --locked --no-run exited 0.
After the two-line change: cargo test -p xcl --lib hle::d3d12x::vram::tests::reclaim_for_oom_drains_cooling_and_idle_pages -- --exact --nocapture reported 1 passed, 0 failed.
Only the two pre-existing Atomic::fetch_update deprecation warnings were emitted.
No retail-title smoke, GPU run, or full test suite was performed for this comment; this only verifies that the stale test calls compile and the focused reclaim test passes. I did not push a competing branch or change the PR.

AI use: OpenCode with Big Pickle reproduced the compiler failure, applied the two-line local verification patch, and drafted this comment. Please verify before applying.

When CreateHeap fails with E_OUTOFMEMORY in Pages::take_tile, wait for Pages::fence and reclaim already-cooling tiles (oldest first) or force-evict the oldest still-idle page before failing. If waiting on the fence fails or times out, do not reclaim potentially in-flight tiles.

Assisted-by: Antigravity (Claude Sonnet 5.5)
@n-romanovich
n-romanovich force-pushed the vram/reclaim-tiles-on-oom branch from 24e5eb3 to bdcc0eb Compare November 25, 2026 14:02
@thehollowedone

Copy link
Copy Markdown

Independent Windows check of bdcc0eb. 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 built and passed the stock reclaim test. The workspace suite finished with 1,226 passed, 2 failed, 46 ignored, including 25 runtime skips. Both failures were the older shader-cache marker and UAV format expectations already corrected on main by 0d13b07.
  • I tried a local follow-up that keeps idle pages the incoming placement has already counted as reusable. A CPU regression verified that reclamation frees unrelated pages and leaves the overlapping pages available for ordinary expiry. Removing the preservation check failed that regression.
  • On the same local follow-up, a native D3D12 test used a two-tile heap and simulated failure to allocate another heap. The retry preserved the overlapping tile, mapped the unrelated idle tile at the new address, and completed with a healthy device. All three focused tests passed with zero skips. The patched integration onto main 06c9f55 built and finished with 1,267 passed, 0 failed, 46 ignored, including 26 runtime skips.

Commands: cargo build --offline --locked --workspace -j 6, cargo test --offline --locked --workspace -j 6 --no-fail-fast -- --test-threads=4 --nocapture, and cargo test --offline --locked -p xcl --lib -j 6 -- --test-threads=1 --nocapture oom_reclaim reclaim_for_oom. Synthetic inputs only. No real VRAM exhaustion or retail run.

AI-assisted. Codex (GPT-6, exact variant unavailable) wrote the local follow-up and fixture, ran the tests and drafted this report.

@Lum7nt

Lum7nt commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Tested on \�dcc0ebe47316ad219212d28435c26a7833f239f\ (\�dcc0eb, clean PR head) and merged onto \origin/main\ \3ceb550:

  • Hardware / OS / Toolchain: NVIDIA GeForce RTX 3060 12 GB (driver \32.0.15.8142\ / 581.42, wave32), Intel Core i5-10400, Windows 11 (NT \10.0.22631.0),
    ustc 1.100.0\ (\x86_64-pc-windows-msvc), debug profile, \XCL_ADAPTER=nvidia.
  • Focused run on \�dcc0eb\ (\cargo test -p xcl --lib reclaim_for_oom -- --nocapture): 1 passed, 0 failed, 0 ignored (
    eclaim_for_oom_drains_cooling_and_idle_pages).
  • Merge check with \origin/main\ \3ceb550\ (\git merge origin/main): merges cleanly without conflicts; \cargo test -p xcl --lib hle::d3d12x::vram::tests -- --nocapture\ passes 20 passed, 0 failed, 1 ignored (\churn_update_tile_mappings_timing\ ignored).

Review note on \origin/main\ \3ceb550\ compatibility (#2275):

Not tested

  • Full workspace suite on \�dcc0eb, live OOM reproduction under \CreateHeap\ \E_OUTOFMEMORY, AMD / Intel GPUs, Linux / Wine, and \scripts/smoke.ps1\ (no retail title folder here).

AI use

@futurepro62

Copy link
Copy Markdown

NVIDIA and AMD full-suite run of head bdcc0ebe, on its own base 5478c4a and merged with current main b49be183, to go with the reports above by Lum7nt, thehollowedone, since none of them covers AMD. On its base, the 3 failures come from changes made on main after that base (#2245 and ea088a5); merged with main, both cards pass. The bare-head runs come first.

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, DXC + dxil.dll 1.9.2602.17 (Windows SDK 10.0.26100), debug, D3D12 debug layer installed.
  • cargo build --workspace, then XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu --skip gpu::recomp::lower_dxil::tests::mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu --skip gpu::dxil::fuzz_tests: 1152 passed, 2 failed, 24 ignored. SKIPPED (no wave64): a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu, a_per_lane_2d_or_3d_group_runs_on_the_gpu, coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu, cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu, gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware, the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu.
  • Failed: gpu::recomp::pso::shader_cache_tests::rerouted_disk_entries_follow_the_direct_translator, hle::d3d12x::device_x::tests::pc_resource_desc_strips_uav_on_unsupported_formats_and_msaa. (stale on this base, fixed on main by Tests: two expectations that no longer match the code #2245; see the merged run below)
  • The new tests ran and passed: reclaim_for_oom_drains_cooling_and_idle_pages.
  • Same head on the AMD Radeon integrated GPU (iGPU) of the Ryzen 7 9800X3D (RDNA2, XCL_ADAPTER=radeon), cargo test --workspace -- --test-threads=4 --skip gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1: 1161 passed, 3 failed, 26 ignored. SKIPPED: f16_programs_on_the_gpu (f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426 semantics differ from the console's))), f16_programs_on_the_gpu (f16 arithmetic, wave64, per-lane form: refused (unsupported V_MUL_F16 (its gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426 semantics differ from the console's))), f16_programs_on_the_gpu (f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426 semantics differ from the console's))), f16_programs_on_the_gpu (f16 packed, wave64, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426 semantics differ from the console's))), f32_programs_on_the_gpu (f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426 semantics differ from the console's))), f32_programs_on_the_gpu (f32 conversions, wave64, per-lane form: refused (unsupported V_CVT_F16_F32 (its gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426 semantics differ from the console's))).
  • --skip leaves out tests that fail on main b49be183 too, not because of this PR. On NVIDIA: heap_window_out_of_memory_falls_back_to_the_switch_form (Tests: heap_window_out_of_memory_falls_back_to_the_switch_form fails under XCL_REQUIRE_GPU=mesh (opt-in skip counted as missing coverage) #1651), the four gpu::recomp::lower_dxil::tests::*_programs_on_the_gpu tests, const_and_null_mask_operands_agree_with_hlsl_on_the_gpu and mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu (follow-up on #1651) fail because runner::skip_test turns their skips into failures under XCL_REQUIRE_GPU=mesh, and gpu::dxil::fuzz_tests seeds 70, 545, 1019 and 1507 fail CreateComputePipelineState with E_OUTOFMEMORY on this card (drivers 616.64 and 621.40). On AMD: fuzz_validate_and_gpu_1 fails on seed 540 (res[833] 0x7 vs CPU 0x6). The AMD run does not set XCL_REQUIRE_GPU.
  • AMD failures on this base: rerouted_disk_entries_follow_the_direct_translator (Tests: two expectations that no longer match the code #2245), gpu_image_get_resinfo_past_last_level (ea088a5), pc_resource_desc_strips_uav_on_unsupported_formats_and_msaa (Tests: two expectations that no longer match the code #2245).
  • Merged with main b49be183 (git merge --no-ff, clean, local only): NVIDIA XCL_REQUIRE_GPU=mesh cargo test --workspace with the same skips: 1424 passed, 0 failed, 45 ignored; AMD Radeon iGPU (XCL_ADAPTER=radeon, same skips): 1435 passed, 0 failed, 47 ignored.

Not tested

  • a release build, a game (test run only).

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.

@DavidM1911

Copy link
Copy Markdown
Contributor

Re-verification on RTX 3060 Ti (Windows 11), new head merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.

Thanks!

— Devin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

goal:world-load Bears on the retail title getting past world loading

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants