diff options
author | Rodeo <[email protected]> | 2013-11-08 21:21:02 +0000 |
---|---|---|
committer | Rodeo <[email protected]> | 2013-11-08 21:21:02 +0000 |
commit | 43f0bc9d538c86ea75a5cd627a81452e9d76b825 (patch) | |
tree | a6bde5c2174543e4ea282ab26b6a2c76829105eb /libhb/openclwrapper.h | |
parent | d0a2953efbce340e34a971b9481024a51ae52383 (diff) |
OpenCL: use the new library loading architecture for all OpenCL code.
An OpenCL SDK is no longer needed to build OpenCL support.
Note: as a result, the --enable-opencl configure option is removed.
Also, libOpenCL is no longer needed to run the application (it is still necessary to use OpenCL features, of course).
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5886 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/openclwrapper.h')
-rw-r--r-- | libhb/openclwrapper.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/libhb/openclwrapper.h b/libhb/openclwrapper.h index c7606afc0..0ccabd564 100644 --- a/libhb/openclwrapper.h +++ b/libhb/openclwrapper.h @@ -11,10 +11,11 @@ */ -#ifndef __OPENCL_WRAPPER_H -#define __OPENCL_WRAPPER_H -#ifdef USE_OPENCL +#ifndef HB_OPENCL_WRAPPER_H +#define HB_OPENCL_WRAPPER_H + #include "common.h" +#include "extras/cl.h" //support AMD opencl #define CL_QUEUE_THREAD_HANDLE_AMD 0x403E @@ -85,5 +86,5 @@ int hb_cl_free_mapped_buffer(cl_mem mem, unsigned char *addr); int hb_use_buffers(); int hb_confirm_gpu_type(); -#endif -#endif + +#endif // HB_OPENCL_WRAPPER_H |