1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-07-03 21:32:35 +00:00

Initial MESA support, needs more fixes

This commit is contained in:
jsteube 2016-04-25 13:51:18 +02:00
parent 9a22b53254
commit 082b1504b1

View File

@ -12863,6 +12863,12 @@ int main (int argc, char **argv)
if (device_type & CL_DEVICE_TYPE_GPU) if (device_type & CL_DEVICE_TYPE_GPU)
{ {
if (vendor_id == VENDOR_ID_AMD) if (vendor_id == VENDOR_ID_AMD)
{
if (strstr (device_version, "MESA"))
{
// MESA stuff
}
else
{ {
cl_uint device_processor_cores = 0; cl_uint device_processor_cores = 0;
@ -12872,6 +12878,7 @@ int main (int argc, char **argv)
device_param->device_processor_cores = device_processor_cores; device_param->device_processor_cores = device_processor_cores;
} }
}
else if (vendor_id == VENDOR_ID_NV) else if (vendor_id == VENDOR_ID_NV)
{ {
cl_uint kernel_exec_timeout = 0; cl_uint kernel_exec_timeout = 0;
@ -12961,6 +12968,12 @@ int main (int argc, char **argv)
} }
} }
else if (vendor_id == VENDOR_ID_AMD) else if (vendor_id == VENDOR_ID_AMD)
{
if (strstr (device_version, "MESA"))
{
// MESA stuff
}
else
{ {
int catalyst_check = (force == 1) ? 0 : 1; int catalyst_check = (force == 1) ? 0 : 1;
@ -13009,6 +13022,7 @@ int main (int argc, char **argv)
} }
} }
} }
}
/** /**
* kernel accel and loops tuning db adjustment * kernel accel and loops tuning db adjustment