OpenCL/OpenGL ES interop on Android
Hi, I'm having trouble creating an OpenCL context from an OpenGL ES context on an Odroid XU3 running Android 4.4.4. The following code works fine on other non-ARM graphics hardware, but on the Mali...
View ArticleRe: OpenCL/OpenGL ES interop on Android
Could you please double check all the properties you pass are actually valid and you actually have an active current context & display ? (Usually this error is returned when one of the three...
View ArticleRe: OpenCL/OpenGL ES interop on Android
Hi Anthony, I have checked the values for m_platform/eglGetCurrentContext()/eglGetCurrentDisplay() and they are all valid values. In addition, they are consistent with the values returned from...
View ArticleRe: OpenCL/OpenGL ES interop on Android
Hi akrolik Just to keep you updated, we have not had much time to look at this recently, hence the lack of a reply. We hope to get to this soon, however cannot give you an ETA at this time. In case...
View ArticleRe: OpenCL/OpenGL ES interop on Android
Hi Alex, I did some test on Nexus10, both clCreateContextFromType() and clCreateContext() work. Can I have more information about this: 1. How do you build your application? (Header files,...
View ArticleRe: OpenCL/OpenGL ES interop on Android
Hi Sheri, We are compiling using the ndk (r10d) The supported list of extensions is: cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics...
View ArticleRe: OpenCL/OpenGL ES interop on Android
Hi Alex, There are two situations that might cause failure CL_INVALID_GL_SHAREGROUP_REFERENCE_KHR (-1000) when creating cl context from gles context. 1. Invalid current context & display: You...
View ArticleRe: OpenCL/OpenGL ES interop on Android
Hi Sheri, We were using the order -lEGL -lGLESv2 -lOpenCL originally. Using the original order this gives the CL_INVALID_GL_SHAREGROUP_REFERENCE_KHR error, the context and display were reported by...
View ArticleRe: OpenCL/OpenGL ES interop on Android
Hi Alex, Thanks for you feedback, can I ask what is your libOpenCL.so link to, is it directly link to libGLES_mali.so? Please try only link with libGLES_mali.so without libEGL.so and libGLESv2.so....
View ArticleRe: OpenCL/OpenGL ES interop on Android
Hi Sheri, The symlinks for libOpenCL.so are: libOpenCL.so -> libOpenCL.so.1 libOpenCL.so.1 -> libOpenCL.so.1.1 libOpenCL.so.1.1 -> /vendor/lib/egl/libGLES_mali.so Without the -lEGL...
View ArticleRe: OpenCL/OpenGL ES interop on Android
Hi Alex, That's odd: all the symbols are in libGLES_mali.so so it should work. Can you try to create a symlink /system/lib/libGLES_mali.so -> /vendor/lib/egl/libGLES_mali.so And to link...
View ArticleRe: OpenCL/OpenGL ES interop on Android
Do you get the same issues if you add -lGLES_mali as your first entry? Kind Regards, Michael McGeagh
View ArticleRe: Re: OpenCL/OpenGL ES interop on Android
Hi Anthony, I have pulled libGLES_mali.so off the device, placed it in the ndk lib directory and replaced -lOpenCL -lEGL -lGLESv2 with -lGLES_mali as Michael indicated. This works! The shared context...
View ArticleRe: OpenCL/OpenGL ES interop on Android
Hi akrolik Just to keep you updated, we have not had much time to look at this recently, hence the lack of a reply. We hope to get to this soon, however cannot give you an ETA at this time. In case...
View ArticleRe: OpenCL/OpenGL ES interop on Android
Hi Alex, I did some test on Nexus10, both clCreateContextFromType() and clCreateContext() work. Can I have more information about this: 1. How do you build your application? (Header files,...
View ArticleRe: OpenCL/OpenGL ES interop on Android
Hi Sheri, We are compiling using the ndk (r10d) The supported list of extensions is: cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics...
View ArticleRe: OpenCL/OpenGL ES interop on Android
Hi Alex, There are two situations that might cause failure CL_INVALID_GL_SHAREGROUP_REFERENCE_KHR (-1000) when creating cl context from gles context. 1. Invalid current context & display: You...
View ArticleRe: OpenCL/OpenGL ES interop on Android
Hi Sheri, We were using the order -lEGL -lGLESv2 -lOpenCL originally. Using the original order this gives the CL_INVALID_GL_SHAREGROUP_REFERENCE_KHR error, the context and display were reported by...
View ArticleRe: OpenCL/OpenGL ES interop on Android
Hi Alex, Thanks for you feedback, can I ask what is your libOpenCL.so link to, is it directly link to libGLES_mali.so? Please try only link with libGLES_mali.so without libEGL.so and libGLESv2.so....
View ArticleRe: OpenCL/OpenGL ES interop on Android
Hi Sheri, The symlinks for libOpenCL.so are: libOpenCL.so -> libOpenCL.so.1 libOpenCL.so.1 -> libOpenCL.so.1.1 libOpenCL.so.1.1 -> /vendor/lib/egl/libGLES_mali.so Without the -lEGL...
View Article
More Pages to Explore .....