Skip to content

Commit 305837f

Browse files
authored
fix vulkan driver blacklist (#6034)
1 parent 2d01465 commit 305837f

File tree

1 file changed

+19
-8
lines changed

1 file changed

+19
-8
lines changed

src/gpu.cpp

+19-8
Original file line numberDiff line numberDiff line change
@@ -925,14 +925,6 @@ void GpuInfoPrivate::query_extension_features()
925925
// fp16 arithmetic yields wrong result on old adreno drivers :(
926926
queryFloat16Int8Features.shaderFloat16 = VK_FALSE;
927927
}
928-
929-
if (queryDriverProperties.driverID == VK_DRIVER_ID_MESA_RADV || queryDriverProperties.driverID == VK_DRIVER_ID_INTEL_OPEN_SOURCE_MESA)
930-
{
931-
// cooperative matrix produces wrong result on mesa vulkan drivers :(
932-
// https://gitlab.freedesktop.org/mesa/mesa/-/issues/10847
933-
queryCooperativeMatrixFeatures.cooperativeMatrix = VK_FALSE;
934-
queryCooperativeMatrixFeaturesNV.cooperativeMatrix = VK_FALSE;
935-
}
936928
}
937929

938930
void GpuInfoPrivate::query_extension_properties()
@@ -1121,6 +1113,25 @@ void GpuInfoPrivate::query_extension_properties()
11211113
}
11221114
}
11231115
}
1116+
1117+
if (queryDriverProperties.driverID == VK_DRIVER_ID_MESA_RADV || queryDriverProperties.driverID == VK_DRIVER_ID_INTEL_OPEN_SOURCE_MESA)
1118+
{
1119+
// cooperative matrix produces wrong result on mesa vulkan drivers :(
1120+
// https://gitlab.freedesktop.org/mesa/mesa/-/issues/10847
1121+
queryCooperativeMatrixFeatures.cooperativeMatrix = VK_FALSE;
1122+
queryCooperativeMatrixFeaturesNV.cooperativeMatrix = VK_FALSE;
1123+
1124+
support_cooperative_matrix_8_8_16 = false;
1125+
support_cooperative_matrix_16_8_8 = false;
1126+
support_cooperative_matrix_16_8_16 = false;
1127+
support_cooperative_matrix_16_16_16 = false;
1128+
}
1129+
1130+
if (queryDriverProperties.driverID == VK_DRIVER_ID_MESA_TURNIP)
1131+
{
1132+
// turnip crash when compiling large shader with full subgroup
1133+
querySubgroupSizeControlFeatures.computeFullSubgroups = VK_FALSE;
1134+
}
11241135
}
11251136

11261137
GpuInfo::GpuInfo()

0 commit comments

Comments
 (0)