diff --git a/crates/xcl/src/gpu/dxil/msaa_tests.rs b/crates/xcl/src/gpu/dxil/msaa_tests.rs index 296c2814a5..554f0bbe51 100644 --- a/crates/xcl/src/gpu/dxil/msaa_tests.rs +++ b/crates/xcl/src/gpu/dxil/msaa_tests.rs @@ -311,6 +311,11 @@ fn gpu_direct_image_get_resinfo_d16() { // T# 0: 2D 64x32 R32_UINT (s[16:23], SRSRC 4); T# 1: 2D MSAA array 4x4x3 (s[24:31], SRSRC 6) code.extend(mimg("IMAGE_GET_RESINFO", &[("VDATA", 0), ("VADDR", 10), ("SRSRC", 4), ("DMASK", 0xF), ("DIM", 1), ("D16", 1)])); code.extend(mimg("IMAGE_GET_RESINFO", &[("VDATA", 4), ("VADDR", 10), ("SRSRC", 6), ("DMASK", 0xF), ("DIM", 7), ("D16", 1)])); + // the kernel loads and stores only the registers its instructions name, and a D16 resinfo + // names its two result VGPRs (`rdna2::vgpr_uses`): self-moves name the trailing ones + for r in [2u64, 3, 6, 7] { + code.extend(encode("V_MOV_B32", "ENC_VOP1", &[("VDST", r), ("SRC0", 256 + r)], None).unwrap()); + } code.extend(encode("S_ENDPGM", "ENC_SOPP", &[], None).unwrap()); if !gpu_ready() { return;