Tests: check 16-bit pixel interpolation (v_interp_*_f16) on the GPU #1180
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!1180
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1180"
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?
@microwave805 on GitHub · 2026-11-24 12:54 UTC · original
microwave805:gpu-tests-ps-interp-f16→main· +69 −0 · 1 files · 1 commits · openAdds a real GPU graphics draw test (VS + PS) covering
v_interp_p1ll_f16,v_interp_p1lv_f16, andv_interp_p2_f16incrates/xcl/src/gpu/recomp/tests.rs(none of the three currently have GPU coverage).What is in it
crates/xcl/src/gpu/recomp/tests.rs: addgpu_ps_interp_f16alongsidegpu_ps_p0_reads_flat_integer_selectors, verifying:v_interp_p1ll_f16+v_interp_p2_f16(OP_SEL[3]=0, low half) preservesvdst[31:16];v_interp_p1lv_f16+v_interp_p2_f16(OP_SEL[3]=1, high half) preservesvdst[15:0];v_interp_p2_f16underEXEC=0(both halves) leavesvdstunchanged.Tested
cargo test -p xcl --lib gpu_ps_interp_f16 -- --nocapture: 1 passed, 0 failed.\scripts\test.ps1(cargo build --workspace+cargo test --workspace -- --test-threads=4): 742 passed, 0 failed, 41 ignoredgpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask,gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware(no wave64)python -I scripts/pr_check.py --localon this PR's description and changed files:description okRegression run
crates/xcl/src/gpu/recomp/tests.rs(test-only).Not tested
AI use
v_interp_*_f16coverage inemit.rs/tests.rs, wrote the GPU test and this PR description, and ran the test commands above.@DavidM1911 on GitHub · 2026-11-24 13:03 UTC · original
Independent verification on current
main384f7f7(branch already contains it — clean).Machine: Windows 11, Ryzen 9 7900X + RTX 3060 Ti; Rust stable MSVC, debug; DXC 1.8.2502.11.
cargo test -p xcl --lib interp: 2 passed, 0 failed —gpu_ps_interp_f16(the new 16-bit pixel interpolation coverage) plus the existingps_interp_p0_preserves_bits_and_p2_converts_to_float.AI use: test runs by Devin (Cognition, SWE-2); no code changes.
@bjarngard on GitHub · 2026-11-24 13:23 UTC · original
Test report for head
923da6f(AMD, native wave64)Tested
XCL_ADAPTER=radeon cargo test --workspace --no-fail-fast -- --test-threads=4: 742 passed, 0 failed, 41 ignored, no SKIPPEDXCL_REQUIRE_GPU=wave64:gpu_ps_interp_f16passedNot tested: retail titles, RDNA3/RDNA4.
AI use: the tests were run and this report was written by an AI agent, Claude Code (Claude Opus 5.5), on the hardware above. The numbers are copied from the actual test output.
@JoaoPauluu on GitHub · 2026-11-24 13:45 UTC · original
A run on Linux with vkd3d-proton, where the shaders go through dxil-spirv to Vulkan instead of a Windows driver's DXIL compiler.
Tested
x86_64-pc-windows-gnu.923da6fas it is (based on47efa2e), no uncommitted changes. The lib test binary runs under Wine.gpu::recomp::tests::gpu_ps_interp_f16(--exact, one process): ok, no SKIPPED. DXC compiled it and it ran on the GPU in about 0.8 s.Not tested
AI use
@JJAutoCompare on GitHub · 2026-11-25 04:46 UTC · original
Tested
Clean detached PR head
923da6fc9ded1dc93fa809072767199492534a18.Windows 11 Enterprise Evaluation 25H2 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 on STOR-WINLAB.
The build ran outside the mutex and exited 0. The final HLSL/DXC fixture ran in 0.26 s with 1 passed, 0 failed, 0 ignored, 0 skipped, 719 filtered out. The fixture and mutex wrapper both exited 0. Earlier launch attempts had exit-capture errors. The final run captured both streams and exits separately.
Both D3D12 draws matched all 256 RGBA32F pixels exactly. The first returned
[0.25, 0.875, 0.375, 0.5]and checked preservation of the other VGPR half during low- and high-half interpolation writes. The second returned[0.75, 1.0, 0.625, 0.125]and checked packed-channel writes and preservation of both destination halves underEXEC=0. Each draw used identical attributes at all three vertices.Not tested
Varying per-vertex attributes, direct DXIL, native wave64, other adapters, the workspace suite, and retail titles.
AI use
T3 Code / Codex (
gpt-6.2-sol) ran the checked-in fixture and prepared this report.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.