d3d12-gpu: keep depth stage active on WARP for bounds-only pipelines (D3D12-DEPTH-BOUNDS-TEST-FLAKE) #2663

Merged
zmasi merged 21 commits from upstream-pr/2663 into main 2026-12-02 01:16:53 +00:00
zmasi commented 2026-11-30 00:16:19 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-30T00:16:19Z.


Claimed in the coordination issue as: D3D12-DEPTH-BOUNDS-TEST-FLAKE (https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7264381245)

What and why

Fixes the failure in pipeline::host::tests::depth_bounds_pipeline_loads_and_filters_draws (depth 0.5 outside [0.6, 1.0] must be rejected, returning 255 instead of 0 — the sole failing test in #2648's d3d12 (windows-latest) job and reported in https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7263423389):

  1. Keep depth-stencil active when DepthBoundsTestEnable is used without DepthEnable (d3d12/crates/leonida-gpu/src/pipeline/host.rs):
    • When DepthBoundsTestEnable is true with DepthEnable == false and StencilEnable == false, Microsoft WARP (d3d10warp.dll, used on CPU-only hosts and windows-latest CI runners) bypasses the depth-stencil stage on direct DEPTH_STENCIL1 PSOs and passes fragments (20/20 deterministic failures even for impossible intervals such as [-2.0, -1.0] and [2.0, 3.0]).
    • effective_depth_bounds_desc (applied in GraphicsState::depth1 for both graphics and mesh pipelines and in graphics_depth_bounds_pipeline) promotes DepthBoundsTestEnable && !DepthEnable && dsv_format != DXGI_FORMAT_UNKNOWN to DepthEnable = true, DepthWriteMask = D3D12_DEPTH_WRITE_MASK_ZERO, DepthFunc = D3D12_COMPARISON_FUNC_ALWAYS.
    • This comparison is a mathematical no-op on depth testing and depth writes (and valid with D3D12_DSV_FLAG_READ_ONLY_DEPTH read-only DSVs under the D3D12 debug layer) while forcing WARP and early-Z-gated drivers to fetch the DSV and evaluate [MinDepthBounds, MaxDepthBounds]. When DSVFormat == DXGI_FORMAT_UNKNOWN, DepthEnable stays false; when DepthEnable is already true, the caller's DepthFunc and DepthWriteMask are preserved unchanged.
    • GraphicsState::screen_pass also excludes self.depth_bounds, and GraphicsState::describe distinguishes normalized bounds-only state (depth-bounds-always) so pre-existing pipeline-library caches do not collide on StorePipeline (0 changes in d3d12/crates/leonida-gpu/src/host.rs).
  2. Isolate test RTV/DSV descriptors, pre-cut clears, and SM 6.0 WARP profiles (d3d12/crates/leonida-gpu/src/pipeline/host.rs):
    • Allocates dedicated 1-descriptor RTV and DSV heaps in depth_bounds_pipeline_loads_and_filters_draws instead of sharing Host::rtv / Host::dsv's lock-free RTV_RING across ~550+ concurrent tests, records the target clears on first_list ahead of the command-list cut, and compiles synthetic test shaders as vs_6_0 / ps_6_0 behind device_supports_depth_bounds_sm60 so SM 6.2 WARP (Windows 10 22H2) runs both fixtures cleanly.
    • Adds depth_bounds_without_depth_test_enables_noop_always_depth_only_with_dsv and depth_bounds_without_depth_test_filters_on_warp_and_in_parallel, which explicitly enumerates warp_adapter() alongside host() and runs 4-thread concurrent writable and read-only DSV depth-bounds draws on every cargo test -p leonida-gpu --lib run.
    • Independent failure modes note: These two fixes are independent. effective_depth_bounds_desc is proven deterministically load-bearing by the new parallel WARP fixture (which fails 255 vs 0 on writable and read-only DSVs whenever the promotion is reverted), whereas on WARP 10.0.26100.9711 (@KelboLive) the original depth_bounds_pipeline_loads_and_filters_draws still passes with the promotion reverted while other WARP builds reproduce 255 vs 0 under LEONIDA_D3D12_WARP=1 — meaning the original CI failure could also stem from the shared RTV_RING / post-cut clear race fixed here rather than depth state alone.
  3. Re-enable depth_bounds_pipeline_loads_and_filters_draws in CI (.github/workflows/d3d12.yml):
    • Drops -- --skip depth_bounds_pipeline_loads_and_filters_draws from .github/workflows/d3d12.yml (per the comment left in #2648 for #2663) so d3d12 (windows-latest) runs both depth-bounds fixtures directly on the hosted Windows runner.

Tested

  • Local: LEONIDA_D3D12_WARP=1 and hardware GPU cargo test -p leonida-gpu --lib pipeline::host::tests -- --test-threads=4 -> 11/11 passed (0 D3D12 debug-layer errors on initial diagnostic runs + 25/25 parallel WARP stress runs).
  • Independently verified across hosted Windows Server 2022 (10.0.20348.5756) and Server 2025 (10.0.26100.33648) WARP runners (@merzleckeier), Windows 10 22H2 SM 6.2 WARP 10.0.19041.7811 + RTX 5070 (@lixonik), and Windows 11 WARP 10.0.26100.9711 + RTX 4070 Ti SUPER (@KelboLive).
  • python -I scripts/check_no_game_data.py -> 0 issues.

GPUs tested: Microsoft WARP (d3d10warp.dll) and NVIDIA GeForce RTX 3090 (driver 610.88), Windows 11 Pro (26200).

AI-assisted: authored with Gemini 4 Carbon; independently reviewed with Gemini 4 Neon (opus-systems-critic) plus external reviews noted above.

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a: no translator change)
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5556710189 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2663). Originally posted by [zmasi](https://github.com/zmasi) on 2026-11-30T00:16:19Z. --- Claimed in the coordination issue as: D3D12-DEPTH-BOUNDS-TEST-FLAKE (https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7264381245) ### What and why Fixes the failure in `pipeline::host::tests::depth_bounds_pipeline_loads_and_filters_draws` (`depth 0.5 outside [0.6, 1.0] must be rejected`, returning `255` instead of `0` — the sole failing test in #2648's `d3d12 (windows-latest)` job and reported in https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7263423389): 1. **Keep depth-stencil active when `DepthBoundsTestEnable` is used without `DepthEnable` (`d3d12/crates/leonida-gpu/src/pipeline/host.rs`)**: - When `DepthBoundsTestEnable` is `true` with `DepthEnable == false` and `StencilEnable == false`, Microsoft WARP (`d3d10warp.dll`, used on CPU-only hosts and `windows-latest` CI runners) bypasses the depth-stencil stage on direct `DEPTH_STENCIL1` PSOs and passes fragments (`20/20` deterministic failures even for impossible intervals such as `[-2.0, -1.0]` and `[2.0, 3.0]`). - `effective_depth_bounds_desc` (applied in `GraphicsState::depth1` for both graphics and mesh pipelines and in `graphics_depth_bounds_pipeline`) promotes `DepthBoundsTestEnable && !DepthEnable && dsv_format != DXGI_FORMAT_UNKNOWN` to `DepthEnable = true`, `DepthWriteMask = D3D12_DEPTH_WRITE_MASK_ZERO`, `DepthFunc = D3D12_COMPARISON_FUNC_ALWAYS`. - This comparison is a mathematical no-op on depth testing and depth writes (and valid with `D3D12_DSV_FLAG_READ_ONLY_DEPTH` read-only DSVs under the D3D12 debug layer) while forcing WARP and early-Z-gated drivers to fetch the DSV and evaluate `[MinDepthBounds, MaxDepthBounds]`. When `DSVFormat == DXGI_FORMAT_UNKNOWN`, `DepthEnable` stays `false`; when `DepthEnable` is already `true`, the caller's `DepthFunc` and `DepthWriteMask` are preserved unchanged. - `GraphicsState::screen_pass` also excludes `self.depth_bounds`, and `GraphicsState::describe` distinguishes normalized bounds-only state (`depth-bounds-always`) so pre-existing pipeline-library caches do not collide on `StorePipeline` (`0` changes in `d3d12/crates/leonida-gpu/src/host.rs`). 2. **Isolate test RTV/DSV descriptors, pre-cut clears, and SM 6.0 WARP profiles (`d3d12/crates/leonida-gpu/src/pipeline/host.rs`)**: - Allocates dedicated 1-descriptor RTV and DSV heaps in `depth_bounds_pipeline_loads_and_filters_draws` instead of sharing `Host::rtv` / `Host::dsv`'s lock-free `RTV_RING` across ~550+ concurrent tests, records the target clears on `first_list` ahead of the command-list cut, and compiles synthetic test shaders as `vs_6_0` / `ps_6_0` behind `device_supports_depth_bounds_sm60` so SM 6.2 WARP (Windows 10 22H2) runs both fixtures cleanly. - Adds `depth_bounds_without_depth_test_enables_noop_always_depth_only_with_dsv` and `depth_bounds_without_depth_test_filters_on_warp_and_in_parallel`, which explicitly enumerates `warp_adapter()` alongside `host()` and runs 4-thread concurrent writable and read-only DSV depth-bounds draws on every `cargo test -p leonida-gpu --lib` run. - **Independent failure modes note:** These two fixes are independent. `effective_depth_bounds_desc` is proven deterministically load-bearing by the new parallel WARP fixture (which fails `255` vs `0` on writable and read-only DSVs whenever the promotion is reverted), whereas on WARP `10.0.26100.9711` (@KelboLive) the original `depth_bounds_pipeline_loads_and_filters_draws` still passes with the promotion reverted while other WARP builds reproduce `255` vs `0` under `LEONIDA_D3D12_WARP=1` — meaning the original CI failure could also stem from the shared `RTV_RING` / post-cut clear race fixed here rather than depth state alone. 3. **Re-enable `depth_bounds_pipeline_loads_and_filters_draws` in CI (`.github/workflows/d3d12.yml`)**: - Drops `-- --skip depth_bounds_pipeline_loads_and_filters_draws` from `.github/workflows/d3d12.yml` (per the comment left in #2648 for #2663) so `d3d12 (windows-latest)` runs both depth-bounds fixtures directly on the hosted Windows runner. ### Tested - Local: `LEONIDA_D3D12_WARP=1` and hardware GPU `cargo test -p leonida-gpu --lib pipeline::host::tests -- --test-threads=4` -> `11/11` passed (`0` D3D12 debug-layer errors on initial diagnostic runs + `25/25` parallel WARP stress runs). - Independently verified across hosted Windows Server 2022 (`10.0.20348.5756`) and Server 2025 (`10.0.26100.33648`) WARP runners (@merzleckeier), Windows 10 22H2 SM 6.2 WARP `10.0.19041.7811` + RTX 5070 (@lixonik), and Windows 11 WARP `10.0.26100.9711` + RTX 4070 Ti SUPER (@KelboLive). - `python -I scripts/check_no_game_data.py` -> `0` issues. GPUs tested: Microsoft WARP (`d3d10warp.dll`) and NVIDIA GeForce RTX 3090 (driver 610.88), Windows 11 Pro (26200). AI-assisted: authored with Gemini 4 Carbon; independently reviewed with Gemini 4 Neon (`opus-systems-critic`) plus external reviews noted above. ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [x] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (n/a: no translator change)
lixonik commented 2026-11-30 00:25:57 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-11-30T00:25:57Z.


[P2] Use a shader profile supported by the WARP adapter in the depth-bounds fixture

On Windows 10 22H2 (build 19045, system WARP 10.0.19041.7811), WARP advertises DepthBoundsTestSupported but reports Shader Model 6.2. The new fixture compiles its synthetic shaders as vs_6_5 and ps_6_5. The WARP PSO returns E_INVALIDARG (0x80070057) before the pixel assertions. I reproduced it on all four targeted reruns.

On the same device and with the same DXC, the full fixture passed after lowering just those two shader profiles to vs_6_0 and ps_6_0 and adding a diagnostic shader-model query. The fixture uses basic shaders, so SM 6.0 lets it exercise depth bounds on this WARP version. The optional hardware pass also depends on getting through WARP setup and its capability guard. Running that pass independently would preserve hardware coverage when WARP lacks depth bounds.

Tested 51ea09bf534bc5838f3e0bb14eebaef9d353856f merged locally into 452d1d1b68aa2da94d5f0eff43ad0a6a83bbbadf. The original native pipeline::host::tests run had 10 passes and this one failure. The descriptor test and existing hardware draw/readback test both passed. I used local test-executable loader exports for Agility SDK 1.614.1 and synthetic inputs only.

AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7265263717 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2663#issuecomment-7265263717). Originally posted by [lixonik](https://github.com/lixonik) on 2026-11-30T00:25:57Z. --- [P2] Use a shader profile supported by the WARP adapter in the depth-bounds fixture On Windows 10 22H2 (build 19045, system WARP 10.0.19041.7811), WARP advertises `DepthBoundsTestSupported` but reports Shader Model 6.2. The new fixture compiles its synthetic shaders as `vs_6_5` and `ps_6_5`. The WARP PSO returns `E_INVALIDARG` (0x80070057) before the pixel assertions. I reproduced it on all four targeted reruns. On the same device and with the same DXC, the full fixture passed after lowering just those two shader profiles to `vs_6_0` and `ps_6_0` and adding a diagnostic shader-model query. The fixture uses basic shaders, so SM 6.0 lets it exercise depth bounds on this WARP version. The optional hardware pass also depends on getting through WARP setup and its capability guard. Running that pass independently would preserve hardware coverage when WARP lacks depth bounds. Tested `51ea09bf534bc5838f3e0bb14eebaef9d353856f` merged locally into `452d1d1b68aa2da94d5f0eff43ad0a6a83bbbadf`. The original native `pipeline::host::tests` run had 10 passes and this one failure. The descriptor test and existing hardware draw/readback test both passed. I used local test-executable loader exports for Agility SDK 1.614.1 and synthetic inputs only. AI-assisted.
zmasi commented 2026-11-30 00:32:30 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-30T00:32:30Z.


Good catch on Windows 10 22H2 WARP (max SM 6.2)! Pushed c65f657c45 updating depth_bounds_without_depth_test_filters_on_warp_and_in_parallel:

  1. Lowered the synthetic shaders to vs_6_0 and ps_6_0 and added device_supports_depth_bounds_sm60 checking both DepthBoundsTestSupported and D3D_SHADER_MODEL_6_0 per device.
  2. Decoupled the standalone warp_adapter() pass and the host() hardware pass (run_parallel_depth_bounds_check with adapter-LUID deduplication) so hardware coverage still runs independently when WARP is unavailable or lacks depth-bounds support (11/11 passing under LEONIDA_D3D12_WARP=1 LEONIDA_D3D12_DEBUG=1 and on hardware).

AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7265360126 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2663#issuecomment-7265360126). Originally posted by [zmasi](https://github.com/zmasi) on 2026-11-30T00:32:30Z. --- Good catch on Windows 10 22H2 WARP (`max SM 6.2`)! Pushed `c65f657c45` updating `depth_bounds_without_depth_test_filters_on_warp_and_in_parallel`: 1. Lowered the synthetic shaders to `vs_6_0` and `ps_6_0` and added `device_supports_depth_bounds_sm60` checking both `DepthBoundsTestSupported` and `D3D_SHADER_MODEL_6_0` per device. 2. Decoupled the standalone `warp_adapter()` pass and the `host()` hardware pass (`run_parallel_depth_bounds_check` with adapter-LUID deduplication) so hardware coverage still runs independently when WARP is unavailable or lacks depth-bounds support (`11/11` passing under `LEONIDA_D3D12_WARP=1 LEONIDA_D3D12_DEBUG=1` and on hardware). AI-assisted.
merzleckeier commented 2026-11-30 00:42:31 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-11-30T00:42:31Z.


Hosted WARP follow-up to the #2648 depth-bounds failure. I built c65f657c4 (GitHub merge 38cbdc263 onto b8bd37111) with diagnostics and ran the tests with LEONIDA_D3D12_WARP=1 and LEONIDA_D3D12_DEBUG=1. Windows Server 2025 build 26100, system WARP 10.0.26100.33648, DXC 1.9.2602.17. The fork commit only adds the probe workflow. Hosted Windows job.

  • MEASURED All three depth-bounds tests passed in each of five fresh test processes, with no skip messages or D3D12 errors. All 11 pipeline-host tests also passed with four test threads. This includes the pipeline-library test that was red in #2648 and the new parallel writable/read-only DSV check.
  • READ IN CODE The older depth_bounds_pipeline_loads_and_filters_draws fixture still uses vs_6_5 / ps_6_5 behind a depth-bounds-only device check. If the host is forced to the SM 6.2 WARP adapter from the Windows 10 report, that fixture is worth a focused check as well. The new parallel fixture now uses SM 6.0. Legacy fixture.

Synthetic fixtures only. AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7265509191 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2663#issuecomment-7265509191). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-11-30T00:42:31Z. --- Hosted WARP follow-up to the #2648 depth-bounds failure. I built `c65f657c4` (GitHub merge `38cbdc263` onto `b8bd37111`) with `diagnostics` and ran the tests with `LEONIDA_D3D12_WARP=1` and `LEONIDA_D3D12_DEBUG=1`. Windows Server 2025 build 26100, system WARP `10.0.26100.33648`, DXC `1.9.2602.17`. The fork commit only adds the probe workflow. [Hosted Windows job](https://github.com/merzleckeier/mandy/actions/runs/46329812057/job/141556785352). - **MEASURED** All three depth-bounds tests passed in each of five fresh test processes, with no skip messages or D3D12 errors. All 11 pipeline-host tests also passed with four test threads. This includes the pipeline-library test that was red in #2648 and the new parallel writable/read-only DSV check. - **READ IN CODE** The older `depth_bounds_pipeline_loads_and_filters_draws` fixture still uses `vs_6_5` / `ps_6_5` behind a depth-bounds-only device check. If the host is forced to the SM 6.2 WARP adapter from [the Windows 10 report](https://github.com/ProjectLeonida/mandy/pull/2663#issuecomment-7265263717), that fixture is worth a focused check as well. The new parallel fixture now uses SM 6.0. [Legacy fixture](https://github.com/ProjectLeonida/mandy/blob/c65f657c450712968f327d7e734847ae8412b665/d3d12/crates/leonida-gpu/src/pipeline/host.rs#L1583-L1597). Synthetic fixtures only. AI-assisted with OpenAI Codex.
zmasi commented 2026-11-30 00:45:28 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-30T00:45:28Z.


Thanks for the hosted windows-latest verification (5/5 processes clean)! Also lowered depth_bounds_pipeline_loads_and_filters_draws to vs_6_0 / ps_6_0 with device_supports_depth_bounds_sm60 in ee9fb09755 so both fixtures run cleanly when LEONIDA_D3D12_WARP=1 is forced on Windows 10 22H2 (SM 6.2 WARP).

AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7265551219 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2663#issuecomment-7265551219). Originally posted by [zmasi](https://github.com/zmasi) on 2026-11-30T00:45:28Z. --- Thanks for the hosted `windows-latest` verification (`5/5` processes clean)! Also lowered `depth_bounds_pipeline_loads_and_filters_draws` to `vs_6_0` / `ps_6_0` with `device_supports_depth_bounds_sm60` in `ee9fb09755` so both fixtures run cleanly when `LEONIDA_D3D12_WARP=1` is forced on Windows 10 22H2 (`SM 6.2` WARP). AI-assisted.
merzleckeier commented 2026-11-30 00:53:30 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-11-30T00:53:30Z.


Independent SM 6.0 follow-up on two hosted WARP versions. I tested ee9fb0975 (GitHub merge a7db42495 onto b8bd37111) with diagnostics, LEONIDA_D3D12_WARP=1, LEONIDA_D3D12_DEBUG=1 and DXC 1.9.2602.17. The fork adds only the probe workflow. Server 2022 job · Server 2025 job.

  • MEASURED All three depth-bounds tests passed in each of five fresh processes on Server 2022 (WARP 10.0.20348.5756) and Server 2025 (WARP 10.0.26100.33648). Both the pipeline-library fixture and the parallel writable/read-only DSV fixture ran with no depth-bounds skip messages or D3D12 errors.
  • MEASURED The broader pipeline::host::tests filter reported 11 passed on each image. The optional mesh fixture returned early on Server 2022 because WARP did not advertise mesh shaders.

This checks the updated fixture on the two Server WARP versions. The Windows 10 22H2 repro uses a different WARP build. Synthetic fixtures only. AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7265664029 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2663#issuecomment-7265664029). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-11-30T00:53:30Z. --- Independent SM 6.0 follow-up on two hosted WARP versions. I tested `ee9fb0975` (GitHub merge `a7db42495` onto `b8bd37111`) with `diagnostics`, `LEONIDA_D3D12_WARP=1`, `LEONIDA_D3D12_DEBUG=1` and DXC 1.9.2602.17. The fork adds only the probe workflow. [Server 2022 job](https://github.com/merzleckeier/mandy/actions/runs/46331102030/job/141560859542) · [Server 2025 job](https://github.com/merzleckeier/mandy/actions/runs/46331102030/job/141560859373). - **MEASURED** All three depth-bounds tests passed in each of five fresh processes on Server 2022 (WARP `10.0.20348.5756`) and Server 2025 (WARP `10.0.26100.33648`). Both the pipeline-library fixture and the parallel writable/read-only DSV fixture ran with no depth-bounds skip messages or D3D12 errors. - **MEASURED** The broader `pipeline::host::tests` filter reported 11 passed on each image. The optional mesh fixture returned early on Server 2022 because WARP did not advertise mesh shaders. This checks the updated fixture on the two Server WARP versions. The Windows 10 22H2 repro uses a different WARP build. Synthetic fixtures only. AI-assisted with OpenAI Codex.
lixonik commented 2026-11-30 01:19:53 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-11-30T01:19:53Z.


Retested the SM 6.0 update ee9fb0975584a0a92f86de0778afe086a20927ea merged locally into 0eab02a8bcffbb9d1609f9c2fba40c2357513d06, on the same Windows 10 22H2 machine as the original report (system WARP 10.0.19041.7811, max SM 6.2, RTX 5070 on 610.88, DXC 1.9.0.5512).

  • With LEONIDA_D3D12_WARP=1, pipeline::host::tests passed 11/11. The optional mesh-shader fixture reported unsupported. All three depth-bounds tests passed in five fresh processes, with no depth-bounds skip. Both GPU fixtures reached their assertions and the original E_INVALIDARG did not recur.
  • With WARP forcing unset, pipeline::host::tests passed 11/11 with no skip messages.

Built with Rust 1.98.1, --profile diag --features diagnostics, local test-executable loader exports for Agility SDK 1.614.1, and synthetic fixtures only. This resolves my Windows 10 review finding.

AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7266045770 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2663#issuecomment-7266045770). Originally posted by [lixonik](https://github.com/lixonik) on 2026-11-30T01:19:53Z. --- Retested the SM 6.0 update `ee9fb0975584a0a92f86de0778afe086a20927ea` merged locally into `0eab02a8bcffbb9d1609f9c2fba40c2357513d06`, on the same Windows 10 22H2 machine as the original report (system WARP `10.0.19041.7811`, max SM 6.2, RTX 5070 on 610.88, DXC 1.9.0.5512). - With `LEONIDA_D3D12_WARP=1`, `pipeline::host::tests` passed 11/11. The optional mesh-shader fixture reported unsupported. All three depth-bounds tests passed in five fresh processes, with no depth-bounds skip. Both GPU fixtures reached their assertions and the original `E_INVALIDARG` did not recur. - With WARP forcing unset, `pipeline::host::tests` passed 11/11 with no skip messages. Built with Rust 1.98.1, `--profile diag --features diagnostics`, local test-executable loader exports for Agility SDK 1.614.1, and synthetic fixtures only. This resolves my Windows 10 review finding. AI-assisted.
KelboLive commented 2026-12-01 14:37:13 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by KelboLive on 2026-12-01T14:37:13Z.

Review: COMMENTED


Verified the core claim end to end, which is what matters for a WARP-only flake: with effective_depth_bounds_desc short-circuited, the WARP fixture reproduces the reported failure exactly (worker 0 iter 0 bounds [0.6, 1] → left: 255, right: 0, 4 workers) while the hardware fixture on the RTX 4070 Ti SUPER still passes; restored, all three tests pass. So the promotion is the fix, not a masking change.

The shape is right: DepthBoundsTestEnable && !DepthEnable && DSVFormat != UNKNOWN → DepthEnable = true, DepthWriteMask = ZERO, DepthFunc = ALWAYS preserves the title's depth result and its writes, and it reaches both paths — depth1() → graphics_depth_bounds_pipeline, and mesh_pipeline(..., g.depth1(), ...). screen_pass only changes the scheduling flag, so no alternate pipeline path appears.

Two details worth keeping exactly as they are:

  • The depth-bounds-always suffix in describe() is necessary, not cosmetic: raw DepthEnable=false is unchanged by the normalization, so without it a pre-fix library entry would be loaded instead of rebuilt.
  • The per-test RTV/DSV heaps and pre-cut clears fix a genuine ring/ordering race rather than papering over it — that is the part that makes the parallel WARP test trustworthy.

State here: leonida-gpu --lib 552/0/47, the merged tree 633/0/59 serially, check_no_game_data and diff --check clean, and merge-tree against current main is clean. One caveat only: the branch is 896 commits behind, so rebase before merging even though the merge is conflict-free. One of my parallel runs of the merged suite aborted without a summary and both the serial and a repeat parallel run were green — worth knowing, not blocking.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6133454689 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2663#pullrequestreview-6133454689). Originally posted by [KelboLive](https://github.com/KelboLive) on 2026-12-01T14:37:13Z. **Review:** COMMENTED --- Verified the core claim end to end, which is what matters for a WARP-only flake: with `effective_depth_bounds_desc` short-circuited, the WARP fixture reproduces the reported failure exactly (`worker 0 iter 0 bounds [0.6, 1]` → `left: 255, right: 0`, 4 workers) while the hardware fixture on the RTX 4070 Ti SUPER still passes; restored, all three tests pass. So the promotion is the fix, not a masking change. The shape is right: `DepthBoundsTestEnable && !DepthEnable && DSVFormat != UNKNOWN` → `DepthEnable = true`, `DepthWriteMask = ZERO`, `DepthFunc = ALWAYS` preserves the title's depth result and its writes, and it reaches both paths — `depth1()` → `graphics_depth_bounds_pipeline`, and `mesh_pipeline(..., g.depth1(), ...)`. `screen_pass` only changes the scheduling flag, so no alternate pipeline path appears. Two details worth keeping exactly as they are: - **The `depth-bounds-always` suffix in `describe()` is necessary**, not cosmetic: raw `DepthEnable=false` is unchanged by the normalization, so without it a pre-fix library entry would be loaded instead of rebuilt. - **The per-test RTV/DSV heaps and pre-cut clears** fix a genuine ring/ordering race rather than papering over it — that is the part that makes the parallel WARP test trustworthy. State here: `leonida-gpu --lib` 552/0/47, the merged tree 633/0/59 serially, `check_no_game_data` and `diff --check` clean, and `merge-tree` against current main is clean. One caveat only: the branch is 896 commits behind, so rebase before merging even though the merge is conflict-free. One of my parallel runs of the merged suite aborted without a summary and both the serial and a repeat parallel run were green — worth knowing, not blocking.
KelboLive commented 2026-12-01 14:39:46 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by KelboLive on 2026-12-01T14:39:46Z.


One extra data point from a second WARP run here (10.0.26100.9711), worth a sentence in the body:

With the guard reverted, the new fixture fails exactly as expected (255 vs 0, read-only DSV included), but the original depth_bounds_pipeline_loads_and_filters_draws still passes on this WARP even with LEONIDA_D3D12_WARP=1 (depth_enable=false bounds=true dsv=40). So the promotion is proven load-bearing by the new fixture, while the old fixture's CI failure may have been the shared RTV/DSV ring race rather than the depth state — the two fixes in this PR are independent, and saying which one the old failure was would make the history clear.

No objection to the change itself: both paths are covered, the cache suffix is necessary, and the SM 6.0 + feature probe is the right answer to the Windows 10 WARP report.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7314622759 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2663#issuecomment-7314622759). Originally posted by [KelboLive](https://github.com/KelboLive) on 2026-12-01T14:39:46Z. --- One extra data point from a second WARP run here (10.0.26100.9711), worth a sentence in the body: With the guard reverted, the **new** fixture fails exactly as expected (255 vs 0, read-only DSV included), but the **original** `depth_bounds_pipeline_loads_and_filters_draws` still **passes** on this WARP even with `LEONIDA_D3D12_WARP=1` (`depth_enable=false bounds=true dsv=40`). So the promotion is proven load-bearing by the new fixture, while the old fixture's CI failure may have been the shared RTV/DSV ring race rather than the depth state — the two fixes in this PR are independent, and saying which one the old failure was would make the history clear. No objection to the change itself: both paths are covered, the cache suffix is necessary, and the SM 6.0 + feature probe is the right answer to the Windows 10 WARP report.
merzleckeier commented 2026-12-01 14:53:11 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-01T14:53:11Z.


A physical-GPU follow-up to the WARP results: I tested ee9fb097 merged into cd0c52fcf, Win64 MSVC target with diagnostics, under Wine 11.22 and VKD3D-Proton 3.1.0. Both new Rust tests passed on Radeon Raphael (RADV 26.3.1) and RTX 4070 SUPER (620.73.04). A local print after the parallel test’s host branch confirmed all four workers completed their eight draw/readback cases per GPU, including the read-only DSV and exact-bound case. Wine skipped the WARP branch.

On both GPUs, the unmodified older depth_bounds_pipeline_loads_and_filters_draws failed on main and on the PR at the pipeline-library hit assertion. For a second diagnostic run I recorded that counter instead of asserting it, leaving the draw and readback assertions unchanged. The counter stayed 0 -> 0 on all four runs. Both main and PR then passed the original inside/outside depth readbacks on both GPUs. That baseline cache result is independent of the PR’s added depth checks in this setup. MEASURED with synthetic draw fixtures. AI-assisted (Codex).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7314987487 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2663#issuecomment-7314987487). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-01T14:53:11Z. --- A physical-GPU follow-up to the WARP results: I tested ee9fb097 merged into cd0c52fcf, Win64 MSVC target with diagnostics, under Wine 11.22 and VKD3D-Proton 3.1.0. Both new Rust tests passed on Radeon Raphael (RADV 26.3.1) and RTX 4070 SUPER (620.73.04). A local print after the parallel test’s host branch confirmed all four workers completed their eight draw/readback cases per GPU, including the read-only DSV and exact-bound case. Wine skipped the WARP branch. On both GPUs, the unmodified older depth_bounds_pipeline_loads_and_filters_draws failed on main and on the PR at the pipeline-library hit assertion. For a second diagnostic run I recorded that counter instead of asserting it, leaving the draw and readback assertions unchanged. The counter stayed 0 -> 0 on all four runs. Both main and PR then passed the original inside/outside depth readbacks on both GPUs. That baseline cache result is independent of the PR’s added depth checks in this setup. MEASURED with synthetic draw fixtures. AI-assisted (Codex).
zmasi commented 2026-12-01 14:54:27 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-12-01T14:54:27Z.


Thanks for the end-to-end verification and the 10.0.26100.9711 WARP data point @KelboLive!

  1. Added an explicit note in the PR description documenting that the two fixes here are independent (effective_depth_bounds_desc is load-bearing for the parallel WARP writable/read-only DSV fixture, whereas depth_bounds_pipeline_loads_and_filters_draws passing on 10.0.26100.9711 with the promotion reverted shows its intermittent CI failure could also come from the shared RTV_RING / clear-cut race).
  2. Merged current main (cd0c52fcf4) so the branch is up to date (0abaae0d7), and dropped -- --skip depth_bounds_pipeline_loads_and_filters_draws from .github/workflows/d3d12.yml (per the comment left in #2648) so d3d12 (windows-latest) runs both depth-bounds fixtures directly in CI on this PR.

AI-assisted: Gemini 4 Carbon. Tested on Windows 11, RTX 3090 (driver 610.88) + LEONIDA_D3D12_WARP=1.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7315022446 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2663#issuecomment-7315022446). Originally posted by [zmasi](https://github.com/zmasi) on 2026-12-01T14:54:27Z. --- Thanks for the end-to-end verification and the `10.0.26100.9711` WARP data point @KelboLive! 1. Added an explicit note in the PR description documenting that the two fixes here are independent (`effective_depth_bounds_desc` is load-bearing for the parallel WARP writable/read-only DSV fixture, whereas `depth_bounds_pipeline_loads_and_filters_draws` passing on `10.0.26100.9711` with the promotion reverted shows its intermittent CI failure could also come from the shared `RTV_RING` / clear-cut race). 2. Merged current `main` (`cd0c52fcf4`) so the branch is up to date (`0abaae0d7`), and dropped `-- --skip depth_bounds_pipeline_loads_and_filters_draws` from `.github/workflows/d3d12.yml` (per the comment left in #2648) so `d3d12 (windows-latest)` runs both depth-bounds fixtures directly in CI on this PR. AI-assisted: Gemini 4 Carbon. Tested on Windows 11, RTX 3090 (driver 610.88) + `LEONIDA_D3D12_WARP=1`.
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
ProjectLeonida/mandy!2663
No description provided.