mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-21 03:16:54 +02:00
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 <Nmzik@mail.ru>
This commit is contained in:
@@ -8414,7 +8414,7 @@ public:
|
|||||||
if (width == 1 && height == 1) {
|
if (width == 1 && height == 1) {
|
||||||
Require(name, "single-texel tiled layout",
|
Require(name, "single-texel tiled layout",
|
||||||
color.desc.info.mip_layout[0] == ImageMipInfo{0, 0x10000, 128, 64},
|
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) {
|
if (target.levels == 7) {
|
||||||
@@ -8426,7 +8426,7 @@ public:
|
|||||||
Require(name, "linear mip chain", layout.offset == offsets[mip] &&
|
Require(name, "linear mip chain", layout.offset == offsets[mip] &&
|
||||||
layout.pitch == pitches[mip] &&
|
layout.pitch == pitches[mip] &&
|
||||||
layout.size == pitches[mip] * (height >> mip) * 8,
|
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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2042,9 +2042,9 @@ void TestNewShaderRecompilerVop3LaneReadDestinationEncoding() {
|
|||||||
options.dump_ir = true;
|
options.dump_ir = true;
|
||||||
|
|
||||||
auto result = RecompileForTest(shader, options);
|
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");
|
"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");
|
"VOP3 V_READLANE_B32 destination was not decoded from VDST");
|
||||||
CheckSpirvBinaryValidates(result.spirv);
|
CheckSpirvBinaryValidates(result.spirv);
|
||||||
}
|
}
|
||||||
@@ -13714,5 +13714,7 @@ int main() {
|
|||||||
TestGraphicsPushConstantPlacement();
|
TestGraphicsPushConstantPlacement();
|
||||||
TestNewShaderRecompilerUnsupportedMemoryDecode();
|
TestNewShaderRecompilerUnsupportedMemoryDecode();
|
||||||
|
|
||||||
|
TestNewShaderRecompilerVop3LaneReadDestinationEncoding();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user