Tests: add AMD vs NVIDIA D3D12 tiling, budget, and pipeline memory parity suite #2781
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2791"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ivall/xcl. Originally posted by GustavoEllwanger on 2026-11-26T13:17:24Z.
Part of #2688 (WS3 item 1, WS7 item 3, WS9).
What is in it
crates/xcl/tests/d3d12_amd_nvidia_parity.rs, a standalone zero-game-data dual-vendor D3D12 parity & memory measurement test suite honoringXCL_ADAPTER(and skipping cleanly viarunner::skip_teston WARP / no-GPU / no-DXC hosts):ws9_adapter_capabilities_and_dxgi_budget: reports adapter identity,D3D12_OPTIONS/OPTIONS1/OPTIONS7/ARCHITECTURE1tiers (TiledResourcesTier,ResourceHeapTier,ResourceBindingTier, wave sizes,MeshShaderTier,UMA/CacheCoherentUMA), and DXGILOCAL/NON_LOCALbudgets.ws3_reserved_texture_tiling_overcommit_matrix: queriesCreateReservedResource+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 againstxcl::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 processPrivateUsagecommit and DXGI local/non-local VRAM before creation, while live, and afterRelease().Tested
XCL_ADAPTER=5060 cargo test -p xcl --test d3d12_amd_nvidia_parity -- --nocapture --test-threads=1on NVIDIA GeForce RTX 5060 (driver32.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=1on AMD Radeon(TM) Graphics RDNA2 iGPU (driver32.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 cleanSKIPPEDlines).XCL_ADAPTER=5060 cargo test --workspace -- --test-threads=4:1438 passed; 0 failed; 47 ignored(29 runtimeSKIPPEDin unrelated tests requiring D3D12 debug layer / console libraries).Not tested
smoke.ps1(pure test PR with zero changes undercrates/xcl/src/).AI use
Imported from ivall/xcl. Originally posted by Prime1997 on 2026-11-26T13:47:11Z.
Review: COMMENTED
Good as a bounded measurement fixture; broader parity validation remains blocked. At clean head
749b0e06c1860b8c52d5032b0a6efe776edbc205,ws9_adapter_capabilities_and_dxgi_budgetandws3_reserved_texture_tiling_overcommit_matrixboth 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, device0x2489, 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.
Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-26T13:25:03Z.
Independent Windows/NVIDIA check of #2791 head
4f9ef20againstmainb49be183. 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_CACHEpointed 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 GPUSKIPPEDnotices (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.3D_33x33x33_RGBA16F_m1used 18 PC tiles / 1,152 KiB, against the test's 500 KiB consoleSW_4KB_S_Xplacement 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_snapignores the return values ofK32GetProcessMemoryInfoand bothQueryVideoMemoryInfocalls 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.
Imported from ivall/xcl. Originally posted by Aniseto on 2026-11-26T13:28:46Z.
Ran the new dual-vendor parity suite at
4f9ef20eon 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.
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 againstxcl::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.
Imported from ivall/xcl. Originally posted by GustavoEllwanger on 2026-11-26T13:33:17Z.
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_snapin749b0e06:mem_snapnow checks theBOOLreturn value ofK32GetProcessMemoryInfo(surfacingstd::io::Error::last_os_error()on0) and theHRESULTofQueryVideoMemoryInfo(LOCAL), returningResult<MemSnap, String>sows9_*andws7_*fail loudly instead of silently reporting0on a failed query.QueryVideoMemoryInfo(NON_LOCAL)is represented asOption<SegmentUsage>(Noneon DXGI error) and rendered explicitly asunavailablein both WS9 and WS7 output, keeping a missing/unsupported segment distinct from a reported0.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 testsSKIPPED).Imported from ivall/xcl. Originally posted by Aniseto on 2026-11-26T13:42:57Z.
Re-ran the dual-vendor parity suite at
749b0e06after 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.
The new
mem_snap_rejects_required_query_failures_and_marks_unavailable_nonlocaltest passes, as do the three measurement tests. The tiling matrix is unchanged from my earlier report at4f9ef20e; 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.
Imported from ivall/xcl. Originally posted by SzczepanGrela on 2026-11-26T13:44:23Z.
Updated for exact head
442775d9b55a25341799a622b3bfb36ca9fe8b6c: the PagefileUsage fallback is verified on discrete AMD RDNA4 / Wine.Tested
8293130ebe370b1+(local asserts-disabled build), DXC/DXIL 1.9.2602.17, Rust 1.97.1, releasex86_64-pc-windows-gnu.91f0b4d945d787a40a801526271f7f5db6a61cfb; every existing source file equals mainb49be1836844fe0b0cdb3211dce3cb7fb4e21ac7. No runtime A/B claim for this test-only change.cargo test --offline --locked --release --target x86_64-pc-windows-gnu -p xcl --test d3d12_amd_nvidia_parity --no-run.--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.The complete suite was rerun after the
442775d9counter-selection update. The query-error/counter-selection regression passed in all three processes. Previous749b0e06results are archived separately.Capabilities reported by this stack
PCI
1002:7550, dedicated VRAM 16,304 MiB, UMA/coherent UMA false, tiled/heap/binding tiers4/2/3, wave operations true, wave sizes32..64, total lanes 3584, raw mesh tier10. 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
GetResourceTilingfootprints andGetResourceAllocationInforesults withLAYOUT_UNKNOWN, not measured physical allocation of the reserved textures. KiB throughout:PSO-construction observations on
442775d9All 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.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
749b0e06revision,PrivateUsageremained zero. The updated suite selectsPagefileUsageon this Wine prefix and now reports non-zero batch deltas.I repeated the independent bounded calibration in three fresh processes:
K32GetProcessMemoryInforeturned TRUE,PrivateUsagestayed0 -> 0 -> 0, and bothPagefileUsageandWorkingSetSizeincreased 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-WindowsPrivateUsagemeasurements 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.
Imported from ivall/xcl. Originally posted by DarkPanda69 on 2026-11-26T13:51:08Z.
Update for head
442775d: same result. Applied onmainb49be18, the suite gives 4 passed, 0 failed, 0 SKIPPED on both the RX 9070 XT and the RTX 3060 (selected withXCL_ADAPTER), andWS7_PSO_ADAPTERlogscommit_src=PrivateUsageon 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
749b0e0applied onmainb49be18, debug, Windows 11 Pro 26200, Ryzen 7 5800X.cargo test -p xcl --test d3d12_amd_nvidia_parity -- --nocapture --test-threads=1, once per card withXCL_ADAPTER(the*_ADAPTERlines confirm the card):WS3: rows that differ between the cards (all other rows are identical):
So the packed-mip split, and with it the tile count, differs for small mipped 3D textures. The driver's
allocdiffers for several formats, in both directions.WS7: driver pipeline memory, single run per card (
commit_kibtotal per group, then per PSO):vram_locgrew 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.
Imported from ivall/xcl. Originally posted by GustavoEllwanger on 2026-11-26T13:56:52Z.
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
K32GetProcessMemoryInfofinding in442775d9:select_process_commit(PrivateUsage, PagefileUsage)usesPrivateUsagewhen> 0(unchanged on native Windows), falls back toPagefileUsagewhenPrivateUsage == 0(the counter populated by Wine/GE-Proton), and returnsErrif both are0so an unpopulated counter cannot silently emit zero commit deltas.WS7_PSO_ADAPTERnow logscommit_src=PrivateUsage|PagefileUsageand asserts the same counter source is used across every snapshot in a batch.mem_snap_rejects_required_query_failures_and_marks_unavailable_nonlocalto cover thePrivateUsagepreference,PagefileUsageWine 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 testsSKIPPED).Imported from ivall/xcl. Originally posted by Aniseto on 2026-11-26T14:14:59Z.
Re-ran the parity suite at
442775d9after the head moved (48 lines changed in the test file, adding a WinePagefileUsagefallback; on native Windows the output now showscommit_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.
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
4f9ef20eand749b0e06, 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.
Imported from ivall/xcl. Originally posted by SlopTart on 2026-11-26T14:37:17Z.
Dual-vendor run on Linux/Wine, both rigs green at
442775d9First 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):
4 passed; 0 failed; 0 ignored(6.37s)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 in442775d9fires 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):
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=45582name=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=11939Flagging an oddity, not a failure: on Rig B the adapter name is correctly the GTX 1070 but
vendor=0x1002 / device=0x73dfare 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 underWINEDLLOVERRIDES d3d12=n; theWS7_PSO_ADAPTERline there shows the correctNVIDIA GeForce GTX 1070.WS7, the vendor split (cumulative KiB after 128-PSO batches):
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 = 0for the two MSAA rows (packed mips refused on MSAA on both vendors), identicalpc/c4kfor 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.
Imported from ivall/xcl. Originally posted by Smokeyqdqd on 2026-11-26T16:35:54Z.
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 rancargo 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 zeroSKIPPEDlines.All three GPU tests passed on the RTX 3060:
ws3_reserved_texture_tiling_overcommit_matrix,ws7_driver_pipeline_memory_for_same_dxil, andws9_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.
Imported from ivall/xcl. Originally posted by Decodere on 2026-11-26T22:16:50Z.
Independent desktop NVIDIA (8 GB RTX 4060) verification of PR #2791 at head
442775d9b55a25341799a622b3bfb36ca9fe8b6c(3commits4f9ef20e -> 749b0e06 -> 442775d9on merge-baseb49be1836844fe0b0cdb3211dce3cb7fb4e21ac7, pre-#2555ancestor ofmain; parent749b0e06c1860b8c52d5032b0a6efe776edbc205).Environment
7956 MiBdedicated VRAM,16324 MiBshared system memory, Wave32-only Ada), driver32.0.16.2114(NVIDIA621.14, WDDM 3.2)31.9 GiBusable), Windows 11 Home26200(native Windows, Developer Mode off)rustc 1.100.0 (0ef1bc386 2026-11-09)MSVC, DXC1.9.2609.5,--releaseRelease test results (
442775d9)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.41scold driver cache,7.37s,7.36s)XCL_ADAPTER=warp cargo test --release -p xcl --test d3d12_amd_nvidia_parity -- --test-threads=1 --nocapture4 passed; 0 failed; 0 ignored; 0 filtered out(0.00s;mem_snap_rejects_required_query_failures_and_marks_unavailable_nonlocalpassed; all 3 GPU probes printedSKIPPED ...: WARP requested via XCL_ADAPTER)RTX 4060 8 GB telemetry highlights (
--nocapture)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=73D_33x33x33_RGBA16F_m6(19tiles,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).2D_32x32_RGBA16F_m6(1tile,pc/c4k=5.33x),2D_64x64_RGBA8_m7(1tile,pc/c4k=2.67x).2D_1920x1080_RGBA16F_RT(255tiles,pc/alloc=0.94x),2D_3840x2160_RGBA16F_RT(1020tiles,pc/alloc=1.00x),2D_1920x1080_RGBA8_MSAA4(510tiles,pc/alloc=1.00x).commit_src=PrivateUsage, NVIDIA621.14):cs_small_128_distinct297.1 ms(+66424 KiB,+518.9/pso),cs_med_128_wave11299.8 ms(+32780 KiB,+256.1/pso),cs_med_128_wave2_new1305.2 ms(-1920 KiB),cs_med_128_identical9.7 ms(+0.0 KiB),cs_large_32_distinct3764.9 ms(+11012 KiB,+344.1/pso),gfx_vs_ps_128_distinct279.3 ms(+0.0 KiB); cumulative commit after release+108488.0 KiB, local VRAM delta+0.0 KiB.cs_small_128_distinct28.6 / 26.3 ms(+29960 / +29620 KiB),cs_med_128_wave127.6 / 26.4 ms(+18792 / +17508 KiB),cs_med_128_identical1.0 / 0.6 ms(+0.0 KiB),cs_large_32_distinct18.0 / 12.1 ms(+3180 / +2568 KiB),gfx_vs_ps_128_distinct26.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
crates/xcl/tests/d3d12_amd_nvidia_parity.rs(zero production crate files changed), so no separate retail binary smoke was run.commit_src=PrivateUsage; the WinePagefileUsagefallback added in commit442775d9was exercised only via the unit testmem_snap_rejects_required_query_failures_and_marks_unavailable_nonlocaland 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).
Imported from ivall/xcl. Originally posted by LocranKing on 2026-11-27T03:56:43Z.
Independent run of
d3d12_amd_nvidia_parityon an NVIDIA GeForce RTX 3060 Ti (8 GB) (442775d).Environment
32.0.16.2140(621.40)rustc 1.100.0 (0ef1bc386 2026-11-09), DXC1.9.2602.17(21d28f72)Command
cargo test -p xcl --test d3d12_amd_nvidia_parity -- --nocaptureResult: 4 passed, 0 failed, 0 ignored (26.23 s)
Full parity output (RTX 3060 Ti 8 GB)
Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-27T17:33:02Z.
merge-check
base:
6089122a1c96dff16e93b6fdf04c8ed20cfb6102head:
442775d9b55a25341799a622b3bfb36ca9fe8b6cmerge: Clean local merge of this head into the base, without commits or runtime changes.
build:
cargo build --workspacepassed.tests: On the merged tree,
XCL_ADAPTER=nvidia cargo test -p xcl --test d3d12_amd_nvidia_parity -- --nocapture --test-threads=1: 4 passed, 0 failed, 0 ignored, no skips.XCL_ADAPTER=nvidia cargo test --workspace --no-fail-fast -- --test-threads=4: 1,468 passed, 1 failed, 47 ignored, 25 GPU skip notices. The sole failure wasgpu::recomp::pso::shader_cache_tests::console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk(DXIL not compiled), also reproduced on untouched base in the #671 check. This PR adds tests only, so paired title smoke is not required.review: The test currently makes two measurements look available when they are not. On this RTX, both MSAA rows print
c4k_kib=0but numericpc/c4k=1.01x/1.00x; the code silently substitutes raw size for a missing 4 KiB placement.GetResourceAllocationInfocan signal failure withSizeInBytes == UINT64_MAX, currently printed as a huge size and ratio. I reproduced the first case with a test that failed on the unmodified head and passed after the candidate change below; the sentinel case is covered in the same test. The candidate plus four existing focused tests passed (5/0/0, no skips). Microsoft's allocation API specifies that sentinel.For cross-vendor validity, WS3's
created >= 12can fail a conformant lower tiled-resource tier and can pass while the whole 3D group is absent. Please qualify each row against format, dimension, tiled tier, and tiled MSAA support, then assert creation only for supported rows and report unsupported ones. WS9 should report tier 0 rather than fail on that valid capability. WS7 accepts a feature-level 11_0 device, then assumes SM 6.6 and wave ops before compiling/creating hundreds of pipelines; probe these capabilities first and skip with a reason when absent. These are source-level findings; this machine is tier 4 with wave ops, so the lower-tier paths were not hardware-tested.performance: No before/after performance claim. WS7's measurements are on one NVIDIA adapter only.
verdict: Not yet for the cross-adapter parity test. The RTX coverage is useful; the missing-measurement output and capability-aware assertions need correction before the test can be trusted as a cross-vendor gate.
hardware / tool and model: Windows 11 build 26300; Ryzen 7 9800X3D; NVIDIA RTX 3080 Ti 12 GiB, driver 621.35; rustc 1.99.1 MSVC; DXC 1.8.2502.11. AI use: Codex (GPT-6.2 Sol) ran the builds and GPU tests, wrote and verified the candidate; Codex (GPT-6.2 Astra) independently reviewed the D3D12 capability paths.
Tested candidate diff for unavailable WS3 measurements
Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-11-27T17:39:06Z.
merge-check claim
head:
442775d9b5Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-11-28T00:15:55Z.
merge-check
base:
2c717a043chead:
442775d9b5merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 1470 passed, 0 failed, 47 ignored, 25 SKIPPED: 21 no wave64, 3 per-lane f16/f32 forms refused (#1426 semantics), 1 no heap windows; failing: none. The suite ran on this PC at the same time as six other PRs' suites, in one queued job.
review: none. The whole diff was read (one new test file, 721 lines, coverage table kept); its 10 unsafe blocks (K32GetProcessMemoryInfo, D3D12/DXGI COM) were checked separately and read sound. The new d3d12_amd_nvidia_parity tests ran here, none SKIPPED.
performance: no runtime change (test-only diff).
verdict: safe to merge
hardware / tool and model: Windows 11 build 26300.9974, NVIDIA GeForce RTX 2070 SUPER 8 GB (driver 621.40, wave32 only), AMD Ryzen 5 3600XT; rustc 1.100.1 (20ddd0171 2026-11-25) x86_64-pc-windows-msvc, debug test profile; trial merge 6f5a1477af44f38c1b0c7ecd62ad79afab139dae (local, not pushed). Claude Code: Claude Opus 5.5 (coordination, draft), Claude Opus 5.5 (full-diff review), Claude Opus 5.5 (unsafe/FFI review).
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T08:57:21Z.
Triage (#1607) – head
442775dNo open or merged PR adds this suite. The closest is #1786 (reserved-resource tiling / CheckFeatureSupport tests), which is a different file with different checks. The new tests in
tests/d3d12_amd_nvidia_parity.rsmeasure the driver: tile counts, DXGI budgets and PSO commit, mostly throughprintln!. The only XCL code they reach istexture::placementfor the console byte column. Asserts such asTiledResourcesTier >= 1andcreated >= 12could fail on a hardware adapter without reserved-resource support, where they should callskip_testinstead.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.