]> granicus.if.org Git - handbrake/commitdiff
OpenCL: enable OpenCL on Intel devices for testing.
authorRodeo <tdskywalker@gmail.com>
Wed, 5 Jun 2013 20:21:27 +0000 (20:21 +0000)
committerRodeo <tdskywalker@gmail.com>
Wed, 5 Jun 2013 20:21:27 +0000 (20:21 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/branches/opencl@5565 b64f7644-9d1e-0410-96f1-a4d463321fa5

libhb/openclwrapper.c

index 10849fd459e04e5d57e168901a230d60ef6a7e8e..e4d1c569315e30aaf26e30333a105501c5373267 100644 (file)
@@ -135,14 +135,15 @@ int hb_confirm_gpu_type()
             {\r
                 char dbuff[100];\r
                 status = clGetDeviceInfo(devices[j], CL_DEVICE_VENDOR, sizeof(dbuff), dbuff, NULL); \r
-                if(!strcmp(dbuff, "Advanced Micro Devices, Inc.") ||\r
+                if (!strcmp(dbuff, "Advanced Micro Devices, Inc.") ||\r
+                    !strcmp(dbuff, "Intel(R) Corporation")         ||\r
 #ifdef __APPLE__\r
-                   !strcmp(dbuff, "AMD")                          ||\r
-                   /* MacBook Pro, AMD ATI Radeon HD 6750M, OS X 10.8.3 */\r
-                   !strcmp(dbuff, "NVIDIA")                       ||\r
-                   /* MacBook Pro, NVIDIA GeForce GT 330M,  OS X 10.7.4 */\r
+                    !strcmp(dbuff, "AMD")                          ||\r
+                    /* MacBook Pro, AMD ATI Radeon HD 6750M, OS X 10.8.3 */\r
+                    !strcmp(dbuff, "NVIDIA")                       ||\r
+                    /* MacBook Pro, NVIDIA GeForce GT 330M,  OS X 10.7.4 */\r
 #endif\r
-                   !strcmp(dbuff, "NVIDIA Corporation"))\r
+                    !strcmp(dbuff, "NVIDIA Corporation"))\r
                 {\r
                     return 0;\r
                 }\r