Tests: check MIMG gather4, image_load_mip, and image_get_lod on the GPU #1562
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!1562
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1562"
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?
@thiagocalile on GitHub · 2026-11-24 17:41 UTC · original
thiagocalile:tests-recomp-mimg-gather-mip-lod→main· +297 −0 · 1 files · 1 commits · openAdd GPU and translation-refusal tests for MIMG
image_gather4variants,image_load_mip, andimage_get_lod. None of these had a GPU test;image_gather4_lzwas only checked on the red channel.What is in it
crates/xcl/src/gpu/recomp/tests.rs:mimg_gather_lod_and_mip_refusalschecks the translator's refusals for a multi/zero-channelgather4DMASK,image_get_lodoutside PS,image_store_mip, cubeimage_load_mip, and cubeimage_gather4_lz_ocrates/xcl/src/gpu/recomp/tests.rs:gpu_image_gather4_channels_offsets_and_cmpcoversimage_gather4_lzon all 4DMASKchannels and withD16,image_gather4border clamping,image_gather4_lz_osigned 6-bit offsets,image_gather4_c_lz/image_gather4_c_lz_ocomparison gathers (onR32_FLOAT; D3D12 has no comparison gather onR32G32B32A32_FLOAT), and EXEC masking, as wave64 and wave32 programscrates/xcl/src/gpu/recomp/tests.rs:gpu_ps_image_load_mip_and_get_lodcoversimage_load_mipon a 4-mip 2D texture (32-bit andA16coordinates, mips 0..3, out-of-bounds texels and mip 4 reading 0,DMASKsubsets) andimage_get_lodin a pixel shader (clamped vs unclamped LOD when magnified and minified,MinLOD/MaxLOD,MipLODBias,DMASK0x2)Tested
XCL_ADAPTER=radeon, native wave64 + wave32), AMD Ryzen 7 5700X3D, 47.9 GB RAM, Windows 11 (26200), Rust 1.100.0 (stable-x86_64-pc-windows-msvc), DXC 1.8.2502.11, debug buildXCL_ADAPTER=radeon cargo test -p xcl --lib mimg_gather_lod_and_mip_refusals: 1 passed, 0 failedXCL_ADAPTER=radeon cargo test -p xcl --lib gpu_image_gather4_channels_offsets_and_cmp: 1 passed, 0 failedXCL_ADAPTER=radeon cargo test -p xcl --lib gpu_ps_image_load_mip_and_get_lod: 1 passed, 0 failedXCL_ADAPTER=radeon cargo test --workspace --no-fail-fast -- --test-threads=4on this branch (rebased onmain9e3831e): 776 passed, 3 failed, 41 ignored. The 3 failures are pre-existing onmainon this RX 6600 (placed_title_textures_share_vram_and_preserve_pixelsand 2 mutex-poison cascades; #1028 fixes them). 1 GPU test skipped inside the passing count:heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows)Not tested
AI use
main, re-ran the suite and drafted this description. I reviewed the diff and the test output.@coenflict on GitHub · 2026-11-24 17:56 UTC · original
Tested
6995bcbb82f8ab2dff64ffc82d1e2cb01201bdf0, Windows 11 build 26340, Ryzen 7 9800X3D, RTX 5090 driver32.0.16.2140, Rust 1.97.1 MSVC, DXC and DXIL 1.9.2602.17, debug build. SetXCL_ADAPTER=nvidia.cargo test -p xcl --lib -- --nocapture mimg_gather_lod_and_mip_refusals gpu_image_gather4_channels_offsets_and_cmp gpu_ps_image_load_mip_and_get_lodreported 3 passed, 0 failed, 0 ignored, 0 skips. Both GPU tests executed.Not tested
AI use
gpt-6.2-sol) ran the tests and wrote this report.@DavidM1911 on GitHub · 2026-11-24 19:32 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~22 ignored. (Intermittent single-test flake under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodifiedmain.)Thanks!
@JJAutoCompare on GitHub · 2026-11-25 07:41 UTC · original
Tested
Independent native Windows run at clean detached PR #1562 head
6995bcbb82f8ab2dff64ffc82d1e2cb01201bdf0. STOR-WINLAB, Windows 11 Enterprise Evaluation x64 26200.9974, Ryzen 7 3800X, Intel Arc A770 driver 32.0.101.9175, Rust/Cargo 1.100.0 x86_64-pc-windows-msvc, DXC/DXIL 1.9.2609.5. Unoptimized test profile, incremental compilation and debug info disabled.cargo test --locked -p xcl --lib --no-run -j 2 --message-format=jsonexited 0 outside the Arc mutex. UsedXCL_ADAPTER=A770,XCL_DIRECT_DXIL=0andXCL_DXC_DIR=%LOCALAPPDATA%/XclTooling/dxc-1.9.2609/bin/x64. Under the sharedInvoke-ArcTest.ps1lock:2 passed, 0 failed, 0 ignored, 0 GPU skips. Each exact invocation filtered out 750 other tests and exited 0 (0.54 s and 0.53 s). The mutex wrapper exited 0. The executable digest matched before waiting, after lock acquisition, and after both fixtures.
The HLSL/DXC gather fixture checked wave32 channel selection, D16, signed offsets, comparison gather, and EXEC masking. The pixel fixture checked 2D mip loads (including A16 coordinates and out-of-bounds results) and clamped/unclamped LOD readback. On the A770 the stock gather loop omits native wave64.
Not tested
Native wave64 or split-wave64 gather, standalone translation-refusal fixture, direct DXIL, other GPUs, the full workspace suite, and title smoke runs.
AI use
T3 Code / Codex (gpt-6.2-sol) verified the revision, ran the checked-in tests, and wrote this report.
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.