]> git.sesse.net Git - ffmpeg/commitdiff
lavu/opencl: replace va_ext.h with standard name
authorRuiling Song <ruiling.song@intel.com>
Fri, 23 Nov 2018 05:39:12 +0000 (13:39 +0800)
committerRuiling Song <ruiling.song@intel.com>
Fri, 22 Mar 2019 01:33:28 +0000 (09:33 +0800)
Khronos OpenCL header (https://github.com/KhronosGroup/OpenCL-Headers)
uses cl_va_api_media_sharing_intel.h. And Intel's official OpenCL driver
for Intel GPU (https://github.com/intel/compute-runtime) was compiled
against Khronos OpenCL header. So it's better to align with Khronos.

Signed-off-by: Ruiling Song <ruiling.song@intel.com>
configure
libavutil/hwcontext_opencl.c

index a8174795595fcc3bd6c9816e71c5fbc1533d0857..331393f8d56707d8538751ba0d05eb316765405a 100755 (executable)
--- a/configure
+++ b/configure
@@ -6472,7 +6472,7 @@ fi
 
 if enabled_all opencl vaapi ; then
     enabled opencl_drm_beignet && enable opencl_vaapi_beignet
-    check_type "CL/cl.h CL/va_ext.h" "clCreateFromVA_APIMediaSurfaceINTEL_fn" &&
+    check_type "CL/cl.h CL/cl_va_api_media_sharing_intel.h" "clCreateFromVA_APIMediaSurfaceINTEL_fn" &&
         enable opencl_vaapi_intel_media
 fi
 
index d3df6221c4976c8ca7938c6c1c66f82620ccd072..b116c5b7084e6e8e02287bab0f2fb4481b091593 100644 (file)
@@ -50,7 +50,7 @@
 #include <mfx/mfxstructures.h>
 #endif
 #include <va/va.h>
-#include <CL/va_ext.h>
+#include <CL/cl_va_api_media_sharing_intel.h>
 #include "hwcontext_vaapi.h"
 #endif