From: Rodeo Date: Wed, 5 Jun 2013 20:21:27 +0000 (+0000) Subject: OpenCL: enable OpenCL on Intel devices for testing. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dc4f42f4f045418519f20ed6db5d192e043b4102;p=handbrake OpenCL: enable OpenCL on Intel devices for testing. git-svn-id: svn://svn.handbrake.fr/HandBrake/branches/opencl@5565 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- diff --git a/libhb/openclwrapper.c b/libhb/openclwrapper.c index 10849fd45..e4d1c5693 100644 --- a/libhb/openclwrapper.c +++ b/libhb/openclwrapper.c @@ -135,14 +135,15 @@ int hb_confirm_gpu_type() { char dbuff[100]; status = clGetDeviceInfo(devices[j], CL_DEVICE_VENDOR, sizeof(dbuff), dbuff, NULL); - if(!strcmp(dbuff, "Advanced Micro Devices, Inc.") || + if (!strcmp(dbuff, "Advanced Micro Devices, Inc.") || + !strcmp(dbuff, "Intel(R) Corporation") || #ifdef __APPLE__ - !strcmp(dbuff, "AMD") || - /* MacBook Pro, AMD ATI Radeon HD 6750M, OS X 10.8.3 */ - !strcmp(dbuff, "NVIDIA") || - /* MacBook Pro, NVIDIA GeForce GT 330M, OS X 10.7.4 */ + !strcmp(dbuff, "AMD") || + /* MacBook Pro, AMD ATI Radeon HD 6750M, OS X 10.8.3 */ + !strcmp(dbuff, "NVIDIA") || + /* MacBook Pro, NVIDIA GeForce GT 330M, OS X 10.7.4 */ #endif - !strcmp(dbuff, "NVIDIA Corporation")) + !strcmp(dbuff, "NVIDIA Corporation")) { return 0; }