Tests: verify console copyable footprints against native D3D12 #694
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!694
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-694"
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?
@luna021839 on GitHub · 2026-11-24 03:34 UTC · original
luna021839:test-copyable-footprints→main· +299 −0 · 1 files · 1 commits · openCheck that a title calling D3D12.X
GetCopyableFootprintsgets the same layout as native D3D12 for the corresponding PC resource. Related to #480.What is in it
crates/xcl/tests/copyable_footprints.rsuses a synthetic title caller and queries the original method on the same device. It compares every output for a BC1 range that crosses array slices at a base offset above 4 GiB.R10G10B10_7E3_A2_FLOATvolume exercises the retry asR16G16B16A16_FLOAT, with and without the optional total byte count. The test uses the translated upload layouts and native readback layouts to compare 1,160 bytes over three mips.Tested
cargo test --locked --jobs 3 -p xcl --test copyable_footprints -- --show-output. Neither run skipped a test. These focused runs useddd2ae9a70af5eb5aad60f02d86e386b72abe1e95with this test patch.BaseOffsetto 32 bits and suppressing the retry whenpTotalBytesis null. The production source was restored before the workspace runs.91f9a5e9f03156ea82dc55a18f7704862da7a5dbwith this patch,cargo build --locked --workspace --jobs 3passed.cargo test --locked --workspace --no-fail-fast --jobs 3 -- --test-threads=4 --show-outputreported 694 passed, 0 failed and 41 ignored. Both new tests passed on the RTX 5060 Ti.SKIPPEDfor lack of native wave64. The pass count includesgpu_geometry_wave32_prefix_count_over_a_maskandgpu_wave32_program_in_wave64_hardware.Regression run
Not tested
AI use
@JoaoPauluu on GitHub · 2026-11-24 03:51 UTC · original
Test report: #694 under Wine with vkd3d-proton as the host driver (Linux, NVIDIA)
Under Wine, the native D3D12 this test compares XCL with is vkd3d-proton (D3D12 on Vulkan). Both tests pass there.
Setup
experimental-11.0-20261112(wine-11.0), vkd3d-proton v3.1 (4522cc1a) + the patch from #257, DXVK from Proton,DXVK_CONFIG="dxgi.hideNvidiaGpu = False"x86_64-pc-windows-gnu(mingw-w64-gcc 16.2.0), debug build of this PR's head90f9475Result:
copyable_footprintstest binary under Wine,--test-threads=1: 2 passed, 0 failed, 0 ignored, in 2 of 2 runsconsole_volume_footprints_match_native_and_copy_on_gpu: ok (including the GPU copy, no device loss)footprints_for_a_partial_bc1_array_match_native_d3d12: okNot tested
AI use: Claude Code (Claude Opus 5.5) built the test, ran it on the machine above and wrote this report. The results are pasted from those runs. The account owner asked for test reports to be posted while they were away and has not reviewed this one.
@lordon1a on GitHub · 2026-11-24 03:58 UTC · original
Independent test report on
90f9475:Tested
616.64, wave32, SM 6.6), Intel i7-12700H, Windows 11 Home 26H2 (build 26200),rustc 1.100.0(x86_64-pc-windows-gnullvm), debug build, DXC1.9.2609.5(01b62ad4)cargo test -p xcl --test copyable_footprints -- --nocapture0.73s(footprints_for_a_partial_bc1_array_match_native_d3d12ok;console_volume_footprints_match_native_and_copy_on_gpuok — GPU round trip checked 1160 bytes across 3 mips)Not tested
AI use
90f9475in a detached worktree, audited the diff, ran the test, and posted this report.@MesshM on GitHub · 2026-11-24 04:00 UTC · original
Test run of
90f9475c61b279ccb34fcac42f345a959b8fdd21on AMD RDNA4. I merged it onto currentmainf4ce27clocally (clean merge) and tested that tree.Tested
stable-x86_64-pc-windows-msvc, debugcargo build --workspace+cargo test --workspace -- --test-threads=4on the merge: 657 passed, 3 failed, 21 ignored, exit code 101; 0SKIPPEDplaced_title_textures_share_vram_and_preserve_pixels,transitions_apply_when_their_list_is_submitted,d32s8_targets_take_their_own_size_of_video_memory. These three also fail onmainf4ce27cwith no PR applied (cargo test -p xcl --lib -- --test-threads=4: 657 passed, 3 failed), so they are not from this change. The first isplaced_title_textures_share_vram_and_preserve_pixelsatcubemap extra_pages must be reused at same va; the other two arePoisonErrors from the lock it poisons (#673 addresses the cascade, #447 the cubemap check). It is intermittent: alone it passes 3 of 3, and in the parallel lib run it failed on 6 of 7 runs atf4ce27c, 2 of 6 atd852f9aand 1 of 3 at1387b4bon this machine.footprints_for_a_partial_bc1_array_match_native_d3d12andconsole_volume_footprints_match_native_and_copy_on_gpuare incrates/xcl/tests/and ran separately from the failing lib binary.Review: The test compares XCL's
GetCopyableFootprintswith the driver's own on the same device, and skips withskip_testwhen there is none. Test-only. I found nothing to change.Not tested: no retail title or regression run (I have no unpacked game), no
XCL_SAMPLE_*tests, release build; the PR's head on its old base was not run, only its merge ontomain.Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code.
@LocranKing on GitHub · 2026-11-24 04:18 UTC · original
Tested on Windows 11 + NVIDIA GeForce RTX 3060 Ti (8 GB, wave32).
Tested
90f9475c61b279ccb34fcac42f345a959b8fdd21(pr-694, clean tree)8024 MiB VRAM, driver32.0.16.2101),rustc 1.100.0(x86_64-pc-windows-msvc, MSVC14.44.35207), DXC1.9.2602.17(SDK10.0.26100.0),--releasecargo test --release -p xcl --test copyable_footprints: 2 passed, 0 failed (footprints_for_a_partial_bc1_array_match_native_d3d12 ... ok,console_volume_footprints_match_native_and_copy_on_gpu ... ok,GPU round trip checked 1160 bytes across 3 mips)cargo test --workspace --release --no-fail-fast -- --test-threads=4: 694 passed, 0 failed, 41 ignored, exit0;2 (no wave64)skipped (gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware)Not tested: Debug build,
XCL_SAMPLE_*tests, AMD / wave64 hardware.AI use: Antigravity (
Gemini 4 Hydrogen) ran the tests and drafted this report from the command outputs.@ItsMrDubey on GitHub · 2026-11-24 04:57 UTC · original
Test report for
90f9475c61b279ccb34fcac42f345a959b8fdd21(this PR's head)Tested
stable-x86_64-pc-windows-msvc), debug; DXC 1.9.2602.17 from Windows SDK 10.0.2610017 test binaries: 693 passed, 1 failed, 41 ignored. Same machine,
main64b3f3559: 700 passed, 1 failed, 41 ignored.This PR's tests:
footprints_for_a_partial_bc1_array_match_native_d3d12: okconsole_volume_footprints_match_native_and_copy_on_gpu: okFailures:
hle::kernelx::tests::xmem_virtual_query_marks_cpu_readable_memoryfails on this machine on every run, on this PR's head and onmain64b3f3559alike (5 of 5 reruns onmain), so it is not from this PR. #650 fixes it here.SKIPPED (no wave64 on this GPU):
gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.AI use: Claude Code (Claude Opus 5.5) ran the builds and tests and wrote this report from their output.
@luckyteagirl on GitHub · 2026-11-24 05:59 UTC · original
Tested on Radeon RX 6800M (RDNA2)
90f9475c61b279ccb34fcac42f345a959b8fdd21, clean debug checkout.30.0.13002.13003, Rust1.99.0(stable-x86_64-pc-windows-msvc).XCL_ADAPTER=6800M. Both tests logged the RX 6800M as their real D3D12 backend.2 passed, 0 failed, 0 ignored, 0 runtime skips. The BC1 array case matched native D3D12 with a base offset above 4 GiB. The console volume case matched native D3D12 with and without the optional total-byte output, and the GPU round trip verified 1,160 bytes across three mips.
Not tested
Full workspace suite on this PR head, release mode, other adapters, and retail titles or sample data.
AI use
OpenAI Codex (GPT-6 family, exact model variant unavailable) ran the tests and drafted this report.
@JJAutoCompare on GitHub · 2026-11-25 06:10 UTC · original
Empirical test report (
90f9475c)Verified PR #694 at
90f9475c61b279ccb34fcac42f345a959b8fdd21.Hardware / environment
rustc 1.100.0 (0ef1bc386 2026-11-09), DXC1.9.2609.5 (01b62ad47). The unoptimized test profile ran with debug info and incremental compilation disabled.Commands and results
cargo test --workspace --no-runexited 0. Compilation finished outside the GPU lock.Invoke-ArcTest.ps1 -Test { & $fixture }ran the precompiledcopyable_footprints-9fac0e4eb1f638c7.exewithXCL_ADAPTER=A770andRUST_TEST_NOCAPTURE=1. The real D3D12 backend reported the A770 and the run exited 0. The harness reported 2 passed, 0 failed, 0 ignored, and zero filtered out in 0.83 seconds. The log contained 0SKIPPEDlines.Observed behavior
R16G16B16A16_FLOATfootprints with and without the optional total-byte output. The GPU upload and readback verified 1,160 bytes across three mips.Not tested
The full GPU workspace suite and game smoke runs were omitted. The focused fixture ran on the A770 only.
AI use
Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against pr694-focused.log and published.
@DavidM1911 on GitHub · 2026-11-25 11:56 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: 1038 passed, 1 failed in one parallel run; the failing test passes on a single-threaded rerun (1039/0). Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.Thanks!
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.