D3D12.X: ignore console DCC-only ClearRenderTargetView sentinel #3249

Open
Kalmarv wants to merge 1 commit from upstream-pr/3249 into main
Kalmarv commented 2026-11-29 00:56:58 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Kalmarv on 2026-11-29T00:56:58Z.


Ignore Xbox's DCC-metadata-only ClearRenderTargetView sentinel (NumRects == u32::MAX with pRects == NULL) instead of forwarding it to PC D3D12.

On console D3D12.X, calling ClearRenderTargetView with NumRects = 0xFFFFFFFF and a null pRects pointer resets only MSAA DCC compression metadata without modifying colour texels. Forwarding (u32::MAX, null) verbatim to PC ID3D12GraphicsCommandList::ClearRenderTargetView dereferences a null rect array and crashes the process (0xc0000005). Because PC D3D12 manages compression metadata internally, returning early preserves the render target's colour and avoids the crash.

What is in it

  • crates/xcl/src/hle/d3d12x/real.rs: return early in cl_clear_rtv when n == u32::MAX && rects.is_null(); add child-process WARP test clear_rtv_tests::cl_clear_rtv_ignores_console_dcc_sentinel_and_preserves_color (crashes before the fix; passes and reads back [64, 128, 191, 255] unchanged after).

Tested

  • Hardware / toolchain: NVIDIA GeForce RTX 5070 Ti (driver 32.0.16.1074), AMD Ryzen 9 9950X, Windows 11 Pro (build 26200), rustc 1.99.0 (b940084d7 2026-09-28), DXC 1.9 (XCL_DXC_DIR), debug for tests and release for xcl-smoke.
  • Targeted test (cargo test -p xcl --lib -- cl_clear_rtv_ignores_console_dcc_sentinel_and_preserves_color --nocapture): failed before the fix (child crashed inside PC ClearRenderTargetView), 1 passed / 0 failed after.
  • Full workspace (cargo test --workspace -- --test-threads=4 --skip test_title_runs_and_game_folder_is_untouched --skip uma_driver::tests::): 2600 passed, 0 failed, 49 ignored.
  • SKIPPED GPU tests on this adapter (26 total): 21 no wave64 (RTX 5070 Ti is wave32), 3 wave32 per-lane #1426 f16/cvt-f16 refusals, 2 no heap windows (opt-in XCL_HEAP_WINDOWS=1).
  • Retail title (ea3b5e4d) 150 s regression run below (0 device removals, 0 crashes, 1574 frames vs 1695 on main, 32994 MB peak commit vs 31546 MB on main).

Regression run

xcl-smoke v1
commit: f0e8fdd5c3942ddd399d5ee11384c8595c5aacff
gpu: NVIDIA GeForce RTX 5070 Ti
title: ea3b5e4d
seconds: 150
exit: 0x0
frames shown: 1695 (PresentX 1695)
presents per 2 s (last 3): 0 0 0
device removals: 0
crashes: 0
peak commit: 31546 MB
xcl-smoke v1
commit: 6e0a36afda5cdca079b97c01d7a625f31ff497d2
gpu: NVIDIA GeForce RTX 5070 Ti
title: ea3b5e4d
seconds: 150
exit: 0x0
frames shown: 1574 (PresentX 1574)
presents per 2 s (last 3): 0 0 0
device removals: 0
crashes: 0
peak commit: 32994 MB

Not tested

  • AMD RDNA / wave64 GPUs and retail titles that invoke the NumRects == u32::MAX sentinel (the ea3b5e4d smoke is a regression check only; sentinel handling is verified by the WARP device test).
  • uma_driver::tests:: (skipped locally due to pre-existing 0x7C10003 exit on NVIDIA) and test_title_runs_and_game_folder_is_untouched.

AI use

  • Antigravity (Gemini) used for root-cause verification, implementation, test authoring, and local verification; all diffs, tests, and smoke outputs reviewed and run locally.
<!-- greyfinch-sync:ivall/xcl:issue:5546228197 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3249). Originally posted by [Kalmarv](https://github.com/Kalmarv) on 2026-11-29T00:56:58Z. --- Ignore Xbox's DCC-metadata-only `ClearRenderTargetView` sentinel (`NumRects == u32::MAX` with `pRects == NULL`) instead of forwarding it to PC D3D12. On console D3D12.X, calling `ClearRenderTargetView` with `NumRects = 0xFFFFFFFF` and a null `pRects` pointer resets only MSAA DCC compression metadata without modifying colour texels. Forwarding `(u32::MAX, null)` verbatim to PC `ID3D12GraphicsCommandList::ClearRenderTargetView` dereferences a null rect array and crashes the process (`0xc0000005`). Because PC D3D12 manages compression metadata internally, returning early preserves the render target's colour and avoids the crash. **What is in it** - `crates/xcl/src/hle/d3d12x/real.rs`: return early in `cl_clear_rtv` when `n == u32::MAX && rects.is_null()`; add child-process WARP test `clear_rtv_tests::cl_clear_rtv_ignores_console_dcc_sentinel_and_preserves_color` (crashes before the fix; passes and reads back `[64, 128, 191, 255]` unchanged after). **Tested** - Hardware / toolchain: NVIDIA GeForce RTX 5070 Ti (driver 32.0.16.1074), AMD Ryzen 9 9950X, Windows 11 Pro (build 26200), `rustc 1.99.0 (b940084d7 2026-09-28)`, DXC 1.9 (`XCL_DXC_DIR`), debug for tests and release for `xcl-smoke`. - Targeted test (`cargo test -p xcl --lib -- cl_clear_rtv_ignores_console_dcc_sentinel_and_preserves_color --nocapture`): failed before the fix (child crashed inside PC `ClearRenderTargetView`), 1 passed / 0 failed after. - Full workspace (`cargo test --workspace -- --test-threads=4 --skip test_title_runs_and_game_folder_is_untouched --skip uma_driver::tests::`): 2600 passed, 0 failed, 49 ignored. - `SKIPPED` GPU tests on this adapter (26 total): 21 `no wave64` (RTX 5070 Ti is wave32), 3 wave32 per-lane `#1426` f16/cvt-f16 refusals, 2 `no heap windows` (opt-in `XCL_HEAP_WINDOWS=1`). - Retail title (`ea3b5e4d`) 150 s regression run below (`0` device removals, `0` crashes, `1574` frames vs `1695` on `main`, `32994 MB` peak commit vs `31546 MB` on `main`). **Regression run** ``` xcl-smoke v1 commit: f0e8fdd5c3942ddd399d5ee11384c8595c5aacff gpu: NVIDIA GeForce RTX 5070 Ti title: ea3b5e4d seconds: 150 exit: 0x0 frames shown: 1695 (PresentX 1695) presents per 2 s (last 3): 0 0 0 device removals: 0 crashes: 0 peak commit: 31546 MB ``` ``` xcl-smoke v1 commit: 6e0a36afda5cdca079b97c01d7a625f31ff497d2 gpu: NVIDIA GeForce RTX 5070 Ti title: ea3b5e4d seconds: 150 exit: 0x0 frames shown: 1574 (PresentX 1574) presents per 2 s (last 3): 0 0 0 device removals: 0 crashes: 0 peak commit: 32994 MB ``` **Not tested** - AMD RDNA / wave64 GPUs and retail titles that invoke the `NumRects == u32::MAX` sentinel (the `ea3b5e4d` smoke is a regression check only; sentinel handling is verified by the WARP device test). - `uma_driver::tests::` (skipped locally due to pre-existing `0x7C10003` exit on NVIDIA) and `test_title_runs_and_game_folder_is_untouched`. **AI use** - Antigravity (Gemini) used for root-cause verification, implementation, test authoring, and local verification; all diffs, tests, and smoke outputs reviewed and run locally.
Foniass commented 2026-11-29 14:57:05 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-11-29T14:57:05Z.


merge-check
base: fa204595a488c60c6c5f905244f0172072c9c2a9
head: 6e0a36afda5cdca079b97c01d7a625f31ff497d2
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2605 passed, 4 failed, 49 ignored; SKIPPED: 44; failing: gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0..3 (driver E_OUTOFMEMORY at seeds 70/545/1019/1507; they fail on base on this machine too)
review: turns a sure fault (u32::MAX handle with a null pointer) into a no-op; low risk. Nothing sources the "DCC-only" meaning of the sentinel. The PR's own suite run skipped the e2e test (this run covers it), and AI use names no model.
performance: 60 s smoke on the merged tree: 1669 frames (99.3 %), peak commit 17861 MB (105.3 %), no removal, no crash
verdict: safe to merge
hardware / tool and model: RTX 5070 Ti (driver 32.0.16.2114), Ryzen 7 7800X3D, Windows 11 26300 / Claude Code with Claude Opus 5.5

Merge-check run and written with Claude Code (Claude Opus 5.5): a test merge onto the base above, the full suite, and a 60 s scripts/smoke.ps1 run of a retail title against main on the same machine. The 4 fuzz_validate_and_gpu_* failures happen on main on this machine too.

<!-- greyfinch-sync:ivall/xcl:comment:7257702244 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3249#issuecomment-7257702244). Originally posted by [Foniass](https://github.com/Foniass) on 2026-11-29T14:57:05Z. --- ```text merge-check base: fa204595a488c60c6c5f905244f0172072c9c2a9 head: 6e0a36afda5cdca079b97c01d7a625f31ff497d2 merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2605 passed, 4 failed, 49 ignored; SKIPPED: 44; failing: gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0..3 (driver E_OUTOFMEMORY at seeds 70/545/1019/1507; they fail on base on this machine too) review: turns a sure fault (u32::MAX handle with a null pointer) into a no-op; low risk. Nothing sources the "DCC-only" meaning of the sentinel. The PR's own suite run skipped the e2e test (this run covers it), and AI use names no model. performance: 60 s smoke on the merged tree: 1669 frames (99.3 %), peak commit 17861 MB (105.3 %), no removal, no crash verdict: safe to merge hardware / tool and model: RTX 5070 Ti (driver 32.0.16.2114), Ryzen 7 7800X3D, Windows 11 26300 / Claude Code with Claude Opus 5.5 ``` Merge-check run and written with Claude Code (Claude Opus 5.5): a test merge onto the base above, the full suite, and a 60 s `scripts/smoke.ps1` run of a retail title against main on the same machine. The 4 `fuzz_validate_and_gpu_*` failures happen on main on this machine too.
fromthemoonx commented 2026-12-01 18:29:55 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by fromthemoonx on 2026-12-01T18:29:55Z.


merge-check
base: 6bfb5c5153
head: 6e0a36afda
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2905 passed, 0 failed, 51 ignored (base: 2904 passed, 0 failed, 51 ignored); SKIPPED: 25 (22 no wave64, 2 no heap windows, 1 no GPU_UPLOAD heaps), the same set as base; failing: none
review: read the whole diff (real.rs, +140 -1). No correctness problem found.

  • cl_clear_rtv returns before forwarding when n == u32::MAX && rects.is_null(). Forwarded, that call reads a null rect array.
  • hle::d3d12x::real::clear_rtv_tests::cl_clear_rtv_ignores_console_dcc_sentinel_and_preserves_color: 3 of 3 passed. Its child run on WARP passes (not skipped) when run with --nocapture.
  • Mutation: the early return off (if false && ...) fails the test 3 of 3: the child process does not exit cleanly and the parent's assert!(output.status.success()) fails (real.rs:11415). Good.
  • Minor: the parent passes when the child skips (no WARP). The child's SKIPPED line stays in the captured output, so a skip is not visible in a suite run.
  • Foniass's note stands: nothing in the PR sources the console meaning of the sentinel. The change only stops a certain fault, so it is safe either way.
  • No retail title on this machine: a title that issues this call was not run here.
    performance: none: one comparison per ClearRenderTargetView.
    verdict: safe to merge
    hardware / tool and model: RTX 3060 12 GB (610.88), Ryzen 7 5700X, Windows 11 Pro 26300 / Claude Code (Claude Opus 5.5)
<!-- greyfinch-sync:ivall/xcl:comment:7321041193 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3249#issuecomment-7321041193). Originally posted by [fromthemoonx](https://github.com/fromthemoonx) on 2026-12-01T18:29:55Z. --- merge-check base: 6bfb5c5153ccc23517daf30aa1071ddb0fadb53c head: 6e0a36afda5cdca079b97c01d7a625f31ff497d2 merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2905 passed, 0 failed, 51 ignored (base: 2904 passed, 0 failed, 51 ignored); SKIPPED: 25 (22 no wave64, 2 no heap windows, 1 no GPU_UPLOAD heaps), the same set as base; failing: none review: read the whole diff (`real.rs`, +140 -1). No correctness problem found. - `cl_clear_rtv` returns before forwarding when `n == u32::MAX && rects.is_null()`. Forwarded, that call reads a null rect array. - `hle::d3d12x::real::clear_rtv_tests::cl_clear_rtv_ignores_console_dcc_sentinel_and_preserves_color`: 3 of 3 passed. Its child run on WARP passes (not skipped) when run with `--nocapture`. - Mutation: the early return off (`if false && ...`) fails the test 3 of 3: the child process does not exit cleanly and the parent's `assert!(output.status.success())` fails (`real.rs:11415`). Good. - Minor: the parent passes when the child skips (no WARP). The child's `SKIPPED` line stays in the captured output, so a skip is not visible in a suite run. - Foniass's note stands: nothing in the PR sources the console meaning of the sentinel. The change only stops a certain fault, so it is safe either way. - No retail title on this machine: a title that issues this call was not run here. performance: none: one comparison per `ClearRenderTargetView`. verdict: safe to merge hardware / tool and model: RTX 3060 12 GB (610.88), Ryzen 7 5700X, Windows 11 Pro 26300 / Claude Code (Claude Opus 5.5)
Decodere commented 2026-12-02 10:40:36 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Decodere on 2026-12-02T10:40:36Z.


merge-check
base: 1c8b551475
head: 6e0a36afda
merge: clean (trial-merge commit f3a65ffbdbaf9decb6f09083167964df69b00d97, git diff --check clean)
build: cargo build --workspace ok; cargo build --release -p xcl ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 --nocapture (43 targets): 2910 passed, 0 failed, 51 ignored (+1 new test vs main baseline). Targeted new test hle::d3d12x::real::clear_rtv_tests::cl_clear_rtv_ignores_console_dcc_sentinel_and_preserves_color passed with 0 skips. 28 SKIPPED lines (host environment only: 22 no wave64, 2 no d3d12SDKLayers.dll, 1 no D3D12 debug layer, 2 no heap windows, 1 cannot disable the driver cache (Windows Developer Mode required)).
review: Read the full merged diff (+140/-1 in crates/xcl/src/hle/d3d12x/real.rs). Early-returns in cl_clear_rtv when n == u32::MAX && rects.is_null(), dropping the console DCC-metadata-only clear sentinel before it can fault PC ClearRenderTargetView on a null rect array while leaving normal full-RT clears (n == 0) and explicit rect clears untouched. The new subprocess WARP test clears an RGBA8 render target to [0.25, 0.5, 0.75, 1.0] through cl_clear_rtv, issues the (u32::MAX, null) sentinel with zero color, and verifies readback preserves [64, 128, 191, 255]. Minimal, exact, no scope creep or UB.
performance: 60 s retail smoke (title: 29640639): 1648 frames (+12.7% vs 1c8b5514 baseline 1462 frames), 14670 MB peak commit (-8.6% vs 16043 MB baseline), 0 device removals, 0 crashes.

xcl-smoke v1
commit: f3a65ffbdbaf9decb6f09083167964df69b00d97
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1648 (PresentX 1648)
presents per 2 s (last 3): 61 60 60
device removals: 0
crashes: 0
peak commit: 14670 MB

verdict: safe to merge
hardware / tool and model: NVIDIA GeForce RTX 4060 8 GB (driver 621.40), Intel Core i5-11400F, 32 GB RAM, Windows 11 Build 26200, Rust 1.100.1 MSVC, DXC 1.9.2602.17 / Antigravity (Gemini 4 Neon)

<!-- greyfinch-sync:ivall/xcl:comment:7342818704 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3249#issuecomment-7342818704). Originally posted by [Decodere](https://github.com/Decodere) on 2026-12-02T10:40:36Z. --- merge-check base: 1c8b551475e1e7bfe48f94448492a4c3544a2e0f head: 6e0a36afda5cdca079b97c01d7a625f31ff497d2 merge: clean (trial-merge commit f3a65ffbdbaf9decb6f09083167964df69b00d97, git diff --check clean) build: cargo build --workspace ok; cargo build --release -p xcl ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 --nocapture (43 targets): 2910 passed, 0 failed, 51 ignored (+1 new test vs main baseline). Targeted new test hle::d3d12x::real::clear_rtv_tests::cl_clear_rtv_ignores_console_dcc_sentinel_and_preserves_color passed with 0 skips. 28 SKIPPED lines (host environment only: 22 no wave64, 2 no d3d12SDKLayers.dll, 1 no D3D12 debug layer, 2 no heap windows, 1 cannot disable the driver cache (Windows Developer Mode required)). review: Read the full merged diff (+140/-1 in crates/xcl/src/hle/d3d12x/real.rs). Early-returns in `cl_clear_rtv` when `n == u32::MAX && rects.is_null()`, dropping the console DCC-metadata-only clear sentinel before it can fault PC `ClearRenderTargetView` on a null rect array while leaving normal full-RT clears (`n == 0`) and explicit rect clears untouched. The new subprocess WARP test clears an RGBA8 render target to `[0.25, 0.5, 0.75, 1.0]` through `cl_clear_rtv`, issues the `(u32::MAX, null)` sentinel with zero color, and verifies readback preserves `[64, 128, 191, 255]`. Minimal, exact, no scope creep or UB. performance: 60 s retail smoke (title: 29640639): 1648 frames (+12.7% vs 1c8b5514 baseline 1462 frames), 14670 MB peak commit (-8.6% vs 16043 MB baseline), 0 device removals, 0 crashes. ``` xcl-smoke v1 commit: f3a65ffbdbaf9decb6f09083167964df69b00d97 gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1648 (PresentX 1648) presents per 2 s (last 3): 61 60 60 device removals: 0 crashes: 0 peak commit: 14670 MB ``` verdict: safe to merge hardware / tool and model: NVIDIA GeForce RTX 4060 8 GB (driver 621.40), Intel Core i5-11400F, 32 GB RAM, Windows 11 Build 26200, Rust 1.100.1 MSVC, DXC 1.9.2602.17 / Antigravity (Gemini 4 Neon)
Foniass commented 2026-12-03 15:25:05 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-03T15:25:05Z.


merge-check
base: 16c2fd082a
head: 6e0a36afda
merge: clean
build: ok
tests: 3013 passed, 0 failed, 56 ignored; 28 skipped, the same as on main
review: 4 medium, 1 nit (below)
performance: 60 s smoke run: 1683 → 1658 frames (98 % of main), peak commit 18505 → 18661 MB, no device removal, no crash
title run: retail title on the RTX 5070 Ti (driver 621.14), into the world by scripted presses: 231 s there, 0 device removals, 0 crashes, 3.7 presents/s; run with XCL_SKIP_CS=95cc13288a27a96e (the NVIDIA hang at the end of loading, #3541) and NVIDIA's 2048 MB shader heap (#2590)
verdict: safe to merge: no blocking finding (the points below are medium or nits), the suite passes and the smoke run is clean
hardware / tool and model: RTX 5070 Ti (driver 621.14), Ryzen 7 7800X3D, Windows 11 26300 / Claude Code with Claude Opus 5.5


In short: ClearRenderTargetView with NumRects == u32::MAX and a null rect pointer now returns before reaching the PC, where it read a null rect array and crashed. The head has not moved since my last merge-check (safe to merge), and two later merge-checks also say safe to merge. Nothing blocks it; the open points are evidence and visibility.

Medium

  1. The console meaning of the sentinel has no source. Nothing in the PR or the repo sources the claim that (u32::MAX, null) clears only DCC metadata and leaves the texels. If it is in fact a metadata fast clear, the console would read the target as the clear colour, and dropping the call would keep stale contents. Either way it no longer faults, but real.rs ~11035 should say the meaning is assumed, or name where it comes from.
  2. The dropped clear leaves no trace in the log. The early return (real.rs ~11035) comes before capture::op and the XCL_TRACE_FRAME / lut3d notes, so a title that issues this call shows nothing in logs or captures. A one-time xlog_info would make a wrong guess about the sentinel easy to spot.
  3. The test passes silently when its child skips. The parent asserts only output.status.success(). When the child calls skip_test("no WARP adapter" / "no WARP device"), its SKIPPED line stays in the captured stdout, so a suite run shows a pass. Forward the child's output, or call skip_test in the parent when the child reports a skip.
  4. AI use names no exact model. "Antigravity (Gemini)" gives no model version; AGENTS.md and CONTRIBUTING ask for the exact model name.

Nit

  1. The PR's own suite run left tests out. Tested skips test_title_runs_and_game_folder_is_untouched and uma_driver::tests::. My merge-check covered the whole suite, so this only means the description is incomplete.
Checked and fine
  • Normal clears (n == 0, or explicit rects) take the old path unchanged
  • The WARP child-process test fails without the early return and reads back [64, 128, 191, 255] with it (also confirmed by fromthemoonx's mutation run)
  • One logical change, +140/-1, merges cleanly into current main
How this was tested
  • Merged onto main 16c2fd08, then cargo build --workspace and cargo test --workspace --no-fail-fast -- --test-threads=4.
  • The skipped GPU tests are those this card can't run (no wave64 on NVIDIA, no D3D12 debug layer, and similar).
  • scripts/smoke.ps1: 60 s of a retail title on main 16c2fd08 and on this merge; presents per 2 s at the end: 60 60 60.
  • Title run: the release build of this merge launched the retail title with XCL_RUN_SECONDS=300 and scripted A presses counted from the first frame (XCL_PRESS_BASE=frame, #3712) into the world from an existing save; time in the world is counted from the first in-world draw call to the end of the run.

Written by Claude Code (Claude Opus 5.5) and posted by Foniass without a human check of each point.

<!-- greyfinch-sync:ivall/xcl:comment:7383106060 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3249#issuecomment-7383106060). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-03T15:25:05Z. --- merge-check base: 16c2fd082ae2e96967a2ab553bc2e1032e491f70 head: 6e0a36afda5cdca079b97c01d7a625f31ff497d2 merge: clean build: ok tests: 3013 passed, 0 failed, 56 ignored; 28 skipped, the same as on main review: 4 medium, 1 nit (below) performance: 60 s smoke run: 1683 → 1658 frames (98 % of main), peak commit 18505 → 18661 MB, no device removal, no crash title run: retail title on the RTX 5070 Ti (driver 621.14), into the world by scripted presses: 231 s there, 0 device removals, 0 crashes, 3.7 presents/s; run with `XCL_SKIP_CS=95cc13288a27a96e` (the NVIDIA hang at the end of loading, #3541) and NVIDIA's 2048 MB shader heap (#2590) verdict: safe to merge: no blocking finding (the points below are medium or nits), the suite passes and the smoke run is clean hardware / tool and model: RTX 5070 Ti (driver 621.14), Ryzen 7 7800X3D, Windows 11 26300 / Claude Code with Claude Opus 5.5 --- **In short:** ClearRenderTargetView with NumRects == u32::MAX and a null rect pointer now returns before reaching the PC, where it read a null rect array and crashed. The head has not moved since my last merge-check (safe to merge), and two later merge-checks also say safe to merge. Nothing blocks it; the open points are evidence and visibility. #### Medium 1. **The console meaning of the sentinel has no source.** Nothing in the PR or the repo sources the claim that (u32::MAX, null) clears only DCC metadata and leaves the texels. If it is in fact a metadata fast clear, the console would read the target as the clear colour, and dropping the call would keep stale contents. Either way it no longer faults, but real.rs ~11035 should say the meaning is assumed, or name where it comes from. 2. **The dropped clear leaves no trace in the log.** The early return (real.rs ~11035) comes before capture::op and the XCL_TRACE_FRAME / lut3d notes, so a title that issues this call shows nothing in logs or captures. A one-time xlog_info would make a wrong guess about the sentinel easy to spot. 3. **The test passes silently when its child skips.** The parent asserts only output.status.success(). When the child calls skip_test("no WARP adapter" / "no WARP device"), its SKIPPED line stays in the captured stdout, so a suite run shows a pass. Forward the child's output, or call skip_test in the parent when the child reports a skip. 4. **AI use names no exact model.** "Antigravity (Gemini)" gives no model version; AGENTS.md and CONTRIBUTING ask for the exact model name. #### Nit 5. **The PR's own suite run left tests out.** Tested skips test_title_runs_and_game_folder_is_untouched and uma_driver::tests::. My merge-check covered the whole suite, so this only means the description is incomplete. <details><summary>Checked and fine</summary> - Normal clears (n == 0, or explicit rects) take the old path unchanged - The WARP child-process test fails without the early return and reads back [64, 128, 191, 255] with it (also confirmed by fromthemoonx's mutation run) - One logical change, +140/-1, merges cleanly into current main </details> <details><summary>How this was tested</summary> - Merged onto main `16c2fd08`, then `cargo build --workspace` and `cargo test --workspace --no-fail-fast -- --test-threads=4`. - The skipped GPU tests are those this card can't run (no wave64 on NVIDIA, no D3D12 debug layer, and similar). - `scripts/smoke.ps1`: 60 s of a retail title on main `16c2fd08` and on this merge; presents per 2 s at the end: 60 60 60. - Title run: the release build of this merge launched the retail title with `XCL_RUN_SECONDS=300` and scripted A presses counted from the first frame (`XCL_PRESS_BASE=frame`, #3712) into the world from an existing save; time in the world is counted from the first in-world draw call to the end of the run. </details> <sub>Written by Claude Code (Claude Opus 5.5) and posted by Foniass without a human check of each point.</sub>
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/3249:upstream-pr/3249'
git switch 'upstream-pr/3249'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/3249'
git switch 'upstream-pr/3249'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/3249'
git switch 'upstream-pr/3249'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/3249'
git switch 'main'
git merge --squash 'upstream-pr/3249'
git switch 'main'
git merge --ff-only 'upstream-pr/3249'
git switch 'main'
git merge 'upstream-pr/3249'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!3249
No description provided.