Fix -m 10700 activate unstable warning only in optimized mode

This commit is contained in:
jsteube
2019-03-04 15:34:03 +01:00
parent 460153d818
commit d325413b34
+1 -1
View File
@@ -111,7 +111,7 @@ bool module_unstable_warning (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE
// amdgpu-pro-18.50-708488-ubuntu-18.04: Segmentation fault
if ((device_param->device_vendor_id == VENDOR_ID_AMD) && (device_param->has_vperm == false))
{
if ((hashconfig->opti_type & OPTI_TYPE_OPTIMIZED_KERNEL) == 0)
if ((hashconfig->opti_type & OPTI_TYPE_OPTIMIZED_KERNEL) == 1)
{
return true;
}