Repository navigation
Tests: name the trailing VGPRs in the D16 resinfo kernel test - #3513
Conversation
gpu_direct_image_get_resinfo_d16 fails on main on a GPU since 43c56dc (xcl-dev#3495): "2D D16 resinfo clobbered v2/v3", left (0, 0). The test kernel loads and stores only the registers its instructions name (dxil/kernel.rs, `touched`). Until 43c56dc, `rdna2::vgpr_uses` took an image instruction's VDATA from the spec's 128-bit operand, so the two `image_get_resinfo` named v0..v3 and v4..v7 and the kernel carried v2/v3/v6/v7 from the input state to the result. Since then `mimg_vgpr_uses` gives a D16 result its two VGPRs, the trailing ones are never stored, and the result buffer reads 0 for them. The translation is unchanged and does not write them. The test now names v2, v3, v6 and v7 with self-moves after the two queries, so the kernel carries them and a query that wrote four VGPRs would still fail the assertions. CI has no GPU and returns before the run, which is why main's CI is green. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
Unattended test report. Posted automatically by an AI agent on the account owner's instruction. The account owner has not read or checked it. It is not a code review and not a Outcome: Tested tree
Hardware and tools
Commands and results
Not tested
AI use: Claude Code (Claude Opus 5.5) ran the tests and wrote and posted this report. |
|
merge-check
|
|
Tested
Not tested
AI use
|
|
merge-check claim |
|
merge-check |
The MSAA test runs the HLSL itself on the GPU (runner::run_code_with runs the direct DXIL when that is on, the default), and names v56/v57 with self-moves: the kernel loads and stores only the registers its instructions name, and a D16 get_resinfo names its two result VGPRs, so the two after them read 0 whatever the translation wrote (as xcl-dev#3513 does for gpu_direct_image_get_resinfo_d16). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The MSAA test runs the HLSL itself on the GPU (runner::run_code_with runs the direct DXIL when that is on, the default), and names v56/v57 with self-moves: the kernel loads and stores only the registers its instructions name, and a D16 get_resinfo names its two result VGPRs, so the two after them read 0 whatever the translation wrote (as xcl-dev#3513 does for gpu_direct_image_get_resinfo_d16). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The MSAA test runs the HLSL itself on the GPU (runner::run_code_with runs the direct DXIL when that is on, the default), and names v56/v57 with self-moves: the kernel loads and stores only the registers its instructions name, and a D16 get_resinfo names its two result VGPRs, so the two after them read 0 whatever the translation wrote (as xcl-dev#3513 does for gpu_direct_image_get_resinfo_d16). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
gpu::dxil::msaa_tests::gpu_direct_image_get_resinfo_d16fails onmainon a GPU since 43c56dc (#3495): "2D D16 resinfo clobbered v2/v3", left (0, 0). CI is green because CI has no GPU and the test returns before the run. #3101's description reports the same failure on a clean d52ff48 from another machine.Cause: the test kernel loads and stores only the registers its instructions name (
touched,crates/xcl/src/gpu/dxil/kernel.rs:416-419). Before 43c56dc the twoimage_get_resinfonamed v0..v3 and v4..v7 (VDATA from the spec's 128-bit operand), so v2/v3/v6/v7 were carried from the input state to the result. Since thenmimg_vgpr_uses(crates/xcl/src/gpu/rdna2.rs:613) gives a D16 result two VGPRs, so the trailing ones are never stored and read 0. The translation is unchanged and does not write them. The test change names v2, v3, v6 and v7 with self-moves after the two queries, so a query that wrote four VGPRs would still fail.Test-only, 5 lines.
What is in it
crates/xcl/src/gpu/dxil/msaa_tests.rs,gpu_direct_image_get_resinfo_d16)Tested
main(d52ff48): the test fails 5 of 5 runscargo test --workspace -- --test-threads=4on 466b75c: 2877 passed, 0 failed, 51 ignored, 25 SKIPPEDRegression run
test-onlylabelNot tested
AI use