Tests: cover image_get_lod static samplers on GPU #1851
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1861"
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 Flyander on 2026-11-24T22:04:59Z.
Part of #1269. Adds real GPU regression coverage for the static-sampler
image_get_lodpath merged in #1806.What is in it
crates/xcl/src/gpu/recomp/runner.rs: let the pixel-draw test harness build a root signature with static samplers.crates/xcl/src/gpu/recomp/tests.rs: translate a syntheticIMAGE_GET_LODpixel shader, draw it, and check the clamped LOD 0 and unclamped LOD -2 results.Tested
cargo test --locked -p xcl --lib gpu_direct_image_get_lod_static_sampler -- --nocapture --test-threads=1: 1 passed, 0 failed.scripts/test.ps1(cargo build --workspace,cargo test --workspace -- --test-threads=4): 960 passed, 0 failed, 43 ignored; 22 GPU tests skipped (wave64, heap-window, or unsupported translator semantics).Regression run
main:PR head:
Not tested
AI use
Imported from ivall/xcl. Originally posted by upipibi on 2026-11-24T22:21:55Z.
Same on Ampere: RTX 3070 8 GB, driver 616.56, Windows 11, debug,
14dc445merged ontomain689f2db.gpu_direct_image_get_lod_static_samplerpasses 2 of 2 runs, both with and withoutXCL_DIRECT_DXIL=1.Added 16:42Z: whole workspace on this head, as is (base
1d027e5), RTX 3070 (616.56), Windows 11, debug, aftercargo build --workspace,cargo test --workspace --no-fail-fast -- --test-threads=4 --skip hle::xaudio2:14dc445: 951 passed, 0 failed, 43 ignored. The end-to-end title tests pass.main0829441on the same machine, same command: 1263 passed, 0 failed, 46 ignored (the PR's base is older, so it has fewer tests).hle::xaudio2, because its tests fail or hang on this machine onmaintoo. The PR doesn't touch it.no wave64on this card, 3 f16/f32 forms the per-lane path refuses, 1 no heap windows, and 1 PSO measurement that needs Developer Mode to turn the driver cache off.AI-assisted (Claude Code, Claude Opus 5.5). Synthetic tests only.
Imported from ivall/xcl. Originally posted by DarkPanda69 on 2026-11-24T22:40:16Z.
AMD run, which this PR lists as not tested (the other report here is Ampere).
Tested: pass, head
14dc445applied onmain689f2db, debug, Rust 1.100.0, Windows 11 Pro 26200, Ryzen 7 5800X, DXC 1.9.2602.17.cargo test -p xcl --lib -- gpu::recomp --test-threads=4:gpu_direct_image_get_lod_static_samplerok. The 6 SKIPPED lines (per-lane form refused for some f16/f32 programs) are the same onmain.Not tested: Intel; the whole workspace suite.
AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T01:38:26Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T03:20:04Z.
Tested
14dc4456dc3876020daff223fe844561c617c0c4. The live PR was open at this head before and after the run. The reused detached checkout matched the SHA and was clean both times.32.0.101.9175, AMD Ryzen 7 3800X (6 cores / 12 logical processors exposed), Windows 11 Enterprise Evaluation26200.9974, Rust and Cargo1.100.0(x86_64-pc-windows-msvc). The run log confirms DXC and DXIL1.9.2609.5loaded from the explicitXCL_DXC_DIRbelow.< 0.02of0.0. The green channel, unclamped LOD, was within< 0.02of-2.0. The passing fixture emits no raw channel values, so the run establishes those bounds and does not establish bit-exact values.The prebuild finished outside the mutex. The wrapper acquired and released the Arc mutex around the test executable, which exited
0.RemoteSignedapplied only to the child PowerShell process. Captured logs areprebuild.jsonl,prebuild.stderr.log,gpu.stdout.log, andgpu.stderr.login the run directory.Not tested
Repeat-draw bitwise determinism, HLSL pixel-shader parity, other adapters or drivers, retail titles, smoke runs, or the wider suite.
AI use
T3 Code / Codex (
gpt-6.2-sol) ran the checked-in test and wrote this report.Imported from ivall/xcl. Originally posted by raylitebull on 2026-11-25T10:46:44Z.
Diff review on
14dc445looks clean, andgpu_direct_image_get_lod_static_samplerhas both NVIDIA (@upipibi,@DavidM1911) and AMD (@DarkPanda69) passes.One small CI fix needed before merge: CI
45497463897failed ingpu_direct_image_get_lod_static_samplerwithD3D12 device removed (0x887a0005)on WARP because the new test only guardsrunner::adapter().is_err()instead of!gpu_ready()(which incrates/xcl/src/gpu/recomp/tests.rsalso checkswave64_programs_supported()anddxc::location()so WARP skips cleanly). Switching that guard toif !gpu_ready() { return; }should make CI green.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T07:01:29Z.
Triage (#1607) – head
14dc445#1806 (merged) made
image_get_lodaccept static samplers and only added a translate/validate test (core_tests::ps_get_lod_with_a_static_sampler); main has no GPU test of that path and no draw helper with static samplers. This PR addsrunner::draw_views_with_static_samplersand a GPU draw test checking clamped LOD 0 / unclamped LOD -2. No other open PR does the same.No problems found in the diff. The Windows build-and-test check is red; its log was not available to see why.
Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
Imported from ivall/xcl. Originally posted by ClosetPie107 on 2026-12-02T17:13:03Z.
Linux / AMD RDNA4 (RADV, Wine + vkd3d-proton): full test suite on
14dc445Merged onto
main5eaadb54(clean merge) and compared withmainrun twice on the same machine.Setup
v3.1-83-gcae8353edand DXVKdxgi.dllfrom GE-Proton11-16, DXC 1.9.2609.5x86_64-pc-windows-msvcwithcargo-xwin; test binaries run under WineTested:
cargo xwin test --workspace --target x86_64-pc-windows-msvc --no-fail-fast -- --test-threads=4 --skip <31 tests>main5eaadb54main: none.gpu_direct_image_get_lod_static_sampler).About the failures on
mainand the 31 skipped tests (same for every PR in this batch)main's 177 failures under Wine come from #175: once a test has set up the real device, vkd3d-proton refuses the command allocators XCL adopts (d3d12_command_list_Reset: Invalid command allocator), and later tests getE_INVALIDARG(0x80070057). Running vkd3d-proton master with its vtable check taken out,hle::d3d12x::sparse::testsgoes from 106 passed / 38 failed to 144 / 0.std::terminate()(Cannot reliably convert LLVM pointer type, we cannot differentiate between Function and Private), which kills the whole test binary. They are the split-wave64, dispatch-chain and bridged-mask GPU tests,gpu_compute_mode_dispatch_abi,gpu_compute_thread_limits_leave_the_lanes_past_them_out, the twogpu_mesh_mode_*tests, andconsole_wave64_compute_through_the_pso_hook_dispatch_and_read_back, plusserialize_root_signature_strips_console_flags_and_preserves_pc_flags, whose null descriptor vkd3d-proton dereferences. The dxil-spirv ones crash the same way with vkd3d-proton master (f8c1cae8, dxil-spirv93ab44c5).mainwas run twice: same counts, same failure set.SKIPPEDlines (same asmain): no heap windows (2), no D3D12 debug layer (2-3), driver cache control not implemented in vkd3d-proton (1).Not tested: Windows, NVIDIA, a retail title /
scripts/smoke.ps1, a review of the diff. This is a test report, not amerge-check.AI use: omp (Claude Opus 5.5) merged, built and ran the suites on this machine, compared the results with
main, and drafted this report. The user asked for it to be posted.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.