summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2017-09-10 13:37:20 +0100
committerMark Thompson <sw@jkqxz.net>2017-11-22 23:02:33 +0000
commit7faae6e745a3b22f81d522ea19164d3b2b3aa2cc (patch)
tree226e7bc0c11464da512fb7fbbb5c2248221656a8 /configure
parentf06754e4f3c26ee8f2ff1df219ae3f5dfa99c580 (diff)
hwcontext_opencl: DRM to OpenCL mapping for ARM
Using cl_arm_import_memory. Unfortunately, despite this not being a standard extension, the function clImportMemoryARM() is not accessible via clGetExtensionFunctionAddressForPlatform(). This means that it has to be linked directly to the ARM OpenCL binary, so making a portable binary is not possible as it is with all other mapping extensions.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure b/configure
index c4d6ad9d9d..e03d68aa92 100755
--- a/configure
+++ b/configure
@@ -2121,6 +2121,7 @@ HAVE_LIST="
makeinfo
makeinfo_html
opencl_d3d11
+ opencl_drm_arm
opencl_dxva2
opencl_vaapi_beignet
opencl_vaapi_intel_media
@@ -6178,6 +6179,11 @@ if enabled_all opencl d3d11va ; then
enable opencl_d3d11
fi
+if enabled_all opencl libdrm ; then
+ check_func_headers "CL/cl_ext.h" clImportMemoryARM &&
+ enable opencl_drm_arm
+fi
+
enabled vdpau &&
check_cpp_condition vdpau/vdpau.h "defined VDP_DECODER_PROFILE_MPEG4_PART2_ASP" ||
disable vdpau