From 1b6af301b5d7d0ee79e1e13147d0f6a276dcfdef Mon Sep 17 00:00:00 2001 From: Matthew Hurley Date: Sun, 27 Sep 2026 21:37:32 +1000 Subject: [PATCH] tests: wire dormant VOP3 lane-read check and guard new dormant tests (#840) Tests: enable lane-read coverage and clarify layout failures Co-authored-by: nmzik --- tests/ShaderRecompilerComputeTests.cpp | 4 ++-- tests/shaderCfgTests.cpp | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/ShaderRecompilerComputeTests.cpp b/tests/ShaderRecompilerComputeTests.cpp index 92efd0486..fd7d85a2f 100644 --- a/tests/ShaderRecompilerComputeTests.cpp +++ b/tests/ShaderRecompilerComputeTests.cpp @@ -8414,7 +8414,7 @@ public: if (width == 1 && height == 1) { Require(name, "single-texel tiled layout", color.desc.info.mip_layout[0] == ImageMipInfo{0, 0x10000, 128, 64}, - "the render target lost the SDK's padded block height"); + "the render target lost the expected padded block height"); } if (target.levels == 7) { @@ -8426,7 +8426,7 @@ public: Require(name, "linear mip chain", layout.offset == offsets[mip] && layout.pitch == pitches[mip] && layout.size == pitches[mip] * (height >> mip) * 8, - "linear target mip offsets or padded pitches differ from the SDK"); + "linear target mip offsets or padded pitches differ from the expected layout"); } } diff --git a/tests/shaderCfgTests.cpp b/tests/shaderCfgTests.cpp index 85a3c61b6..084bfbc14 100644 --- a/tests/shaderCfgTests.cpp +++ b/tests/shaderCfgTests.cpp @@ -2042,9 +2042,9 @@ void TestNewShaderRecompilerVop3LaneReadDestinationEncoding() { options.dump_ir = true; auto result = RecompileForTest(shader, options); - Check((result.decoded_dump.find("v_readfirstlane_b32 s25, v5") != std::string::npos), + Check((result.decoded_dump.find("V_READFIRSTLANE_B32 s25, v5") != std::string::npos), "VOP3 V_READFIRSTLANE_B32 destination was not decoded from VDST"); - Check((result.decoded_dump.find("v_readlane_b32 s26, v5, 2") != std::string::npos), + Check((result.decoded_dump.find("V_READLANE_B32 s26, v5, 2") != std::string::npos), "VOP3 V_READLANE_B32 destination was not decoded from VDST"); CheckSpirvBinaryValidates(result.spirv); } @@ -13714,5 +13714,7 @@ int main() { TestGraphicsPushConstantPlacement(); TestNewShaderRecompilerUnsupportedMemoryDecode(); + TestNewShaderRecompilerVop3LaneReadDestinationEncoding(); + return 0; }