diff --git a/README.md b/README.md index 7121b5e93..fe3bd7e8b 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@ The author of the example video (which is also used for the demos videos in this # Hardware requirements * Support for cl_khr_gl_sharing and cl_intel_va_api_media_sharing OpenCL extensions. +* Support for OpenCL 2.0 * If you are on a recent Intel Platform (Gen8 - Gen12) you probably need to install an alternative [compute-runtime](https://github.com/kallaballa/compute-runtime) There are currently three demos (**the preview videos are scaled down and highly compressed**): diff --git a/src/nanovg/nanovg-demo.cpp b/src/nanovg/nanovg-demo.cpp index b7db794b2..b3157a050 100644 --- a/src/nanovg/nanovg-demo.cpp +++ b/src/nanovg/nanovg-demo.cpp @@ -1,5 +1,4 @@ -#define HAVE_OPENCL 1 -#define CL_TARGET_OPENCL_VERSION 300 +#define CL_TARGET_OPENCL_VERSION 200 constexpr unsigned long WIDTH = 1920; constexpr unsigned long HEIGHT = 1080; diff --git a/src/tetra/tetra-demo.cpp b/src/tetra/tetra-demo.cpp index 3e36bc6d1..762275c67 100644 --- a/src/tetra/tetra-demo.cpp +++ b/src/tetra/tetra-demo.cpp @@ -1,4 +1,4 @@ -#define CL_TARGET_OPENCL_VERSION 300 +#define CL_TARGET_OPENCL_VERSION 200 constexpr long unsigned int WIDTH = 1920; constexpr long unsigned int HEIGHT = 1080; diff --git a/src/video/video-demo.cpp b/src/video/video-demo.cpp index ce26a9d9b..9dc98eb02 100644 --- a/src/video/video-demo.cpp +++ b/src/video/video-demo.cpp @@ -1,4 +1,4 @@ -#define CL_TARGET_OPENCL_VERSION 300 +#define CL_TARGET_OPENCL_VERSION 200 //WIDTH and HEIGHT have to be specified before including subsystems.hpp constexpr long unsigned int WIDTH = 1920;