Tests: add AMD vs NVIDIA D3D12 tiling, budget, and pipeline memory parity suite #2791

Open
github-bot wants to merge 3 commits from github-bot/gh-2791 into main AGit
Owner

@⁠GustavoEllwanger on GitHub · 2026-11-26 13:17 UTC · original
GustavoEllwanger:tests/amd-nvidia-memory-tiling-parity → main · +721 −0 · 1 files · 3 commits · open

Part of #2688 (WS3 item 1, WS7 item 3, WS9).

What is in it

  • Adds crates/xcl/tests/d3d12_amd_nvidia_parity.rs, a standalone zero-game-data dual-vendor D3D12 parity & memory measurement test suite honoring XCL_ADAPTER (and skipping cleanly via runner::skip_test on WARP / no-GPU / no-DXC hosts):
    • ws9_adapter_capabilities_and_dxgi_budget: reports adapter identity, D3D12_OPTIONS / OPTIONS1 / OPTIONS7 / ARCHITECTURE1 tiers (TiledResourcesTier, ResourceHeapTier, ResourceBindingTier, wave sizes, MeshShaderTier, UMA/CacheCoherentUMA), and DXGI LOCAL/NON_LOCAL budgets.
    • ws3_reserved_texture_tiling_overcommit_matrix: queries CreateReservedResource + GetResourceTiling + GetResourceAllocationInfo(LAYOUT_UNKNOWN) across 19 synthetic 3D, RT/DSV, MSAA 4x, small-mip, BC7, and cubemap textures and compares PC 64 KiB tile footprints against xcl::gpu::texture::placement (SW_64KB_S_X, SW_4KB_S_X) and raw logical bytes.
    • ws7_driver_pipeline_memory_for_same_dxil: pre-compiles deterministic synthetic DXIL compute (small/medium 2-wave/identical/large) and graphics (VS+PS) batches via DXC before snapshotting, then measures process PrivateUsage commit and DXGI local/non-local VRAM before creation, while live, and after Release().

Tested

  • XCL_ADAPTER=5060 cargo test -p xcl --test d3d12_amd_nvidia_parity -- --nocapture --test-threads=1 on NVIDIA GeForce RTX 5060 (driver 32.0.16.1088): 3 passed; 0 failed; 0 ignored (0 skipped).
  • XCL_ADAPTER=Radeon cargo test -p xcl --test d3d12_amd_nvidia_parity -- --nocapture --test-threads=1 on AMD Radeon(TM) Graphics RDNA2 iGPU (driver 32.0.21042.62): 3 passed; 0 failed; 0 ignored (0 skipped).
  • XCL_ADAPTER=warp cargo test -p xcl --test d3d12_amd_nvidia_parity -- --nocapture --test-threads=1: 3 passed; 0 failed; 0 ignored (3 clean SKIPPED lines).
  • XCL_ADAPTER=5060 cargo test --workspace -- --test-threads=4: 1438 passed; 0 failed; 47 ignored (29 runtime SKIPPED in unrelated tests requiring D3D12 debug layer / console libraries).

Not tested

  • No retail console title / smoke.ps1 (pure test PR with zero changes under crates/xcl/src/).
  • No discrete AMD RDNA2/3/4 GPU (tested on AMD RDNA2 iGPU + NVIDIA RTX 5060 on the same host).

AI use

  • Drafted and executed with Antigravity (Google Gemini); all measurements and test outputs were captured directly from this host.
**@⁠GustavoEllwanger** on GitHub · 2026-11-26 13:17 UTC · [original](https://github.com/xcl-dev/xcl/pull/2791) `GustavoEllwanger:tests/amd-nvidia-memory-tiling-parity` → `main` · +721 −0 · 1 files · 3 commits · open Part of #2688 (WS3 item 1, WS7 item 3, WS9). **What is in it** - Adds `crates/xcl/tests/d3d12_amd_nvidia_parity.rs`, a standalone zero-game-data dual-vendor D3D12 parity & memory measurement test suite honoring `XCL_ADAPTER` (and skipping cleanly via `runner::skip_test` on WARP / no-GPU / no-DXC hosts): - `ws9_adapter_capabilities_and_dxgi_budget`: reports adapter identity, `D3D12_OPTIONS` / `OPTIONS1` / `OPTIONS7` / `ARCHITECTURE1` tiers (`TiledResourcesTier`, `ResourceHeapTier`, `ResourceBindingTier`, wave sizes, `MeshShaderTier`, `UMA`/`CacheCoherentUMA`), and DXGI `LOCAL`/`NON_LOCAL` budgets. - `ws3_reserved_texture_tiling_overcommit_matrix`: queries `CreateReservedResource` + `GetResourceTiling` + `GetResourceAllocationInfo(LAYOUT_UNKNOWN)` across 19 synthetic 3D, RT/DSV, MSAA 4x, small-mip, BC7, and cubemap textures and compares PC 64 KiB tile footprints against `xcl::gpu::texture::placement` (`SW_64KB_S_X`, `SW_4KB_S_X`) and raw logical bytes. - `ws7_driver_pipeline_memory_for_same_dxil`: pre-compiles deterministic synthetic DXIL compute (small/medium 2-wave/identical/large) and graphics (VS+PS) batches via DXC before snapshotting, then measures process `PrivateUsage` commit and DXGI local/non-local VRAM before creation, while live, and after `Release()`. **Tested** - `XCL_ADAPTER=5060 cargo test -p xcl --test d3d12_amd_nvidia_parity -- --nocapture --test-threads=1` on NVIDIA GeForce RTX 5060 (driver `32.0.16.1088`): `3 passed; 0 failed; 0 ignored` (0 skipped). - `XCL_ADAPTER=Radeon cargo test -p xcl --test d3d12_amd_nvidia_parity -- --nocapture --test-threads=1` on AMD Radeon(TM) Graphics RDNA2 iGPU (driver `32.0.21042.62`): `3 passed; 0 failed; 0 ignored` (0 skipped). - `XCL_ADAPTER=warp cargo test -p xcl --test d3d12_amd_nvidia_parity -- --nocapture --test-threads=1`: `3 passed; 0 failed; 0 ignored` (3 clean `SKIPPED` lines). - `XCL_ADAPTER=5060 cargo test --workspace -- --test-threads=4`: `1438 passed; 0 failed; 47 ignored` (29 runtime `SKIPPED` in unrelated tests requiring D3D12 debug layer / console libraries). **Not tested** - No retail console title / `smoke.ps1` (pure test PR with zero changes under `crates/xcl/src/`). - No discrete AMD RDNA2/3/4 GPU (tested on AMD RDNA2 iGPU + NVIDIA RTX 5060 on the same host). **AI use** - Drafted and executed with Antigravity (Google Gemini); all measurements and test outputs were captured directly from this host.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 13:19:37 +00:00
Author
Owner

@⁠thehollowedone on GitHub · 2026-11-26 13:25 UTC · original

Independent Windows/NVIDIA check of #2791 head 4f9ef20 against main b49be183. This is a test-only PR with one changed file. I applied that file to the base and verified its Git blob ID (a7be7f73ffeca34e19109be116d4276e6c1bf25a) against the PR head; this was not a clean checkout of the PR commit.

Tested: Windows 11 build 26300, Ryzen 7 9800X3D, RTX 3080 Ti 12 GiB (NVIDIA 621.35), rustc 1.99.1 MSVC. XCL_ADAPTER=3080; XCL_DXIL_CACHE pointed to writable local scratch.

  • cargo build --offline --locked --workspace: passed.
  • cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4: 1,438 passed, 0 failed, 47 ignored across 38 test targets; 25 GPU SKIPPED notices (21 no wave64, three refused per-lane cases, one no heap windows). The PR's three tests ran on the physical RTX 3080 Ti, with no skips.
  • In the synthetic tiling matrix, 3D_33x33x33_RGBA16F_m1 used 18 PC tiles / 1,152 KiB, against the test's 500 KiB console SW_4KB_S_X placement estimate (2.30×). The 128 identical compute-PSO batch showed no additional private-commit delta in this ordered run. These are test observations, not a cold-driver benchmark or a retail workload result.

Review point: mem_snap ignores the return values of K32GetProcessMemoryInfo and both QueryVideoMemoryInfo calls after zero-initializing their output structures. Microsoft documents zero as process-query failure and DXGI returns an error code on a failed budget query. The WS7 test can therefore pass and print a zero memory delta/budget when a snapshot failed; its only post-batch assertion is that the device was not removed. Could the snapshot mark an unavailable segment explicitly and fail (or skip with a clear reason) when a required query fails? A small injected-query-failure test would keep zero usage distinct from missing data. I did not induce an API failure here; all three tests passed on this card.

Not tested: AMD/Intel, a retail title, or controlled cold NVIDIA driver caches.

AI use: Codex (GPT-6.2 Sol) checked the PR's sole file and API contracts, ran these tests, and drafted this report.

**@⁠thehollowedone** on GitHub · 2026-11-26 13:25 UTC · [original](https://github.com/xcl-dev/xcl/pull/2791#issuecomment-7193322148) Independent Windows/NVIDIA check of [#2791 head `4f9ef20`](https://github.com/xcl-dev/xcl/commit/4f9ef20e686274adb43668468d786b29eff9fb1d) against [`main` `b49be183`](https://github.com/xcl-dev/xcl/commit/b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7). This is a test-only PR with one changed file. I applied that file to the base and verified its Git blob ID (`a7be7f73ffeca34e19109be116d4276e6c1bf25a`) against the PR head; this was not a clean checkout of the PR commit. **Tested:** Windows 11 build 26300, Ryzen 7 9800X3D, RTX 3080 Ti 12 GiB (NVIDIA 621.35), rustc 1.99.1 MSVC. `XCL_ADAPTER=3080`; `XCL_DXIL_CACHE` pointed to writable local scratch. - `cargo build --offline --locked --workspace`: passed. - `cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4`: **1,438 passed, 0 failed, 47 ignored** across 38 test targets; 25 GPU `SKIPPED` notices (21 no wave64, three refused per-lane cases, one no heap windows). The PR's three tests ran on the physical RTX 3080 Ti, with no skips. - In the synthetic tiling matrix, `3D_33x33x33_RGBA16F_m1` used **18 PC tiles / 1,152 KiB**, against the test's **500 KiB** console `SW_4KB_S_X` placement estimate (2.30×). The 128 identical compute-PSO batch showed no additional private-commit delta in this ordered run. These are test observations, not a cold-driver benchmark or a retail workload result. **Review point:** [`mem_snap`](https://github.com/xcl-dev/xcl/blob/4f9ef20e686274adb43668468d786b29eff9fb1d/crates/xcl/tests/d3d12_amd_nvidia_parity.rs#L78-L99) ignores the return values of `K32GetProcessMemoryInfo` and both `QueryVideoMemoryInfo` calls after zero-initializing their output structures. [Microsoft documents](https://learn.microsoft.com/en-us/windows/win32/api/psapi/nf-psapi-getprocessmemoryinfo) zero as process-query failure and [DXGI returns an error code](https://learn.microsoft.com/en-us/windows/win32/api/dxgi1_4/nf-dxgi1_4-idxgiadapter3-queryvideomemoryinfo) on a failed budget query. The WS7 test can therefore pass and print a zero memory delta/budget when a snapshot failed; its only post-batch assertion is that the device was not removed. Could the snapshot mark an unavailable segment explicitly and fail (or skip with a clear reason) when a required query fails? A small injected-query-failure test would keep zero usage distinct from missing data. I did not induce an API failure here; all three tests passed on this card. **Not tested:** AMD/Intel, a retail title, or controlled cold NVIDIA driver caches. AI use: Codex (GPT-6.2 Sol) checked the PR's sole file and API contracts, ran these tests, and drafted this report.
Author
Owner

@⁠Aniseto on GitHub · 2026-11-26 13:28 UTC · original

Ran the new dual-vendor parity suite at 4f9ef20e on an NVIDIA host:

Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, 32-lane waves only, 16 GB) driver 32.0.16.2124, Intel Core i5-12400F, 64 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09) MSVC 14.44.35207, DXC 1.9.2609.5, debug build.

XCL_ADAPTER=nvidia cargo test -p xcl --test d3d12_amd_nvidia_parity -- --nocapture --test-threads=1
3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out      (exit 0)

Key lines from the output:

  • WS9_ADAPTER: name=NVIDIA GeForce RTX 5070 Ti, vendor=0x10de, device=0x2c05, ded_vram_mib=15997, tiled_tier=4, heap_tier=2, bind_tier=3, wave_min=32, wave_max=32, mesh_tier=10, local_budget_mib=15229, nonlocal_budget_mib=31917.
  • WS3: 19 synthetic textures measured against xcl::gpu::texture::placement; e.g. 3840x2160 RGBA16F RT -> 1020 tiles / 65280 KiB with pc/alloc=1.00x, and 1920x1080 RGBA8 MSAA4 -> 510 tiles / 32640 KiB.
  • WS7: 128 distinct small compute PSOs took 879.4 ms and +100436 KiB commit; 128 identical ones took 21.9 ms and +0 KiB; the large 32-PSO batch took 6632.3 ms. DXGI local/non-local VRAM deltas were 0 in these runs.

What this adds: the author's NVIDIA data is an RTX 5060 (8 GB) on the same host, plus an RDNA2 iGPU and WARP. This is a Blackwell 16 GB part, which is the other end of the NVIDIA range for this suite.

Not tested: a discrete AMD GPU here (only our NVIDIA side), a retail title, smoke.ps1, release profile, Wine, game data.

AI-assisted (OpenCode), model: DeepSeek V4.1 Flash Free - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used.

**@⁠Aniseto** on GitHub · 2026-11-26 13:28 UTC · [original](https://github.com/xcl-dev/xcl/pull/2791#issuecomment-7193406916) Ran the new dual-vendor parity suite at `4f9ef20e` on an NVIDIA host: Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, 32-lane waves only, 16 GB) driver 32.0.16.2124, Intel Core i5-12400F, 64 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09) MSVC 14.44.35207, DXC 1.9.2609.5, debug build. ``` XCL_ADAPTER=nvidia cargo test -p xcl --test d3d12_amd_nvidia_parity -- --nocapture --test-threads=1 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out (exit 0) ``` Key lines from the output: - `WS9_ADAPTER`: name=NVIDIA GeForce RTX 5070 Ti, vendor=0x10de, device=0x2c05, ded_vram_mib=15997, tiled_tier=4, heap_tier=2, bind_tier=3, wave_min=32, wave_max=32, mesh_tier=10, local_budget_mib=15229, nonlocal_budget_mib=31917. - `WS3`: 19 synthetic textures measured against `xcl::gpu::texture::placement`; e.g. 3840x2160 RGBA16F RT -> 1020 tiles / 65280 KiB with pc/alloc=1.00x, and 1920x1080 RGBA8 MSAA4 -> 510 tiles / 32640 KiB. - `WS7`: 128 distinct small compute PSOs took 879.4 ms and +100436 KiB commit; 128 identical ones took 21.9 ms and +0 KiB; the large 32-PSO batch took 6632.3 ms. DXGI local/non-local VRAM deltas were 0 in these runs. What this adds: the author's NVIDIA data is an RTX 5060 (8 GB) on the same host, plus an RDNA2 iGPU and WARP. This is a Blackwell 16 GB part, which is the other end of the NVIDIA range for this suite. Not tested: a discrete AMD GPU here (only our NVIDIA side), a retail title, `smoke.ps1`, release profile, Wine, game data. AI-assisted (OpenCode), model: **DeepSeek V4.1 Flash Free** - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used.
Author
Owner

@⁠GustavoEllwanger on GitHub · 2026-11-26 13:33 UTC · original

Thanks @⁠thehollowedone and @⁠Aniseto for the independent RTX 3080 Ti and RTX 5070 Ti (16 GB) runs and the careful review!

Addressed @⁠thehollowedone's review point on mem_snap in 749b0e06:

  • mem_snap now checks the BOOL return value of K32GetProcessMemoryInfo (surfacing std::io::Error::last_os_error() on 0) and the HRESULT of QueryVideoMemoryInfo(LOCAL), returning Result<MemSnap, String> so ws9_* and ws7_* fail loudly instead of silently reporting 0 on a failed query.
  • QueryVideoMemoryInfo(NON_LOCAL) is represented as Option<SegmentUsage> (None on DXGI error) and rendered explicitly as unavailable in both WS9 and WS7 output, keeping a missing/unsupported segment distinct from a reported 0.
  • Added an injected-query-failure unit test (mem_snap_rejects_required_query_failures_and_marks_unavailable_nonlocal) that runs unconditionally (including on WARP / no-GPU CI).

Re-tested after the update

  • XCL_ADAPTER=5060 cargo test -p xcl --test d3d12_amd_nvidia_parity -- --nocapture --test-threads=1 (NVIDIA RTX 5060): 4 passed; 0 failed; 0 ignored (0 skipped).
  • XCL_ADAPTER=Radeon cargo test -p xcl --test d3d12_amd_nvidia_parity -- --nocapture --test-threads=1 (AMD Radeon RDNA2 iGPU): 4 passed; 0 failed; 0 ignored (0 skipped).
  • XCL_ADAPTER=warp cargo test -p xcl --test d3d12_amd_nvidia_parity -- --nocapture --test-threads=1: 4 passed; 0 failed; 0 ignored (unit test runs, 3 GPU tests SKIPPED).
**@⁠GustavoEllwanger** on GitHub · 2026-11-26 13:33 UTC · [original](https://github.com/xcl-dev/xcl/pull/2791#issuecomment-7193511150) Thanks @⁠thehollowedone and @⁠Aniseto for the independent RTX 3080 Ti and RTX 5070 Ti (16 GB) runs and the careful review! Addressed @⁠thehollowedone's review point on `mem_snap` in 749b0e06: - `mem_snap` now checks the `BOOL` return value of `K32GetProcessMemoryInfo` (surfacing `std::io::Error::last_os_error()` on `0`) and the `HRESULT` of `QueryVideoMemoryInfo(LOCAL)`, returning `Result<MemSnap, String>` so `ws9_*` and `ws7_*` fail loudly instead of silently reporting `0` on a failed query. - `QueryVideoMemoryInfo(NON_LOCAL)` is represented as `Option<SegmentUsage>` (`None` on DXGI error) and rendered explicitly as `unavailable` in both WS9 and WS7 output, keeping a missing/unsupported segment distinct from a reported `0`. - Added an injected-query-failure unit test (`mem_snap_rejects_required_query_failures_and_marks_unavailable_nonlocal`) that runs unconditionally (including on WARP / no-GPU CI). **Re-tested after the update** - `XCL_ADAPTER=5060 cargo test -p xcl --test d3d12_amd_nvidia_parity -- --nocapture --test-threads=1` (NVIDIA RTX 5060): `4 passed; 0 failed; 0 ignored` (0 skipped). - `XCL_ADAPTER=Radeon cargo test -p xcl --test d3d12_amd_nvidia_parity -- --nocapture --test-threads=1` (AMD Radeon RDNA2 iGPU): `4 passed; 0 failed; 0 ignored` (0 skipped). - `XCL_ADAPTER=warp cargo test -p xcl --test d3d12_amd_nvidia_parity -- --nocapture --test-threads=1`: `4 passed; 0 failed; 0 ignored` (unit test runs, 3 GPU tests `SKIPPED`).
Author
Owner

@⁠Aniseto on GitHub · 2026-11-26 13:42 UTC · original

Re-ran the dual-vendor parity suite at 749b0e06 after the head moved (127 lines changed in the test file; the new commit checks memory-query return values).

Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, 32-lane waves only, 16 GB) driver 32.0.16.2124, Intel Core i5-12400F, 64 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09) MSVC 14.44.35207, DXC 1.9.2609.5, debug build.

XCL_ADAPTER=nvidia cargo test -p xcl --test d3d12_amd_nvidia_parity -- --nocapture --test-threads=1
4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out      (exit 0)

The new mem_snap_rejects_required_query_failures_and_marks_unavailable_nonlocal test passes, as do the three measurement tests. The tiling matrix is unchanged from my earlier report at 4f9ef20e; the PSO batch timings differ between runs because the driver cache is warm. This is a new report following that one, not an edit.

Not tested: a discrete AMD GPU here, a retail title, smoke.ps1, release profile, Wine, game data.

AI-assisted (OpenCode), model: DeepSeek V4.1 Flash Free - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used.

**@⁠Aniseto** on GitHub · 2026-11-26 13:42 UTC · [original](https://github.com/xcl-dev/xcl/pull/2791#issuecomment-7193736603) Re-ran the dual-vendor parity suite at `749b0e06` after the head moved (127 lines changed in the test file; the new commit checks memory-query return values). Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, 32-lane waves only, 16 GB) driver 32.0.16.2124, Intel Core i5-12400F, 64 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09) MSVC 14.44.35207, DXC 1.9.2609.5, debug build. ``` XCL_ADAPTER=nvidia cargo test -p xcl --test d3d12_amd_nvidia_parity -- --nocapture --test-threads=1 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out (exit 0) ``` The new `mem_snap_rejects_required_query_failures_and_marks_unavailable_nonlocal` test passes, as do the three measurement tests. The tiling matrix is unchanged from my earlier report at `4f9ef20e`; the PSO batch timings differ between runs because the driver cache is warm. This is a new report following that one, not an edit. Not tested: a discrete AMD GPU here, a retail title, `smoke.ps1`, release profile, Wine, game data. AI-assisted (OpenCode), model: **DeepSeek V4.1 Flash Free** - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used.
Author
Owner

@⁠SzczepanGrela on GitHub · 2026-11-26 13:44 UTC · original · edited 2026-11-26 14:14 UTC

Updated for exact head 442775d9b55a25341799a622b3bfb36ca9fe8b6c: the PagefileUsage fallback is verified on discrete AMD RDNA4 / Wine.

Tested

  • RX 9070 16 GB (RADV GFX1201), Ryzen 7 7700, CachyOS kernel 7.3.0-5-cachyos, Mesa 26.3.1-arch3.5, GE-Proton11-12 Wine 11.0 Staging, vkd3d-proton 8293130ebe370b1+ (local asserts-disabled build), DXC/DXIL 1.9.2602.17, Rust 1.97.1, release x86_64-pc-windows-gnu.
  • Unmodified pinned source archive. The new test's Git blob is 91f0b4d945d787a40a801526271f7f5db6a61cfb; every existing source file equals main b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7. No runtime A/B claim for this test-only change.
  • Built with cargo test --offline --locked --release --target x86_64-pc-windows-gnu -p xcl --test d3d12_amd_nvidia_parity --no-run.
  • Three fresh Windows test processes through GE-Proton Wine, --nocapture --test-threads=1, XCL_ADAPTER=AMD Radeon RX 9070, XCL_REQUIRE_GPU=wave64, XCL_NETWORK=0. Separate fresh private XCL, vkd3d and Mesa cache directories per process; no concurrent XCL build or test from this workflow.
  • 4 passed / 0 failed / 0 ignored in each process; zero runtime skip markers. All 19 reserved-resource cases succeeded, and every tiling row was identical across the three runs.

The complete suite was rerun after the 442775d9 counter-selection update. The query-error/counter-selection regression passed in all three processes. Previous 749b0e06 results are archived separately.

Capabilities reported by this stack

PCI 1002:7550, dedicated VRAM 16,304 MiB, UMA/coherent UMA false, tiled/heap/binding tiers 4/2/3, wave operations true, wave sizes 32..64, total lanes 3584, raw mesh tier 10. At the WS9 snapshots, local budget/usage was 14,493/2 MiB and nonlocal budget/usage 15,544/0 MiB in all three processes.

Reserved-resource queries

These are GetResourceTiling footprints and GetResourceAllocationInfo results with LAYOUT_UNKNOWN, not measured physical allocation of the reserved textures. KiB throughout:

Case Tiles Tile footprint Allocation info
3D 33x33x33 RGBA16F, m1 18 1152 512
3D 33x33x33 RGBA16F, m6 20 1280 832
3D 64x64x64 RGBA16F, m1 32 2048 2048
3D 64x64x64 RGBA16F, m7 37 2368 2816
3D 160x90x64 RGBA16F, m1 120 7680 7680
3D 65x65x65 R11G11B10F, m1 45 2880 1664
3D 128x128x32 RGBA8, m8 38 2432 2816
1920x1080 RGBA16F RT 255 16320 16320
3840x2160 RGBA16F RT 1020 65280 65280
1920x1080 D32F DSV 135 8640 8832
1920x1080 RGBA8 MSAA4 510 32640 36864
512x512 RGBA16F MSAA4 128 8192 8192
256x256 RGBA8, m9 6 384 384
64x64 RGBA8, m7 1 64 64
32x32 RGBA16F, m6 1 64 64
1024x1024 BC7, m11 22 1408 1408
256x256 BC7, m9 2 128 128
Cube 128x128x6 RGBA16F, m8 18 1152 1152
Cube 64x64x6 RGBA16F, m7 6 384 320

PSO-construction observations on 442775d9

All three processes logged commit_src=PagefileUsage. The suite's source-consistency assertions passed for every snapshot. Process-counter columns below are deltas relative to each batch's preceding snapshot, in KiB; ranges cover the three fresh processes.

Batch Average DXIL B Create time ms PagefileUsage live delta KiB PagefileUsage after Release delta KiB DXGI local live / after KiB
cs_small_128_distinct 2919 25.0..26.0 1048..1052 1048..1052 0 / 0
cs_med_128_wave1 4920 222.2..226.0 660..696 596..696 1024 / 0
cs_med_128_wave2_new 4923 223.1..224.3 64..136 0..8 2048 / 0
cs_med_128_identical 4924 3.0 0..4 0 0 / 0
cs_large_32_distinct 33089 765.7..772.0 9036..9444 9036..9444 4096 / 0
gfx_vs_ps_128_distinct 5727 52.0..56.0 104..168 64..128 0 / 0

Cumulative process-counter delta after the final batch was 10828..11236 KiB. Nonlocal deltas were zero throughout. These are the test's API counters and construction timings; they establish no allocation-leak, memory-saving, or cross-vendor performance conclusion.

Counter-fallback calibration

On the previous 749b0e06 revision, PrivateUsage remained zero. The updated suite selects PagefileUsage on this Wine prefix and now reports non-zero batch deltas.

I repeated the independent bounded calibration in three fresh processes: K32GetProcessMemoryInfo returned TRUE, PrivateUsage stayed 0 -> 0 -> 0, and both PagefileUsage and WorkingSetSize increased by 16,781,312 bytes after touching an owned 16 MiB allocation, then fell after freeing it. The selected fallback responds to this controlled allocation. This is a separate small C probe; no PR source was modified. No equivalence with native-Windows PrivateUsage measurements is established here.

All three suite summaries, 57 tiling rows, 18 PSO rows, three counter probes, source inventories and executable hashes were checked independently.

Not tested

Native Windows, matched-DXIL cross-vendor performance, draw/dispatch correctness, physical backing costs of the reserved textures, retail/smoke workloads, FPS, or the full workspace suite. No leak or memory-saving conclusion from these measurements.

AI use

OpenAI Codex (GPT-6; exact serving variant not exposed) reviewed the added test, ran and verified the suite and counter control, and drafted this report. Publication authorized by the account owner.

**@⁠SzczepanGrela** on GitHub · 2026-11-26 13:44 UTC · [original](https://github.com/xcl-dev/xcl/pull/2791#issuecomment-7193768826) · edited 2026-11-26 14:14 UTC Updated for exact head `442775d9b55a25341799a622b3bfb36ca9fe8b6c`: the PagefileUsage fallback is verified on discrete AMD RDNA4 / Wine. **Tested** - RX 9070 16 GB (RADV GFX1201), Ryzen 7 7700, CachyOS kernel 7.3.0-5-cachyos, Mesa 26.3.1-arch3.5, GE-Proton11-12 Wine 11.0 Staging, vkd3d-proton `8293130ebe370b1+` (local asserts-disabled build), DXC/DXIL 1.9.2602.17, Rust 1.97.1, release `x86_64-pc-windows-gnu`. - Unmodified pinned source archive. The new test's Git blob is `91f0b4d945d787a40a801526271f7f5db6a61cfb`; every existing source file equals main `b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7`. No runtime A/B claim for this test-only change. - Built with `cargo test --offline --locked --release --target x86_64-pc-windows-gnu -p xcl --test d3d12_amd_nvidia_parity --no-run`. - Three fresh Windows test processes through GE-Proton Wine, `--nocapture --test-threads=1`, `XCL_ADAPTER=AMD Radeon RX 9070`, `XCL_REQUIRE_GPU=wave64`, `XCL_NETWORK=0`. Separate fresh private XCL, vkd3d and Mesa cache directories per process; no concurrent XCL build or test from this workflow. - **4 passed / 0 failed / 0 ignored in each process; zero runtime skip markers.** All 19 reserved-resource cases succeeded, and every tiling row was identical across the three runs. The complete suite was rerun after the `442775d9` counter-selection update. The query-error/counter-selection regression passed in all three processes. Previous `749b0e06` results are archived separately. **Capabilities reported by this stack** PCI `1002:7550`, dedicated VRAM 16,304 MiB, UMA/coherent UMA false, tiled/heap/binding tiers `4/2/3`, wave operations true, wave sizes `32..64`, total lanes 3584, raw mesh tier `10`. At the WS9 snapshots, local budget/usage was 14,493/2 MiB and nonlocal budget/usage 15,544/0 MiB in all three processes. **Reserved-resource queries** These are `GetResourceTiling` footprints and `GetResourceAllocationInfo` results with `LAYOUT_UNKNOWN`, not measured physical allocation of the reserved textures. KiB throughout: | Case | Tiles | Tile footprint | Allocation info | | --- | ---: | ---: | ---: | | 3D 33x33x33 RGBA16F, m1 | 18 | 1152 | 512 | | 3D 33x33x33 RGBA16F, m6 | 20 | 1280 | 832 | | 3D 64x64x64 RGBA16F, m1 | 32 | 2048 | 2048 | | 3D 64x64x64 RGBA16F, m7 | 37 | 2368 | 2816 | | 3D 160x90x64 RGBA16F, m1 | 120 | 7680 | 7680 | | 3D 65x65x65 R11G11B10F, m1 | 45 | 2880 | 1664 | | 3D 128x128x32 RGBA8, m8 | 38 | 2432 | 2816 | | 1920x1080 RGBA16F RT | 255 | 16320 | 16320 | | 3840x2160 RGBA16F RT | 1020 | 65280 | 65280 | | 1920x1080 D32F DSV | 135 | 8640 | 8832 | | 1920x1080 RGBA8 MSAA4 | 510 | 32640 | 36864 | | 512x512 RGBA16F MSAA4 | 128 | 8192 | 8192 | | 256x256 RGBA8, m9 | 6 | 384 | 384 | | 64x64 RGBA8, m7 | 1 | 64 | 64 | | 32x32 RGBA16F, m6 | 1 | 64 | 64 | | 1024x1024 BC7, m11 | 22 | 1408 | 1408 | | 256x256 BC7, m9 | 2 | 128 | 128 | | Cube 128x128x6 RGBA16F, m8 | 18 | 1152 | 1152 | | Cube 64x64x6 RGBA16F, m7 | 6 | 384 | 320 | **PSO-construction observations on 442775d9** All three processes logged `commit_src=PagefileUsage`. The suite's source-consistency assertions passed for every snapshot. Process-counter columns below are deltas relative to each batch's preceding snapshot, in KiB; ranges cover the three fresh processes. | Batch | Average DXIL B | Create time ms | PagefileUsage live delta KiB | PagefileUsage after Release delta KiB | DXGI local live / after KiB | | --- | ---: | ---: | ---: | ---: | ---: | | cs_small_128_distinct | 2919 | 25.0..26.0 | 1048..1052 | 1048..1052 | 0 / 0 | | cs_med_128_wave1 | 4920 | 222.2..226.0 | 660..696 | 596..696 | 1024 / 0 | | cs_med_128_wave2_new | 4923 | 223.1..224.3 | 64..136 | 0..8 | 2048 / 0 | | cs_med_128_identical | 4924 | 3.0 | 0..4 | 0 | 0 / 0 | | cs_large_32_distinct | 33089 | 765.7..772.0 | 9036..9444 | 9036..9444 | 4096 / 0 | | gfx_vs_ps_128_distinct | 5727 | 52.0..56.0 | 104..168 | 64..128 | 0 / 0 | Cumulative process-counter delta after the final batch was 10828..11236 KiB. Nonlocal deltas were zero throughout. These are the test's API counters and construction timings; they establish no allocation-leak, memory-saving, or cross-vendor performance conclusion. **Counter-fallback calibration** On the previous `749b0e06` revision, `PrivateUsage` remained zero. The updated suite selects `PagefileUsage` on this Wine prefix and now reports non-zero batch deltas. I repeated the independent bounded calibration in three fresh processes: `K32GetProcessMemoryInfo` returned TRUE, `PrivateUsage` stayed `0 -> 0 -> 0`, and both `PagefileUsage` and `WorkingSetSize` increased by 16,781,312 bytes after touching an owned 16 MiB allocation, then fell after freeing it. The selected fallback responds to this controlled allocation. This is a separate small C probe; no PR source was modified. No equivalence with native-Windows `PrivateUsage` measurements is established here. All three suite summaries, 57 tiling rows, 18 PSO rows, three counter probes, source inventories and executable hashes were checked independently. **Not tested** Native Windows, matched-DXIL cross-vendor performance, draw/dispatch correctness, physical backing costs of the reserved textures, retail/smoke workloads, FPS, or the full workspace suite. No leak or memory-saving conclusion from these measurements. **AI use** OpenAI Codex (GPT-6; exact serving variant not exposed) reviewed the added test, ran and verified the suite and counter control, and drafted this report. Publication authorized by the account owner.
Author
Owner

@⁠Prime1997 on GitHub · 2026-11-26 13:47 UTC · original · reviewed

Good as a bounded measurement fixture; broader parity validation remains blocked. At clean head 749b0e06c1860b8c52d5032b0a6efe776edbc205, ws9_adapter_capabilities_and_dxgi_budget and ws3_reserved_texture_tiling_overcommit_matrix both passed again, alongside the new pure injected-query regression: 3 passed, 0 failed, 0 ignored, 0 skipped. All 19 WS3 cases produced rows; none were rejected as unsupported.

The raw logs identify NVIDIA GeForce RTX 3060 Ti, vendor 0x10de, device 0x2489, wave min/max32, tiled tier4, heap tier2 and bind tier3. Examples: the 33x33x33 RGBA16F single-mip resource reported1152KiB in tiles versus640KiB allocation info; the 64x64 RGBA8 mip chain reported64KiB versus24KiB in the console4KiB estimate. These are allocation/tiling query results, not measured resident memory or proof of console-layout equivalence.

Build: cargo test --locked --offline -p xcl --test d3d12_amd_nvidia_parity --no-run --message-format=json --target-dir <isolated-target>. Each exact filter ran separately with --exact --test-threads=1 --nocapture. Windows 11 Pro26200, i5-10400,32GiB RAM, Rust1.100.0 MSVC debug. No tile heaps, mappings or shader dispatch were exercised by these two fixtures.

Not tested: AMD comparison, WS7's672 measured PSOs plus one warmup, memory reclamation, full suite or retail smoke. The updated required process/local queries now fail explicitly, while unavailable NON_LOCAL stays distinct from a true zero. The pure mem_snap_rejects_required_query_failures_and_marks_unavailable_nonlocal regression passed, covering both failures and that zero/unavailable distinction. A passing query batch does not establish AMD/NVIDIA parity or debug-layer coverage.

AI use: Codex (GPT-6) reviewed the full fixture and verified selected native results. Optional temporary Discord for coordinating contributor work, testing and comparing results.

**@⁠Prime1997** on GitHub · 2026-11-26 13:47 UTC · [original](https://github.com/xcl-dev/xcl/pull/2791#pullrequestreview-6075217339) · **reviewed** **Good as a bounded measurement fixture; broader parity validation remains blocked.** At clean head `749b0e06c1860b8c52d5032b0a6efe776edbc205`, `ws9_adapter_capabilities_and_dxgi_budget` and `ws3_reserved_texture_tiling_overcommit_matrix` both passed again, alongside the new pure injected-query regression: **3 passed, 0 failed, 0 ignored, 0 skipped**. All **19** WS3 cases produced rows; none were rejected as unsupported. The raw logs identify **NVIDIA GeForce RTX 3060 Ti**, vendor `0x10de`, device `0x2489`, wave min/max32, tiled tier4, heap tier2 and bind tier3. Examples: the 33x33x33 RGBA16F single-mip resource reported1152KiB in tiles versus640KiB allocation info; the 64x64 RGBA8 mip chain reported64KiB versus24KiB in the console4KiB estimate. These are allocation/tiling query results, not measured resident memory or proof of console-layout equivalence. Build: `cargo test --locked --offline -p xcl --test d3d12_amd_nvidia_parity --no-run --message-format=json --target-dir <isolated-target>`. Each exact filter ran separately with `--exact --test-threads=1 --nocapture`. Windows 11 Pro26200, i5-10400,32GiB RAM, Rust1.100.0 MSVC debug. No tile heaps, mappings or shader dispatch were exercised by these two fixtures. **Not tested:** AMD comparison, WS7's672 measured PSOs plus one warmup, memory reclamation, full suite or retail smoke. The updated required process/local queries now fail explicitly, while unavailable NON_LOCAL stays distinct from a true zero. The pure mem_snap_rejects_required_query_failures_and_marks_unavailable_nonlocal regression passed, covering both failures and that zero/unavailable distinction. A passing query batch does not establish AMD/NVIDIA parity or debug-layer coverage. AI use: Codex (GPT-6) reviewed the full fixture and verified selected native results. Optional temporary [Discord](https://discord.gg/gK3y7WRRY) for coordinating contributor work, testing and comparing results.
Author
Owner

@⁠DarkPanda69 on GitHub · 2026-11-26 13:51 UTC · original · edited 2026-11-26 14:24 UTC

Update for head 442775d: same result. Applied on main b49be18, the suite gives 4 passed, 0 failed, 0 SKIPPED on both the RX 9070 XT and the RTX 3060 (selected with XCL_ADAPTER), and WS7_PSO_ADAPTER logs commit_src=PrivateUsage on both.


Discrete RDNA4 run (listed as untested), with an RTX 3060 in the same PC: all 4 tests pass on both cards with no skips. The rows where the two drivers differ are below.

Head 749b0e0 applied on main b49be18, debug, Windows 11 Pro 26200, Ryzen 7 5800X. cargo test -p xcl --test d3d12_amd_nvidia_parity -- --nocapture --test-threads=1, once per card with XCL_ADAPTER (the *_ADAPTER lines confirm the card):

  • RX 9070 XT (RDNA4, 32.0.32029.2010): 4 passed. WS9: vendor 0x1002, 16 253 MiB dedicated, waves 32–64, tiled tier 4, local budget 15 450 MiB.
  • RTX 3060 (Ampere, 32.0.16.1088): 4 passed. WS9: vendor 0x10de, 12 115 MiB dedicated, waves 32 only, tiled tier 4, local budget 11 347 MiB.

WS3: rows that differ between the cards (all other rows are identical):

texture RX 9070 XT tiles / pc / alloc KiB RTX 3060 tiles / pc / alloc KiB
3D 33³ RGBA16F m1 18 / 1152 / 512 18 / 1152 / 640
3D 33³ RGBA16F m6 20 / 1280 / 832 (std 2, pack 4) 19 / 1216 / 640 (std 1, pack 5)
3D 64³ RGBA16F m7 37 / 2368 / 2816 37 / 2368 / 2368
3D 65³ R11G11B10F m1 45 / 2880 / 1664 45 / 2880 / 1856
3D 128×128×32 RGBA8 m8 38 / 2432 / 2816 (std 3, pack 5) 37 / 2368 / 2368 (std 2, pack 6)
2D 1920×1080 RGBA16F RT 255 / 16320 / 16320 255 / 16320 / 17280
2D 1920×1080 D32F DSV 135 / 8640 / 8832 135 / 8640 / 8640

So the packed-mip split, and with it the tile count, differs for small mipped 3D textures. The driver's alloc differs for several formats, in both directions.

WS7: driver pipeline memory, single run per card (commit_kib total per group, then per PSO):

group RX 9070 XT RTX 3060
cs_small_128_distinct +2 184 (+17.1) +11 496 (+89.8)
cs_med_128_wave1 +8 364 (+65.3) +1 776 (+13.9)
cs_med_128_wave2_new +5 736 (+44.8) +120 (+0.9)
cs_med_128_identical +660 (+5.2) 0
cs_large_32_distinct +31 536 (+985.5) −1 392 (−43.5)
gfx_vs_ps_128_distinct +7 788 (+60.8) +1 048 (+8.2)
cumulative after release +45 664 +8 916

vram_loc grew on the RX 9070 XT (cumulative +1 792 KiB) and stayed 0 on the RTX 3060. These are single runs, and commit deltas are noisy: note the negative NVIDIA row. I would not read more into them than the order of magnitude.

Not tested: repeated runs for WS7 variance, RDNA2/3 discrete, Intel, a title.
AI use: Claude Code (Claude Opus 5.5) ran the suite on this machine and wrote this report.

**@⁠DarkPanda69** on GitHub · 2026-11-26 13:51 UTC · [original](https://github.com/xcl-dev/xcl/pull/2791#issuecomment-7193925886) · edited 2026-11-26 14:24 UTC **Update for head `442775d`:** same result. Applied on `main` `b49be18`, the suite gives 4 passed, 0 failed, 0 SKIPPED on both the RX 9070 XT and the RTX 3060 (selected with `XCL_ADAPTER`), and `WS7_PSO_ADAPTER` logs `commit_src=PrivateUsage` on both. --- Discrete RDNA4 run (listed as untested), with an RTX 3060 in the same PC: all 4 tests pass on both cards with no skips. The rows where the two drivers differ are below. Head `749b0e0` applied on `main` `b49be18`, debug, Windows 11 Pro 26200, Ryzen 7 5800X. `cargo test -p xcl --test d3d12_amd_nvidia_parity -- --nocapture --test-threads=1`, once per card with `XCL_ADAPTER` (the `*_ADAPTER` lines confirm the card): - **RX 9070 XT** (RDNA4, 32.0.32029.2010): 4 passed. WS9: vendor 0x1002, 16 253 MiB dedicated, waves 32–64, tiled tier 4, local budget 15 450 MiB. - **RTX 3060** (Ampere, 32.0.16.1088): 4 passed. WS9: vendor 0x10de, 12 115 MiB dedicated, waves 32 only, tiled tier 4, local budget 11 347 MiB. **WS3: rows that differ between the cards** (all other rows are identical): | texture | RX 9070 XT tiles / pc / alloc KiB | RTX 3060 tiles / pc / alloc KiB | |---|---|---| | 3D 33³ RGBA16F m1 | 18 / 1152 / **512** | 18 / 1152 / **640** | | 3D 33³ RGBA16F m6 | **20** / 1280 / 832 (std 2, pack 4) | **19** / 1216 / 640 (std 1, pack 5) | | 3D 64³ RGBA16F m7 | 37 / 2368 / **2816** | 37 / 2368 / **2368** | | 3D 65³ R11G11B10F m1 | 45 / 2880 / **1664** | 45 / 2880 / **1856** | | 3D 128×128×32 RGBA8 m8 | **38** / 2432 / 2816 (std 3, pack 5) | **37** / 2368 / 2368 (std 2, pack 6) | | 2D 1920×1080 RGBA16F RT | 255 / 16320 / **16320** | 255 / 16320 / **17280** | | 2D 1920×1080 D32F DSV | 135 / 8640 / **8832** | 135 / 8640 / **8640** | So the packed-mip split, and with it the tile count, differs for small mipped 3D textures. The driver's `alloc` differs for several formats, in both directions. **WS7: driver pipeline memory**, single run per card (`commit_kib` total per group, then per PSO): | group | RX 9070 XT | RTX 3060 | |---|---|---| | cs_small_128_distinct | +2 184 (+17.1) | +11 496 (+89.8) | | cs_med_128_wave1 | +8 364 (+65.3) | +1 776 (+13.9) | | cs_med_128_wave2_new | +5 736 (+44.8) | +120 (+0.9) | | cs_med_128_identical | +660 (+5.2) | 0 | | cs_large_32_distinct | +31 536 (+985.5) | −1 392 (−43.5) | | gfx_vs_ps_128_distinct | +7 788 (+60.8) | +1 048 (+8.2) | | cumulative after release | +45 664 | +8 916 | `vram_loc` grew on the RX 9070 XT (cumulative +1 792 KiB) and stayed 0 on the RTX 3060. These are single runs, and commit deltas are noisy: note the negative NVIDIA row. I would not read more into them than the order of magnitude. Not tested: repeated runs for WS7 variance, RDNA2/3 discrete, Intel, a title. AI use: Claude Code (Claude Opus 5.5) ran the suite on this machine and wrote this report.
Author
Owner

@⁠GustavoEllwanger on GitHub · 2026-11-26 13:56 UTC · original

Thanks @⁠Aniseto, @⁠SzczepanGrela, and @⁠DarkPanda69 for the discrete RDNA4 (RX 9070 / RX 9070 XT), RTX 3060 Ti, and RTX 3060 runs! The same-host RX 9070 XT vs RTX 3060 results are especially helpful as discrete RDNA4 confirmation of both the WS3 3D packed-mip split and WS7 retention patterns.

Addressed @⁠Aniseto's Wine K32GetProcessMemoryInfo finding in 442775d9:

  • select_process_commit(PrivateUsage, PagefileUsage) uses PrivateUsage when > 0 (unchanged on native Windows), falls back to PagefileUsage when PrivateUsage == 0 (the counter populated by Wine/GE-Proton), and returns Err if both are 0 so an unpopulated counter cannot silently emit zero commit deltas.
  • WS7_PSO_ADAPTER now logs commit_src=PrivateUsage|PagefileUsage and asserts the same counter source is used across every snapshot in a batch.
  • Extended mem_snap_rejects_required_query_failures_and_marks_unavailable_nonlocal to cover the PrivateUsage preference, PagefileUsage Wine fallback, and both-zero rejection.

Re-tested after the update

  • XCL_ADAPTER=5060 cargo test -p xcl --test d3d12_amd_nvidia_parity -- --nocapture --test-threads=1 (NVIDIA RTX 5060): 4 passed; 0 failed; 0 ignored (0 skipped, commit_src=PrivateUsage).
  • XCL_ADAPTER=Radeon cargo test -p xcl --test d3d12_amd_nvidia_parity -- --nocapture --test-threads=1 (AMD Radeon RDNA2 iGPU): 4 passed; 0 failed; 0 ignored (0 skipped, commit_src=PrivateUsage).
  • XCL_ADAPTER=warp cargo test -p xcl --test d3d12_amd_nvidia_parity -- --nocapture --test-threads=1: 4 passed; 0 failed; 0 ignored (unit test runs, 3 GPU tests SKIPPED).
**@⁠GustavoEllwanger** on GitHub · 2026-11-26 13:56 UTC · [original](https://github.com/xcl-dev/xcl/pull/2791#issuecomment-7194059006) Thanks @⁠Aniseto, @⁠SzczepanGrela, and @⁠DarkPanda69 for the discrete RDNA4 (RX 9070 / RX 9070 XT), RTX 3060 Ti, and RTX 3060 runs! The same-host RX 9070 XT vs RTX 3060 results are especially helpful as discrete RDNA4 confirmation of both the WS3 3D packed-mip split and WS7 retention patterns. Addressed @⁠Aniseto's Wine `K32GetProcessMemoryInfo` finding in 442775d9: - `select_process_commit(PrivateUsage, PagefileUsage)` uses `PrivateUsage` when `> 0` (unchanged on native Windows), falls back to `PagefileUsage` when `PrivateUsage == 0` (the counter populated by Wine/GE-Proton), and returns `Err` if both are `0` so an unpopulated counter cannot silently emit zero commit deltas. - `WS7_PSO_ADAPTER` now logs `commit_src=PrivateUsage|PagefileUsage` and asserts the same counter source is used across every snapshot in a batch. - Extended `mem_snap_rejects_required_query_failures_and_marks_unavailable_nonlocal` to cover the `PrivateUsage` preference, `PagefileUsage` Wine fallback, and both-zero rejection. **Re-tested after the update** - `XCL_ADAPTER=5060 cargo test -p xcl --test d3d12_amd_nvidia_parity -- --nocapture --test-threads=1` (NVIDIA RTX 5060): `4 passed; 0 failed; 0 ignored` (0 skipped, `commit_src=PrivateUsage`). - `XCL_ADAPTER=Radeon cargo test -p xcl --test d3d12_amd_nvidia_parity -- --nocapture --test-threads=1` (AMD Radeon RDNA2 iGPU): `4 passed; 0 failed; 0 ignored` (0 skipped, `commit_src=PrivateUsage`). - `XCL_ADAPTER=warp cargo test -p xcl --test d3d12_amd_nvidia_parity -- --nocapture --test-threads=1`: `4 passed; 0 failed; 0 ignored` (unit test runs, 3 GPU tests `SKIPPED`).
Author
Owner

@⁠Aniseto on GitHub · 2026-11-26 14:14 UTC · original

Re-ran the parity suite at 442775d9 after the head moved (48 lines changed in the test file, adding a Wine PagefileUsage fallback; on native Windows the output now shows commit_src=PrivateUsage).

Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, 32-lane waves only, 16 GB) driver 32.0.16.2124, Intel Core i5-12400F, 64 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09) MSVC 14.44.35207, DXC 1.9.2609.5, debug build.

XCL_ADAPTER=nvidia cargo test -p xcl --test d3d12_amd_nvidia_parity -- --nocapture --test-threads=1
4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out      (exit 0)

All four pass here. The tiling matrix is identical to my earlier reports; the PSO memory numbers vary with driver-cache warmth and are not directly comparable between runs. This is a new report following the ones at 4f9ef20e and 749b0e06, not an edit.

Not tested: a discrete AMD GPU here, a retail title, smoke.ps1, release profile, Wine, game data.

AI-assisted (OpenCode), model: DeepSeek V4.1 Flash Free - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used.

**@⁠Aniseto** on GitHub · 2026-11-26 14:14 UTC · [original](https://github.com/xcl-dev/xcl/pull/2791#issuecomment-7194495290) Re-ran the parity suite at `442775d9` after the head moved (48 lines changed in the test file, adding a Wine `PagefileUsage` fallback; on native Windows the output now shows `commit_src=PrivateUsage`). Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, 32-lane waves only, 16 GB) driver 32.0.16.2124, Intel Core i5-12400F, 64 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09) MSVC 14.44.35207, DXC 1.9.2609.5, debug build. ``` XCL_ADAPTER=nvidia cargo test -p xcl --test d3d12_amd_nvidia_parity -- --nocapture --test-threads=1 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out (exit 0) ``` All four pass here. The tiling matrix is identical to my earlier reports; the PSO memory numbers vary with driver-cache warmth and are not directly comparable between runs. This is a new report following the ones at `4f9ef20e` and `749b0e06`, not an edit. Not tested: a discrete AMD GPU here, a retail title, `smoke.ps1`, release profile, Wine, game data. AI-assisted (OpenCode), model: **DeepSeek V4.1 Flash Free** - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used.
Author
Owner

@⁠SlopTart on GitHub · 2026-11-26 14:37 UTC · original

Dual-vendor run on Linux/Wine, both rigs green at 442775d9

First Linux/Wine rows for this suite I think, both vendors from the same test author's checklist, same commit, same DXC build (dxcompiler 1.9.2609.5):

cargo test --release --locked -p xcl --test d3d12_amd_nvidia_parity --target x86_64-pc-windows-gnu -- --nocapture --test-threads=1
  • Rig A, AMD Radeon RX 7900 XT (RADV NAVI31, Mesa 26.2.5), Arch, wine-11.0 Proton: 4 passed; 0 failed; 0 ignored (6.37s)
  • Rig B, NVIDIA GeForce GTX 1070 (driver 550.163.01), Debian 13, wine-10.0 stock: 4 passed; 0 failed; 0 ignored (10.40s)

The new Wine commit-counter path works. Both lanes report WS7_PSO_ADAPTER ... commit_src=PagefileUsage, so the fallback added in 442775d9 fires under both wine-11 Proton and stock Debian wine-10, and the both-zero rejection never triggered spuriously. mem_snap_rejects_required_query_failures... also passes on both.

WS9 identity (verbatim):

  • Rig A: name=AMD Radeon RX 7900 XT (RADV NAVI31) | vendor=0x1002 | device=0x744c | ded_vram_mib=20464 | shared_sys_mib=47064 | tiled_tier=4 | heap_tier=2 | bind_tier=3 | wave_min=32 wave_max=64 | total_lanes=5376 | mesh_tier=10 | local_budget_mib=2404 nonlocal_budget_mib=45582
  • Rig B: name=NVIDIA GeForce GTX 1070 | vendor=0x1002 | device=0x73df | ded_vram_mib=8160 | shared_sys_mib=11939 | tiled_tier=4 | heap_tier=1 | bind_tier=3 | wave_min=32 wave_max=32 | total_lanes=1920 | mesh_tier=0 | local_budget_mib=476 nonlocal_budget_mib=11939

Flagging an oddity, not a failure: on Rig B the adapter name is correctly the GTX 1070 but vendor=0x1002 / device=0x73df are AMD PCI ids. Rig B has no AMD GPU in it (i5-10600 + GTX 1070, nvidia-smi confirms). Looks like wine-10 dxgi reporting wrong PCI ids under WINEDLLOVERRIDES d3d12=n; the WS7_PSO_ADAPTER line there shows the correct NVIDIA GeForce GTX 1070.

WS7, the vendor split (cumulative KiB after 128-PSO batches):

batch Rig A RDNA3 Rig B Pascal
cs_med_128_wave1 vram_loc +1024, released 0 vram_loc +4096, retained after release (+4096 cum)
cs_med_128_wave2_new vram_loc +2048 +0
cs_med_128_identical +0 (dedup works) +0 (dedup works)
cs_large_32_distinct vram_loc +4096, commit +436 vram all zero, nonlocal +4096, commit +0
gfx_vs_ps_128 commit 0, vram 0 commit +364, vram 0

Identical-DXIL dedup holds on both vendors under Wine. Divergences are all in where distinct-PSO code lands: RDNA3 keeps it local, Pascal either keeps it (wave1) or pushes it to nonlocal (large batch). On the 16 GB / 8 GB box the retained 4 MiB did not shrink after release, that pattern would matter on titles with many distinct wave1 computes.

WS3 tiling: ratios track within vendor granularity noise; both lanes report c64k/c4k = 0 for the two MSAA rows (packed mips refused on MSAA on both vendors), identical pc/c4k for 2D rows. Small deltas only on odd 3D dims (e.g. 3D_33x33x33_m6: alloc 832 vs 640 KiB) and cube faces (rig tiles=6, Pascal tiles=5), consistent with different tile granularity, same shape choices.

Tested: head 442775d9, release profile, gpu:: NOT skipped (the suite is the GPU measurement), XCL_NETWORK=0, full env per repo docs. Not tested: native Linux without Wine; XCL_ADAPTER selection (default adapter both lanes).

Rig A: Ryzen 9 9900X, 96 GB DDR5, RX 7900 XT 20 GB, kernel 7.2.15, Mesa 26.2.5 RADV, rustc 1.94.0. Rig B: i5-10600, 16 GB DDR4, GTX 1070 8 GB, wine-10.0.

Hermes agent (local Qwen-class) ran the tests and drafted this; I checked it before posting.

**@⁠SlopTart** on GitHub · 2026-11-26 14:37 UTC · [original](https://github.com/xcl-dev/xcl/pull/2791#issuecomment-7195082139) **Dual-vendor run on Linux/Wine, both rigs green at `442775d9`** First Linux/Wine rows for this suite I think, both vendors from the same test author's checklist, same commit, same DXC build (dxcompiler 1.9.2609.5): ``` cargo test --release --locked -p xcl --test d3d12_amd_nvidia_parity --target x86_64-pc-windows-gnu -- --nocapture --test-threads=1 ``` - Rig A, AMD Radeon RX 7900 XT (RADV NAVI31, Mesa 26.2.5), Arch, wine-11.0 Proton: `4 passed; 0 failed; 0 ignored` (6.37s) - Rig B, NVIDIA GeForce GTX 1070 (driver 550.163.01), Debian 13, wine-10.0 stock: `4 passed; 0 failed; 0 ignored` (10.40s) **The new Wine commit-counter path works.** Both lanes report `WS7_PSO_ADAPTER ... commit_src=PagefileUsage`, so the fallback added in 442775d9 fires under both wine-11 Proton and stock Debian wine-10, and the both-zero rejection never triggered spuriously. `mem_snap_rejects_required_query_failures...` also passes on both. **WS9 identity (verbatim):** - Rig A: `name=AMD Radeon RX 7900 XT (RADV NAVI31) | vendor=0x1002 | device=0x744c | ded_vram_mib=20464 | shared_sys_mib=47064 | tiled_tier=4 | heap_tier=2 | bind_tier=3 | wave_min=32 wave_max=64 | total_lanes=5376 | mesh_tier=10 | local_budget_mib=2404 nonlocal_budget_mib=45582` - Rig B: `name=NVIDIA GeForce GTX 1070 | vendor=0x1002 | device=0x73df | ded_vram_mib=8160 | shared_sys_mib=11939 | tiled_tier=4 | heap_tier=1 | bind_tier=3 | wave_min=32 wave_max=32 | total_lanes=1920 | mesh_tier=0 | local_budget_mib=476 nonlocal_budget_mib=11939` Flagging an oddity, not a failure: on Rig B the adapter *name* is correctly the GTX 1070 but `vendor=0x1002 / device=0x73df` are AMD PCI ids. Rig B has no AMD GPU in it (i5-10600 + GTX 1070, nvidia-smi confirms). Looks like wine-10 dxgi reporting wrong PCI ids under `WINEDLLOVERRIDES d3d12=n`; the `WS7_PSO_ADAPTER` line there shows the correct `NVIDIA GeForce GTX 1070`. **WS7, the vendor split (cumulative KiB after 128-PSO batches):** | batch | Rig A RDNA3 | Rig B Pascal | |---|---|---| | cs_med_128_wave1 | vram_loc +1024, released 0 | vram_loc +4096, **retained after release** (+4096 cum) | | cs_med_128_wave2_new | vram_loc +2048 | +0 | | cs_med_128_identical | +0 (dedup works) | +0 (dedup works) | | cs_large_32_distinct | vram_loc +4096, commit +436 | vram all zero, **nonlocal +4096**, commit +0 | | gfx_vs_ps_128 | commit 0, vram 0 | commit +364, vram 0 | Identical-DXIL dedup holds on both vendors under Wine. Divergences are all in *where* distinct-PSO code lands: RDNA3 keeps it local, Pascal either keeps it (wave1) or pushes it to nonlocal (large batch). On the 16 GB / 8 GB box the retained 4 MiB did not shrink after release, that pattern would matter on titles with many distinct wave1 computes. **WS3 tiling:** ratios track within vendor granularity noise; both lanes report `c64k/c4k = 0` for the two MSAA rows (packed mips refused on MSAA on both vendors), identical `pc/c4k` for 2D rows. Small deltas only on odd 3D dims (e.g. `3D_33x33x33_m6`: alloc 832 vs 640 KiB) and cube faces (rig tiles=6, Pascal tiles=5), consistent with different tile granularity, same shape choices. **Tested:** head `442775d9`, release profile, `gpu::` NOT skipped (the suite is the GPU measurement), `XCL_NETWORK=0`, full env per repo docs. **Not tested:** native Linux without Wine; XCL_ADAPTER selection (default adapter both lanes). Rig A: Ryzen 9 9900X, 96 GB DDR5, RX 7900 XT 20 GB, kernel 7.2.15, Mesa 26.2.5 RADV, rustc 1.94.0. Rig B: i5-10600, 16 GB DDR4, GTX 1070 8 GB, wine-10.0. Hermes agent (local Qwen-class) ran the tests and drafted this; I checked it before posting.
Author
Owner

@⁠Smokeyqdqd on GitHub · 2026-11-26 16:35 UTC · original

Tested

I verified that the local checkout matched the head of PR #2791 at 442775d9b55a25341799a622b3bfb36ca9fe8b6c. The run used Windows 11 build 26200, an AMD Ryzen 7 5800X, an NVIDIA GeForce RTX 3060 12 GB with driver 610.88, and rustc 1.100.0 (x86_64-pc-windows-msvc, debug test profile).

With XCL_ADAPTER=3060, I ran cargo test --offline --locked -p xcl --test d3d12_amd_nvidia_parity -- --nocapture --test-threads=1. Cargo reported 4 passed, 0 failed, 0 ignored in 16.71 seconds. The output contained zero SKIPPED lines.

All three GPU tests passed on the RTX 3060: ws3_reserved_texture_tiling_overcommit_matrix, ws7_driver_pipeline_memory_for_same_dxil, and ws9_adapter_capabilities_and_dxgi_budget. The memory-query error-handling test, mem_snap_rejects_required_query_failures_and_marks_unavailable_nonlocal, also passed.

Not tested

Full workspace suite, WARP, other GPU vendors, and retail titles.

AI use

Codex verified the commit, ran the tests, checked the log for skips, and drafted this report. Codex (GPT-6.2 Astra) prepared it for publication.

**@⁠Smokeyqdqd** on GitHub · 2026-11-26 16:35 UTC · [original](https://github.com/xcl-dev/xcl/pull/2791#issuecomment-7197853587) **Tested** I verified that the local checkout matched the head of PR #2791 at `442775d9b55a25341799a622b3bfb36ca9fe8b6c`. The run used Windows 11 build 26200, an AMD Ryzen 7 5800X, an NVIDIA GeForce RTX 3060 12 GB with driver 610.88, and rustc 1.100.0 (`x86_64-pc-windows-msvc`, debug test profile). With `XCL_ADAPTER=3060`, I ran `cargo test --offline --locked -p xcl --test d3d12_amd_nvidia_parity -- --nocapture --test-threads=1`. Cargo reported **4 passed, 0 failed, 0 ignored** in 16.71 seconds. The output contained zero `SKIPPED` lines. All three GPU tests passed on the RTX 3060: `ws3_reserved_texture_tiling_overcommit_matrix`, `ws7_driver_pipeline_memory_for_same_dxil`, and `ws9_adapter_capabilities_and_dxgi_budget`. The memory-query error-handling test, `mem_snap_rejects_required_query_failures_and_marks_unavailable_nonlocal`, also passed. **Not tested** Full workspace suite, WARP, other GPU vendors, and retail titles. **AI use** Codex verified the commit, ran the tests, checked the log for skips, and drafted this report. Codex (GPT-6.2 Astra) prepared it for publication.
Author
Owner

@⁠Decodere on GitHub · 2026-11-26 22:16 UTC · original

Independent desktop NVIDIA (8 GB RTX 4060) verification of PR #2791 at head 442775d9b55a25341799a622b3bfb36ca9fe8b6c (3 commits 4f9ef20e -> 749b0e06 -> 442775d9 on merge-base b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7, pre-#2555 ancestor of main; parent 749b0e06c1860b8c52d5032b0a6efe776edbc205).

Environment

  • GPU: NVIDIA GeForce RTX 4060 (8 GB / 7956 MiB dedicated VRAM, 16324 MiB shared system memory, Wave32-only Ada), driver 32.0.16.2114 (NVIDIA 621.14, WDDM 3.2)
  • CPU / RAM / OS: Intel Core i5-11400F (6C / 12T), 32 GB RAM (31.9 GiB usable), Windows 11 Home 26200 (native Windows, Developer Mode off)
  • Toolchain: rustc 1.100.0 (0ef1bc386 2026-11-09) MSVC, DXC 1.9.2609.5, --release

Release test results (442775d9)

Command Result
cargo test --release -p xcl --test d3d12_amd_nvidia_parity -- --test-threads=1 --nocapture (3 consecutive runs on RTX 4060) 4 passed; 0 failed; 0 ignored; 0 filtered out × 3 (14.41s cold driver cache, 7.37s, 7.36s)
XCL_ADAPTER=warp cargo test --release -p xcl --test d3d12_amd_nvidia_parity -- --test-threads=1 --nocapture 4 passed; 0 failed; 0 ignored; 0 filtered out (0.00s; mem_snap_rejects_required_query_failures_and_marks_unavailable_nonlocal passed; all 3 GPU probes printed SKIPPED ...: WARP requested via XCL_ADAPTER)

RTX 4060 8 GB telemetry highlights (--nocapture)

  • WS9 adapter & budget:
    WS9_ADAPTER | name=NVIDIA GeForce RTX 4060 | vendor=0x10de | device=0x2882 | ded_vram_mib=7956 | shared_sys_mib=16324 | uma=false | coherent_uma=false | tiled_tier=4 | heap_tier=2 | bind_tier=3 | wave_ops=true | wave_min=32 | wave_max=32 | total_lanes=3072 | mesh_tier=10 | local_budget_mib=7188 | local_used_mib=7 | nonlocal_budget_mib=15556 | nonlocal_used_mib=7
  • WS3 reserved-texture tiling overcommit matrix (19 rows, identical across all 3 runs):
    • Peak 3D tile overcommit: 3D_33x33x33_RGBA16F_m6 (19 tiles, pc_kib=1216, alloc_kib=640, pc/alloc=1.90x, pc/c4k=1.52x, shape=32x16x16), 3D_33x33x33_RGBA16F_m1 (pc/alloc=1.80x, pc/c4k=2.30x), 3D_65x65x65_R11G11B10F_m1 (pc/alloc=1.55x, pc/c4k=1.78x).
    • Small-mip 64 KiB floor: 2D_32x32_RGBA16F_m6 (1 tile, pc/c4k=5.33x), 2D_64x64_RGBA8_m7 (1 tile, pc/c4k=2.67x).
    • Large RTs/MSAA: 2D_1920x1080_RGBA16F_RT (255 tiles, pc/alloc=0.94x), 2D_3840x2160_RGBA16F_RT (1020 tiles, pc/alloc=1.00x), 2D_1920x1080_RGBA8_MSAA4 (510 tiles, pc/alloc=1.00x).
  • WS7 driver PSO memory (commit_src=PrivateUsage, NVIDIA 621.14):
    • Run 1 (cold driver cache): cs_small_128_distinct 297.1 ms (+66424 KiB, +518.9/pso), cs_med_128_wave1 1299.8 ms (+32780 KiB, +256.1/pso), cs_med_128_wave2_new 1305.2 ms (-1920 KiB), cs_med_128_identical 9.7 ms (+0.0 KiB), cs_large_32_distinct 3764.9 ms (+11012 KiB, +344.1/pso), gfx_vs_ps_128_distinct 279.3 ms (+0.0 KiB); cumulative commit after release +108488.0 KiB, local VRAM delta +0.0 KiB.
    • Runs 2 & 3 (warm driver cache): cs_small_128_distinct 28.6 / 26.3 ms (+29960 / +29620 KiB), cs_med_128_wave1 27.6 / 26.4 ms (+18792 / +17508 KiB), cs_med_128_identical 1.0 / 0.6 ms (+0.0 KiB), cs_large_32_distinct 18.0 / 12.1 ms (+3180 / +2568 KiB), gfx_vs_ps_128_distinct 26.9 / 25.4 ms (+1200 / +0.0 KiB); cumulative commit after release +53496.0 / +51944.0 KiB, local VRAM delta +0.0 KiB.

Limits of coverage

  • This PR adds only the standalone integration test file crates/xcl/tests/d3d12_amd_nvidia_parity.rs (zero production crate files changed), so no separate retail binary smoke was run.
  • Native Windows 11 reported commit_src=PrivateUsage; the Wine PagefileUsage fallback added in commit 442775d9 was exercised only via the unit test mem_snap_rejects_required_query_failures_and_marks_unavailable_nonlocal and was not tested live under Wine, nor on AMD/Intel hardware.

AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).

**@⁠Decodere** on GitHub · 2026-11-26 22:16 UTC · [original](https://github.com/xcl-dev/xcl/pull/2791#issuecomment-7204530431) Independent desktop NVIDIA (8 GB RTX 4060) verification of **PR #2791** at head `442775d9b55a25341799a622b3bfb36ca9fe8b6c` (`3` commits `4f9ef20e -> 749b0e06 -> 442775d9` on merge-base `b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7`, pre-`#2555` ancestor of `main`; parent `749b0e06c1860b8c52d5032b0a6efe776edbc205`). ### Environment - **GPU:** NVIDIA GeForce RTX 4060 (8 GB / `7956 MiB` dedicated VRAM, `16324 MiB` shared system memory, Wave32-only Ada), driver `32.0.16.2114` (NVIDIA `621.14`, WDDM 3.2) - **CPU / RAM / OS:** Intel Core i5-11400F (6C / 12T), 32 GB RAM (`31.9 GiB` usable), Windows 11 Home `26200` (native Windows, Developer Mode off) - **Toolchain:** `rustc 1.100.0 (0ef1bc386 2026-11-09)` MSVC, DXC `1.9.2609.5`, `--release` ### Release test results (`442775d9`) | Command | Result | | --- | --- | | `cargo test --release -p xcl --test d3d12_amd_nvidia_parity -- --test-threads=1 --nocapture` (3 consecutive runs on RTX 4060) | `4 passed; 0 failed; 0 ignored; 0 filtered out` × 3 (`14.41s` cold driver cache, `7.37s`, `7.36s`) | | `XCL_ADAPTER=warp cargo test --release -p xcl --test d3d12_amd_nvidia_parity -- --test-threads=1 --nocapture` | `4 passed; 0 failed; 0 ignored; 0 filtered out` (`0.00s`; `mem_snap_rejects_required_query_failures_and_marks_unavailable_nonlocal` passed; all 3 GPU probes printed `SKIPPED ...: WARP requested via XCL_ADAPTER`) | ### RTX 4060 8 GB telemetry highlights (`--nocapture`) - **WS9 adapter & budget:** `WS9_ADAPTER | name=NVIDIA GeForce RTX 4060 | vendor=0x10de | device=0x2882 | ded_vram_mib=7956 | shared_sys_mib=16324 | uma=false | coherent_uma=false | tiled_tier=4 | heap_tier=2 | bind_tier=3 | wave_ops=true | wave_min=32 | wave_max=32 | total_lanes=3072 | mesh_tier=10 | local_budget_mib=7188 | local_used_mib=7 | nonlocal_budget_mib=15556 | nonlocal_used_mib=7` - **WS3 reserved-texture tiling overcommit matrix (19 rows, identical across all 3 runs):** - Peak 3D tile overcommit: `3D_33x33x33_RGBA16F_m6` (`19` tiles, `pc_kib=1216`, `alloc_kib=640`, `pc/alloc=1.90x`, `pc/c4k=1.52x`, `shape=32x16x16`), `3D_33x33x33_RGBA16F_m1` (`pc/alloc=1.80x`, `pc/c4k=2.30x`), `3D_65x65x65_R11G11B10F_m1` (`pc/alloc=1.55x`, `pc/c4k=1.78x`). - Small-mip 64 KiB floor: `2D_32x32_RGBA16F_m6` (`1` tile, `pc/c4k=5.33x`), `2D_64x64_RGBA8_m7` (`1` tile, `pc/c4k=2.67x`). - Large RTs/MSAA: `2D_1920x1080_RGBA16F_RT` (`255` tiles, `pc/alloc=0.94x`), `2D_3840x2160_RGBA16F_RT` (`1020` tiles, `pc/alloc=1.00x`), `2D_1920x1080_RGBA8_MSAA4` (`510` tiles, `pc/alloc=1.00x`). - **WS7 driver PSO memory (`commit_src=PrivateUsage`, NVIDIA `621.14`):** - Run 1 (cold driver cache): `cs_small_128_distinct` `297.1 ms` (`+66424 KiB`, `+518.9/pso`), `cs_med_128_wave1` `1299.8 ms` (`+32780 KiB`, `+256.1/pso`), `cs_med_128_wave2_new` `1305.2 ms` (`-1920 KiB`), `cs_med_128_identical` `9.7 ms` (`+0.0 KiB`), `cs_large_32_distinct` `3764.9 ms` (`+11012 KiB`, `+344.1/pso`), `gfx_vs_ps_128_distinct` `279.3 ms` (`+0.0 KiB`); cumulative commit after release `+108488.0 KiB`, local VRAM delta `+0.0 KiB`. - Runs 2 & 3 (warm driver cache): `cs_small_128_distinct` `28.6 / 26.3 ms` (`+29960 / +29620 KiB`), `cs_med_128_wave1` `27.6 / 26.4 ms` (`+18792 / +17508 KiB`), `cs_med_128_identical` `1.0 / 0.6 ms` (`+0.0 KiB`), `cs_large_32_distinct` `18.0 / 12.1 ms` (`+3180 / +2568 KiB`), `gfx_vs_ps_128_distinct` `26.9 / 25.4 ms` (`+1200 / +0.0 KiB`); cumulative commit after release `+53496.0 / +51944.0 KiB`, local VRAM delta `+0.0 KiB`. ### Limits of coverage - This PR adds only the standalone integration test file `crates/xcl/tests/d3d12_amd_nvidia_parity.rs` (zero production crate files changed), so no separate retail binary smoke was run. - Native Windows 11 reported `commit_src=PrivateUsage`; the Wine `PagefileUsage` fallback added in commit `442775d9` was exercised only via the unit test `mem_snap_rejects_required_query_failures_and_marks_unavailable_nonlocal` and was not tested live under Wine, nor on AMD/Intel hardware. *AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).*
Author
Owner

@⁠LocranKing on GitHub · 2026-11-27 03:56 UTC · original

Independent run of d3d12_amd_nvidia_parity on an NVIDIA GeForce RTX 3060 Ti (8 GB) (442775d).

Environment

  • Windows 11 Home build 26300, AMD Ryzen 5 5500 (6C/12T), 31.8 GB RAM
  • NVIDIA GeForce RTX 3060 Ti (8 GB), driver 32.0.16.2140 (621.40)
  • rustc 1.100.0 (0ef1bc386 2026-11-09), DXC 1.9.2602.17 (21d28f72)

Command
cargo test -p xcl --test d3d12_amd_nvidia_parity -- --nocapture
Result: 4 passed, 0 failed, 0 ignored (26.23 s)

Full parity output (RTX 3060 Ti 8 GB)
WS9_ADAPTER | name=NVIDIA GeForce RTX 3060 Ti | vendor=0x10de | device=0x2489 | ded_vram_mib=8024 | shared_sys_mib=16280 | uma=false | coherent_uma=false | tiled_tier=4 | heap_tier=2 | bind_tier=3 | wave_ops=true | wave_min=32 | wave_max=32 | total_lanes=4864 | mesh_tier=10 | local_budget_mib=7256 | local_used_mib=7 | nonlocal_budget_mib=15512 | nonlocal_used_mib=7
WS3_TILING_ADAPTER | NVIDIA GeForce RTX 3060 Ti
WS3_ROW | 3D_33x33x33_RGBA16F_m1     | tiles=  18 | pc_kib=   1152 | alloc_kib=    640 | c64k_kib=   1152 | c4k_kib=    500 | raw_kib=    280 | pc/alloc=1.80x | pc/c4k=2.30x | shape=32x16x16 | mips=std:1/pack:0/ptiles:0
WS3_ROW | 3D_33x33x33_RGBA16F_m6     | tiles=  19 | pc_kib=   1216 | alloc_kib=    640 | c64k_kib=   1728 | c4k_kib=    800 | raw_kib=    317 | pc/alloc=1.90x | pc/c4k=1.52x | shape=32x16x16 | mips=std:1/pack:5/ptiles:1
WS3_ROW | 3D_64x64x64_RGBA16F_m1     | tiles=  32 | pc_kib=   2048 | alloc_kib=   2048 | c64k_kib=   2048 | c4k_kib=   2048 | raw_kib=   2048 | pc/alloc=1.00x | pc/c4k=1.00x | shape=32x16x16 | mips=std:1/pack:0/ptiles:0
WS3_ROW | 3D_64x64x64_RGBA16F_m7     | tiles=  37 | pc_kib=   2368 | alloc_kib=   2368 | c64k_kib=   2816 | c4k_kib=   2752 | raw_kib=   2340 | pc/alloc=1.00x | pc/c4k=0.86x | shape=32x16x16 | mips=std:2/pack:5/ptiles:1
WS3_ROW | 3D_160x90x64_RGBA16F_m1    | tiles= 120 | pc_kib=   7680 | alloc_kib=   7680 | c64k_kib=   7680 | c4k_kib=   7680 | raw_kib=   7200 | pc/alloc=1.00x | pc/c4k=1.00x | shape=32x16x16 | mips=std:1/pack:0/ptiles:0
WS3_ROW | 3D_65x65x65_R11G11B10F_m1  | tiles=  45 | pc_kib=   2880 | alloc_kib=   1856 | c64k_kib=   2880 | c4k_kib=   1620 | raw_kib=   1072 | pc/alloc=1.55x | pc/c4k=1.78x | shape=32x32x16 | mips=std:1/pack:0/ptiles:0
WS3_ROW | 3D_128x128x32_RGBA8_m8     | tiles=  37 | pc_kib=   2368 | alloc_kib=   2368 | c64k_kib=   2816 | c4k_kib=   2736 | raw_kib=   2340 | pc/alloc=1.00x | pc/c4k=0.87x | shape=32x32x16 | mips=std:2/pack:6/ptiles:1
WS3_ROW | 2D_1920x1080_RGBA16F_RT    | tiles= 255 | pc_kib=  16320 | alloc_kib=  17280 | c64k_kib=  16320 | c4k_kib=  16320 | raw_kib=  16200 | pc/alloc=0.94x | pc/c4k=1.00x | shape=128x64x1 | mips=std:1/pack:0/ptiles:0
WS3_ROW | 2D_3840x2160_RGBA16F_RT    | tiles=1020 | pc_kib=  65280 | alloc_kib=  65280 | c64k_kib=  65280 | c4k_kib=  64800 | raw_kib=  64800 | pc/alloc=1.00x | pc/c4k=1.01x | shape=128x64x1 | mips=std:1/pack:0/ptiles:0
WS3_ROW | 2D_1920x1080_D32F_DSV      | tiles= 135 | pc_kib=   8640 | alloc_kib=   8640 | c64k_kib=   8640 | c4k_kib=   8160 | raw_kib=   8100 | pc/alloc=1.00x | pc/c4k=1.06x | shape=128x128x1 | mips=std:1/pack:0/ptiles:0
WS3_ROW | 2D_1920x1080_RGBA8_MSAA4   | tiles= 510 | pc_kib=  32640 | alloc_kib=  32768 | c64k_kib=      0 | c4k_kib=      0 | raw_kib=  32400 | pc/alloc=1.00x | pc/c4k=1.01x | shape=64x64x1 | mips=std:1/pack:0/ptiles:0
WS3_ROW | 2D_512x512_RGBA16F_MSAA4   | tiles= 128 | pc_kib=   8192 | alloc_kib=   8192 | c64k_kib=      0 | c4k_kib=      0 | raw_kib=   8192 | pc/alloc=1.00x | pc/c4k=1.00x | shape=64x32x1 | mips=std:1/pack:0/ptiles:0
WS3_ROW | 2D_256x256_RGBA8_m9        | tiles=   6 | pc_kib=    384 | alloc_kib=    384 | c64k_kib=    384 | c4k_kib=    344 | raw_kib=    341 | pc/alloc=1.00x | pc/c4k=1.12x | shape=128x128x1 | mips=std:2/pack:7/ptiles:1
WS3_ROW | 2D_64x64_RGBA8_m7          | tiles=   1 | pc_kib=     64 | alloc_kib=     64 | c64k_kib=     64 | c4k_kib=     24 | raw_kib=     21 | pc/alloc=1.00x | pc/c4k=2.67x | shape=128x128x1 | mips=std:0/pack:7/ptiles:1
WS3_ROW | 2D_32x32_RGBA16F_m6        | tiles=   1 | pc_kib=     64 | alloc_kib=     64 | c64k_kib=     64 | c4k_kib=     12 | raw_kib=     10 | pc/alloc=1.00x | pc/c4k=5.33x | shape=128x64x1 | mips=std:0/pack:6/ptiles:1
WS3_ROW | 2D_1024x1024_BC7_m11       | tiles=  22 | pc_kib=   1408 | alloc_kib=   1408 | c64k_kib=   1408 | c4k_kib=   1368 | raw_kib=   1365 | pc/alloc=1.00x | pc/c4k=1.03x | shape=256x256x1 | mips=std:3/pack:8/ptiles:1
WS3_ROW | 2D_256x256_BC7_m9          | tiles=   2 | pc_kib=    128 | alloc_kib=    128 | c64k_kib=    128 | c4k_kib=     88 | raw_kib=     85 | pc/alloc=1.00x | pc/c4k=1.45x | shape=256x256x1 | mips=std:1/pack:8/ptiles:1
WS3_ROW | CUBE_128x128x6_RGBA16F_m8  | tiles=  18 | pc_kib=   1152 | alloc_kib=   1088 | c64k_kib=   1152 | c4k_kib=   1032 | raw_kib=   1023 | pc/alloc=1.06x | pc/c4k=1.12x | shape=128x64x1 | mips=std:1/pack:7/ptiles:1
WS3_ROW | CUBE_64x64x6_RGBA16F_m7    | tiles=   6 | pc_kib=    384 | alloc_kib=    320 | c64k_kib=    384 | c4k_kib=    264 | raw_kib=    255 | pc/alloc=1.20x | pc/c4k=1.45x | shape=128x64x1 | mips=std:0/pack:7/ptiles:1
WS7_PSO_ADAPTER | NVIDIA GeForce RTX 3060 Ti | commit_src=PrivateUsage
WS7_ROW | cs_small_128_distinct  | n=128 | dxil_B=  2919 | ms=  590.8 | commit_kib=+60468.0 (+472.4/pso) | after_rel=+60468.0 (cum= +60804.0) | vram_loc=   +0.0 (+0.0/pso) | after_loc=   +0.0 (cum=    +0.0) | nonloc=  +0.0->  +0.0
WS7_ROW | cs_med_128_wave1       | n=128 | dxil_B=  4920 | ms= 2428.7 | commit_kib=+41984.0 (+328.0/pso) | after_rel=+35828.0 (cum= +96632.0) | vram_loc=   +0.0 (+0.0/pso) | after_loc=   +0.0 (cum=    +0.0) | nonloc=  +0.0->  +0.0
WS7_ROW | cs_med_128_wave2_new   | n=128 | dxil_B=  4923 | ms= 2531.4 | commit_kib= +5556.0 (+43.4/pso) | after_rel= +5612.0 (cum=+102244.0) | vram_loc=   +0.0 (+0.0/pso) | after_loc=   +0.0 (cum=    +0.0) | nonloc=  +0.0->  +0.0
WS7_ROW | cs_med_128_identical   | n=128 | dxil_B=  4924 | ms=   20.2 | commit_kib=    +0.0 (+0.0/pso) | after_rel=    +0.0 (cum=+102244.0) | vram_loc=   +0.0 (+0.0/pso) | after_loc=   +0.0 (cum=    +0.0) | nonloc=  +0.0->  +0.0
WS7_ROW | cs_large_32_distinct   | n= 32 | dxil_B= 33089 | ms= 7877.8 | commit_kib=+12144.0 (+379.5/pso) | after_rel= +8648.0 (cum=+110892.0) | vram_loc=   +0.0 (+0.0/pso) | after_loc=   +0.0 (cum=    +0.0) | nonloc=  +0.0->  +0.0
WS7_ROW | gfx_vs_ps_128_distinct | n=128 | dxil_B=  5727 | ms=  536.3 | commit_kib= +3280.0 (+25.6/pso) | after_rel= +3280.0 (cum=+114172.0) | vram_loc=   +0.0 (+0.0/pso) | after_loc=   +0.0 (cum=    +0.0) | nonloc=  +0.0->  +0.0
**@⁠LocranKing** on GitHub · 2026-11-27 03:56 UTC · [original](https://github.com/xcl-dev/xcl/pull/2791#issuecomment-7209394778) Independent run of `d3d12_amd_nvidia_parity` on an **NVIDIA GeForce RTX 3060 Ti (8 GB)** (`442775d`). **Environment** - Windows 11 Home build 26300, AMD Ryzen 5 5500 (6C/12T), 31.8 GB RAM - NVIDIA GeForce RTX 3060 Ti (8 GB), driver `32.0.16.2140` (`621.40`) - `rustc 1.100.0 (0ef1bc386 2026-11-09)`, DXC `1.9.2602.17` (`21d28f72`) **Command** `cargo test -p xcl --test d3d12_amd_nvidia_parity -- --nocapture` Result: **4 passed, 0 failed, 0 ignored** (26.23 s) <details> <summary>Full parity output (RTX 3060 Ti 8 GB)</summary> ```text WS9_ADAPTER | name=NVIDIA GeForce RTX 3060 Ti | vendor=0x10de | device=0x2489 | ded_vram_mib=8024 | shared_sys_mib=16280 | uma=false | coherent_uma=false | tiled_tier=4 | heap_tier=2 | bind_tier=3 | wave_ops=true | wave_min=32 | wave_max=32 | total_lanes=4864 | mesh_tier=10 | local_budget_mib=7256 | local_used_mib=7 | nonlocal_budget_mib=15512 | nonlocal_used_mib=7 WS3_TILING_ADAPTER | NVIDIA GeForce RTX 3060 Ti WS3_ROW | 3D_33x33x33_RGBA16F_m1 | tiles= 18 | pc_kib= 1152 | alloc_kib= 640 | c64k_kib= 1152 | c4k_kib= 500 | raw_kib= 280 | pc/alloc=1.80x | pc/c4k=2.30x | shape=32x16x16 | mips=std:1/pack:0/ptiles:0 WS3_ROW | 3D_33x33x33_RGBA16F_m6 | tiles= 19 | pc_kib= 1216 | alloc_kib= 640 | c64k_kib= 1728 | c4k_kib= 800 | raw_kib= 317 | pc/alloc=1.90x | pc/c4k=1.52x | shape=32x16x16 | mips=std:1/pack:5/ptiles:1 WS3_ROW | 3D_64x64x64_RGBA16F_m1 | tiles= 32 | pc_kib= 2048 | alloc_kib= 2048 | c64k_kib= 2048 | c4k_kib= 2048 | raw_kib= 2048 | pc/alloc=1.00x | pc/c4k=1.00x | shape=32x16x16 | mips=std:1/pack:0/ptiles:0 WS3_ROW | 3D_64x64x64_RGBA16F_m7 | tiles= 37 | pc_kib= 2368 | alloc_kib= 2368 | c64k_kib= 2816 | c4k_kib= 2752 | raw_kib= 2340 | pc/alloc=1.00x | pc/c4k=0.86x | shape=32x16x16 | mips=std:2/pack:5/ptiles:1 WS3_ROW | 3D_160x90x64_RGBA16F_m1 | tiles= 120 | pc_kib= 7680 | alloc_kib= 7680 | c64k_kib= 7680 | c4k_kib= 7680 | raw_kib= 7200 | pc/alloc=1.00x | pc/c4k=1.00x | shape=32x16x16 | mips=std:1/pack:0/ptiles:0 WS3_ROW | 3D_65x65x65_R11G11B10F_m1 | tiles= 45 | pc_kib= 2880 | alloc_kib= 1856 | c64k_kib= 2880 | c4k_kib= 1620 | raw_kib= 1072 | pc/alloc=1.55x | pc/c4k=1.78x | shape=32x32x16 | mips=std:1/pack:0/ptiles:0 WS3_ROW | 3D_128x128x32_RGBA8_m8 | tiles= 37 | pc_kib= 2368 | alloc_kib= 2368 | c64k_kib= 2816 | c4k_kib= 2736 | raw_kib= 2340 | pc/alloc=1.00x | pc/c4k=0.87x | shape=32x32x16 | mips=std:2/pack:6/ptiles:1 WS3_ROW | 2D_1920x1080_RGBA16F_RT | tiles= 255 | pc_kib= 16320 | alloc_kib= 17280 | c64k_kib= 16320 | c4k_kib= 16320 | raw_kib= 16200 | pc/alloc=0.94x | pc/c4k=1.00x | shape=128x64x1 | mips=std:1/pack:0/ptiles:0 WS3_ROW | 2D_3840x2160_RGBA16F_RT | tiles=1020 | pc_kib= 65280 | alloc_kib= 65280 | c64k_kib= 65280 | c4k_kib= 64800 | raw_kib= 64800 | pc/alloc=1.00x | pc/c4k=1.01x | shape=128x64x1 | mips=std:1/pack:0/ptiles:0 WS3_ROW | 2D_1920x1080_D32F_DSV | tiles= 135 | pc_kib= 8640 | alloc_kib= 8640 | c64k_kib= 8640 | c4k_kib= 8160 | raw_kib= 8100 | pc/alloc=1.00x | pc/c4k=1.06x | shape=128x128x1 | mips=std:1/pack:0/ptiles:0 WS3_ROW | 2D_1920x1080_RGBA8_MSAA4 | tiles= 510 | pc_kib= 32640 | alloc_kib= 32768 | c64k_kib= 0 | c4k_kib= 0 | raw_kib= 32400 | pc/alloc=1.00x | pc/c4k=1.01x | shape=64x64x1 | mips=std:1/pack:0/ptiles:0 WS3_ROW | 2D_512x512_RGBA16F_MSAA4 | tiles= 128 | pc_kib= 8192 | alloc_kib= 8192 | c64k_kib= 0 | c4k_kib= 0 | raw_kib= 8192 | pc/alloc=1.00x | pc/c4k=1.00x | shape=64x32x1 | mips=std:1/pack:0/ptiles:0 WS3_ROW | 2D_256x256_RGBA8_m9 | tiles= 6 | pc_kib= 384 | alloc_kib= 384 | c64k_kib= 384 | c4k_kib= 344 | raw_kib= 341 | pc/alloc=1.00x | pc/c4k=1.12x | shape=128x128x1 | mips=std:2/pack:7/ptiles:1 WS3_ROW | 2D_64x64_RGBA8_m7 | tiles= 1 | pc_kib= 64 | alloc_kib= 64 | c64k_kib= 64 | c4k_kib= 24 | raw_kib= 21 | pc/alloc=1.00x | pc/c4k=2.67x | shape=128x128x1 | mips=std:0/pack:7/ptiles:1 WS3_ROW | 2D_32x32_RGBA16F_m6 | tiles= 1 | pc_kib= 64 | alloc_kib= 64 | c64k_kib= 64 | c4k_kib= 12 | raw_kib= 10 | pc/alloc=1.00x | pc/c4k=5.33x | shape=128x64x1 | mips=std:0/pack:6/ptiles:1 WS3_ROW | 2D_1024x1024_BC7_m11 | tiles= 22 | pc_kib= 1408 | alloc_kib= 1408 | c64k_kib= 1408 | c4k_kib= 1368 | raw_kib= 1365 | pc/alloc=1.00x | pc/c4k=1.03x | shape=256x256x1 | mips=std:3/pack:8/ptiles:1 WS3_ROW | 2D_256x256_BC7_m9 | tiles= 2 | pc_kib= 128 | alloc_kib= 128 | c64k_kib= 128 | c4k_kib= 88 | raw_kib= 85 | pc/alloc=1.00x | pc/c4k=1.45x | shape=256x256x1 | mips=std:1/pack:8/ptiles:1 WS3_ROW | CUBE_128x128x6_RGBA16F_m8 | tiles= 18 | pc_kib= 1152 | alloc_kib= 1088 | c64k_kib= 1152 | c4k_kib= 1032 | raw_kib= 1023 | pc/alloc=1.06x | pc/c4k=1.12x | shape=128x64x1 | mips=std:1/pack:7/ptiles:1 WS3_ROW | CUBE_64x64x6_RGBA16F_m7 | tiles= 6 | pc_kib= 384 | alloc_kib= 320 | c64k_kib= 384 | c4k_kib= 264 | raw_kib= 255 | pc/alloc=1.20x | pc/c4k=1.45x | shape=128x64x1 | mips=std:0/pack:7/ptiles:1 WS7_PSO_ADAPTER | NVIDIA GeForce RTX 3060 Ti | commit_src=PrivateUsage WS7_ROW | cs_small_128_distinct | n=128 | dxil_B= 2919 | ms= 590.8 | commit_kib=+60468.0 (+472.4/pso) | after_rel=+60468.0 (cum= +60804.0) | vram_loc= +0.0 (+0.0/pso) | after_loc= +0.0 (cum= +0.0) | nonloc= +0.0-> +0.0 WS7_ROW | cs_med_128_wave1 | n=128 | dxil_B= 4920 | ms= 2428.7 | commit_kib=+41984.0 (+328.0/pso) | after_rel=+35828.0 (cum= +96632.0) | vram_loc= +0.0 (+0.0/pso) | after_loc= +0.0 (cum= +0.0) | nonloc= +0.0-> +0.0 WS7_ROW | cs_med_128_wave2_new | n=128 | dxil_B= 4923 | ms= 2531.4 | commit_kib= +5556.0 (+43.4/pso) | after_rel= +5612.0 (cum=+102244.0) | vram_loc= +0.0 (+0.0/pso) | after_loc= +0.0 (cum= +0.0) | nonloc= +0.0-> +0.0 WS7_ROW | cs_med_128_identical | n=128 | dxil_B= 4924 | ms= 20.2 | commit_kib= +0.0 (+0.0/pso) | after_rel= +0.0 (cum=+102244.0) | vram_loc= +0.0 (+0.0/pso) | after_loc= +0.0 (cum= +0.0) | nonloc= +0.0-> +0.0 WS7_ROW | cs_large_32_distinct | n= 32 | dxil_B= 33089 | ms= 7877.8 | commit_kib=+12144.0 (+379.5/pso) | after_rel= +8648.0 (cum=+110892.0) | vram_loc= +0.0 (+0.0/pso) | after_loc= +0.0 (cum= +0.0) | nonloc= +0.0-> +0.0 WS7_ROW | gfx_vs_ps_128_distinct | n=128 | dxil_B= 5727 | ms= 536.3 | commit_kib= +3280.0 (+25.6/pso) | after_rel= +3280.0 (cum=+114172.0) | vram_loc= +0.0 (+0.0/pso) | after_loc= +0.0 (cum= +0.0) | nonloc= +0.0-> +0.0 ``` </details>
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2791/head:github-bot/gh-2791'
git switch 'github-bot/gh-2791'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2791'
git switch 'github-bot/gh-2791'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2791'
git switch 'github-bot/gh-2791'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2791'
git switch 'main'
git merge --squash 'github-bot/gh-2791'
git switch 'main'
git merge --ff-only 'github-bot/gh-2791'
git switch 'main'
git merge 'github-bot/gh-2791'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.