Merge pull request #4528 from kr4y4/test/agc-dot2-rounding-float64-skip

test(agc): skip the f32 dot2 rounding test on devices without shaderFloat64
This commit is contained in:
Dean 2026-10-13 07:31:10 +13:00 committed by GitHub
commit 455027e520
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -231,6 +231,10 @@ int main() {
try {
const auto device = OpenVulkanTestDevice();
if (!device) return VulkanTestSkipped;
if (!TargetHasCapability(device->Target(), spv::CapabilityFloat64)) {
std::puts("skipped, v_dot2_f32_f16 takes an f64 branch and the device has no shaderFloat64");
return VulkanTestSkipped;
}
const auto cases = Cases();
for (std::size_t index = 0; index < cases.size(); ++index) {
Input[index * 4u] = cases[index].a;