Repository navigation
Conversation
gpu_ps_image_sample_offset_implicit_lod_between_mips failed on D3DMetal (macOS, CrossOver) for two reasons outside the code it tests: - Its program had no 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 stayed 0 and 30 pixels read mip 3. A plain HLSL Sample with the same offset has no such pixels. - The expected values assumed a host LOD of exactly 0.25. D3DMetal's CalculateLevelOfDetail returns 0.2421875 for every pixel. The program now starts with s_wqm, 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: moving mip 1 by mip 0's offset still fails the test, and so does leaving s_wqm out. (xcl-dev#258) Assisted-by: Claude Code (Claude Opus 5.5)
|
Tested on AMD Radeon RX 9070 XT (RDNA4) at AMD 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):
Not tested: retail title / Report written by Claude Code (Claude Sonnet 5.5) from a real run on this machine. |
|
Independent validation — NVIDIA RTX 3050 Laptop (Windows D3D12) Tested PR head: Hardware / environment
Focused A/B test — PASS Baseline (
PR head (
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 Skip and sample-data limitations
Not tested
Interpretation AI use |
|
Verified on a second Apple silicon host, on the 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,
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 Worth noting for anyone reading the #258 threads together: with #983's head ( Not tested here: Windows (no Windows machine on this bench), and this PR's 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. |
|
Test report from a second Mac, head Tested
Not tested
AI use
|
|
Independent verification, merged onto current Machine: Windows 11, Ryzen 9 7900X + RTX 3060 Ti; Rust stable MSVC, debug; DXC 1.8.2502.11.
AI use: test runs by Devin (Cognition, SWE-2); no code changes. |
gpu_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, Tests: implicit-LOD sample offset test uses s_wqm and the host's LOD #982 (comment)); 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, Tests: implicit-LOD sample offset test uses s_wqm and the host's LOD #982 (comment)); a second M5 Pro (x86_64-pc-windows-gnullvm, release): fails on9aec53dwithpixel (0,0) = 25.21875, expected 26and passes at this head (@mikebuckets171, Tests: implicit-LOD sample offset test uses s_wqm and the host's LOD #982 (comment)).Regression run
Test-only change in
tests.rs: noxcl-smokeblocks.Not tested
AI use