Merge pull request #8249 from MayankManas/test/agc-f64-denormal-modes-skip-without-float64

test(agc): skip the f64 denormal mode tests on devices without shaderFloat64
This commit is contained in:
Dean authored and GitHub committed 2026-10-21 15:02:40 +13:00
commit 6696def6e6
2 files changed
+8

No files matched your search

@@ -192,6 +192,10 @@ int main() {
try {
const auto device = OpenVulkanTestDevice();
if (!device) return VulkanTestSkipped;
if (!TargetHasCapability(device->Target(), spv::CapabilityFloat64)) {
std::puts("skipped, the device has no shaderFloat64");
return VulkanTestSkipped;
}
const Mode modes[] = {
{"without a known float mode", std::nullopt, 3u},
{"f64 denormal mode 0, IEEE mode on", ShaderRecompiler::ShaderFloatMode{0x30u, true, true, false}, 0u},
@@ -137,6 +137,10 @@ int main() {
try {
const auto device = OpenVulkanTestDevice();
if (!device) return VulkanTestSkipped;
if (!TargetHasCapability(device->Target(), spv::CapabilityFloat64)) {
std::puts("skipped, the device has no shaderFloat64");
return VulkanTestSkipped;
}
const Mode modes[] = {
{"without a known float mode", std::nullopt},
{"f64 denormal mode 0, IEEE mode on", ShaderRecompiler::ShaderFloatMode{0x30u, true, true, false}},