Tests: implicit-LOD sample offset test uses s_wqm and the host's LOD #982
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!982
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-982"
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?
@vakaobr on GitHub · 2026-11-24 09:52 UTC · original
vakaobr:tests/sample-offset-wqm-host-lod→main· +33 −5 · 1 files · 1 commits · opengpu_ps_image_sample_offset_implicit_lod_between_mipsfails on Apple's D3DMetal (macOS, CrossOver) for two reasons, neither in the code it tests. Part of #258.s_wqm, which a console shader runs before an implicit-LOD sample. On D3DMetal, quads along a diagonal of the test's triangle have helper lanes. Their u / v stay 0, so 30 pixels read mip 3 (300 where 30.25 is expected). A plain HLSLSamplewith the same offset, texture and triangle has no such pixels.CalculateLevelOfDetailon D3DMetal returns 0.2421875 for every pixel, so even correct sampling misses the 0.02 tolerance (25.22 where 26 is expected).What is in it
crates/xcl/src/gpu/recomp/tests.rs: the program starts withS_WQM_B64 exec, exec, and the expected values blend the two mips by the host's own LOD, read by a plain HLSL draw of the same triangle, texture and sampler. The tolerance and the per-mip texel check are unchanged. The test also asserts that the host LOD lies between mips 0 and 1.Tested
x86_64-pc-windows-gnu(mingw-w64 GCC 16.2.0), debug, DXC 1.9.2609. Each test in its own process (<lib test exe> --exact <test> --test-threads=1 --nocapture).main6bac4b4: fails,pixel (0,0) = 25.21875, expected 26.3a6f95a(onmain9aec53d): passes.gpu_image_sample_offsetalso passes.6bac4b4, each failing the test as it should: mip 1 moved by mip 0's offset inemit.rsgivespixel (0,0) = 24.976563, expected 25.21875; withouts_wqm,pixel (14,4) = 300, expected 30.25.cargo test --workspace --no-fail-fast -- --test-threads=4: 724 passed, 0 failed, 41 ignored, the same asmain9aec53d(@Diskuss, https://github.com/ivall/xcl/pull/982#issuecomment-7128416945); NVIDIA RTX 3050 Laptop,scripts/test.ps1: 724 passed, 0 failed, 41 ignored, and the test passes on the base and at this head (@LANgmas, https://github.com/ivall/xcl/pull/982#issuecomment-7129499189); a second M5 Pro (x86_64-pc-windows-gnullvm, release): fails on9aec53dwithpixel (0,0) = 25.21875, expected 26and passes at this head (@mikebuckets171, https://github.com/ivall/xcl/pull/982#issuecomment-7129605612).Regression run
Test-only change in
tests.rs: noxcl-smokeblocks.Not tested
AI use
@Diskuss on GitHub · 2026-11-24 10:10 UTC · original
Tested on AMD Radeon RX 9070 XT (RDNA4) at
3a6f95a690dfd0ab7aa7d90bd5655cb7be07d821AMD Radeon RX 9070 XT (RDNA4), driver 32.0.32015.7029; Ryzen 7 5700X3D; 32 GB RAM; Windows 11 Pro build 26300.9974; Rust 1.100.0; DXC 1.9.2602.17; debug build.
Tested (PR head as-is; it is 0 commits behind main
9aec53d, so no merge was needed):cargo build --workspace: OK (1 existing warning inxcllib).cargo test --workspace --no-fail-fast -- --test-threads=4: 724 passed, 0 failed, 41 ignored. The #718 flake did not appear.cargo test -p xcl --lib gpu_ps_image_sample_offset_implicit_lod -- --test-threads=1:gpu_ps_image_sample_offset_implicit_lod_between_mips1 passed, 0 failed.9aec53d(724/0/41).Not tested: retail title /
scripts/smoke.ps1(no game files), release build.Report written by Claude Code (Claude Sonnet 5.5) from a real run on this machine.
@LANgmas on GitHub · 2026-11-24 10:59 UTC · original
Independent validation — NVIDIA RTX 3050 Laptop (Windows D3D12)
Tested PR head:
3a6f95a690dfd0ab7aa7d90bd5655cb7be07d821PR base:
9aec53dTested in isolated worktrees at the exact baseline and PR revisions.
Hardware / environment
Focused A/B test — PASS
Test:
gpu_ps_image_sample_offset_implicit_lod_between_mipsBaseline (
9aec53d, before this PR):PR head (
3a6f95a):s_wqmand host-measured-LOD version introduces no regression on this NVIDIA configuration.The D3DMetal-specific LOD deviation reported by the author (0.2421875) was not observed on this NVIDIA adapter. This report therefore does not reproduce the original D3DMetal failure; it independently checks that the PR's cross-backend test changes remain correct on NVIDIA D3D12.
Full official test wrapper — PASS
Command:
.\scripts\test.ps1Result: 724 passed, 0 failed, 41 ignored, across 17 test binaries. Exit code 0.
The wrapper reported 2 GPU tests skipped because this adapter does not support native wave64.
One existing upstream
fetch_updatedeprecation warning was observed. No panic or device-removal event occurred.Skip and sample-data limitations
--nocapture: two debug-layer-dependent tests and one reserved-cubemap adapter capability test.XCL_SAMPLE_*variables were unset. Approximately 28 sample-gated tests returned early rather than exercising their full game-data paths. This is an estimate from source gates and observed runtimes, not a per-test exhaustive audit.Not tested
At validation time, the PR base (
9aec53d) was approximately 13 commits behind current upstream main (384f7f7). This report describes the exact PR head/base tested, not merge-time validation against current main.Interpretation
On this NVIDIA RTX 3050 configuration, the baseline test already passed, and the PR-head test also passed. The original D3DMetal-specific failure was not reproduced here. These results provide an independent NVIDIA D3D12 cross-backend check and show no regression on this adapter; they do not validate the original D3DMetal behavior or retail-game compatibility.
AI use
Devin (SWE-2 Max) assisted with test execution and result reconciliation. The contributor reviewed the results and authorized this report.
@mikebuckets171 on GitHub · 2026-11-24 11:03 UTC · original
Verified on a second Apple silicon host, on the
gnullvmtarget: the test fails on the base with the LOD-shaped value you describe, and passes at this head.Host: MacBook Pro M5 Pro (48 GB), macOS 27.2.1, CrossOver 26 with D3DMetal (adapter reports "AMD Compatibility Mode"), Rosetta 2, Rust 1.100.0,
x86_64-pc-windows-gnullvmwith LLVM-MinGW 20261117 (clang 23.1.6),--release --locked, test binary run under Wine, one test per process (--exact <full test path> --nocapture --test-threads=1). Base9aec53d, head3a6f95a.9aec53d: FAILED -panicked at crates/xcl/src/gpu/recomp/tests.rs:2060:13: pixel (0,0) = 25.21875, expected 26,test result: FAILED. 0 passed; 1 failed, exit0x65, 0.53 s.3a6f95a:ok. 1 passed; 0 failedin 0.50 s, exit0x0.The failing value sits below the expected 26, which is the shape an implicit LOD a little under the 0.25 the test assumes produces (the description measured 0.2421875 on its host). I did not read this host's LOD directly, so treat that as consistent with your diagnosis rather than an independent confirmation of the number. What is confirmed here is the pair that matters for merging: the test as written does not hold on this host, and at your head it passes. Which of your two changes - adding
s_wqm, or reading the host's LOD - carries the fix on this host I did not separate.Worth noting for anyone reading the #258 threads together: with #983's head (
ab7ce43) on the same base, this test still fails with the identical message attests.rs:2080(the line the atomics patch shifts), so the two PRs are genuinely independent - #983 does not touch it, and #982 does not touch the atomics tests. Both verified in one tree, base9aec53d.Not tested here: Windows (no Windows machine on this bench), and this PR's
CIjob has not run on GitHub - as with my own PRs here, a head from a fork shows only thePR checksdescription job until a maintainer approves a workflow run.Host: macOS 27.2.1 (Apple silicon, M5 Pro), CrossOver 26, D3DMetal; local inference unloaded and the bottle's wineserver stopped for each run. AI use: GPT-6 Luna built both trees, ran the test and drafted this comment; the values and line numbers are from those runs.
@shortside on GitHub · 2026-11-24 11:56 UTC · original
Test report from a second Mac, head
3a6f95aagainst its merge base9aec53d.Tested
x86_64-pc-windows-msvcwith clang-cl / lld-link 23.1.6 and an xwin SDK 10.0.26100, Rust 1.100.0, debug. The lib test binary run under Wine, one test per process (--exact --nocapture, 60 s cap).gpu_ps_image_sample_offset_implicit_lod_between_mips: base failed (pixel (0,0) = 25.21875, expected 26on this host); head passed.Not tested
AI use
@DavidM1911 on GitHub · 2026-11-24 12:35 UTC · original
Independent verification, merged onto current
main384f7f7locally (clean merge).Machine: Windows 11, Ryzen 9 7900X + RTX 3060 Ti; Rust stable MSVC, debug; DXC 1.8.2502.11.
cargo test -p xcl --lib implicit: 2 passed, 0 failed —gpu_ps_image_sample_offset_implicit_lod_between_mipspasses on real hardware with thes_wqmfix and host-LOD expectation.AI use: test runs by Devin (Cognition, SWE-2); no code changes.
@DavidM1911 on GitHub · 2026-11-26 03:32 UTC · original
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.Thanks!
— Devin
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.