vk: Fix VEGA float16 workaround

This commit is contained in:
kd-11 2024-07-25 12:48:10 +03:00 committed by kd-11
parent 953af7589c
commit 27047bb3dc

View File

@ -202,7 +202,7 @@ namespace vk
}
}
if (get_chip_class() == chip_class::AMD_vega)
if (get_chip_class() == chip_class::AMD_vega && shader_types_support.allow_float16)
{
// Disable fp16 if driver uses LLVM emitter. It does fine with AMD proprietary drivers though.
shader_types_support.allow_float16 = (driver_properties.driverID == VK_DRIVER_ID_AMD_PROPRIETARY_KHR);