I use APP SDK with OpenCL running on CPU and r600 driver on GPU (AMD Mobility 3650) to compute image. If I use OpenCL image, I get correct result, however if I want to display image using OpenGL (interop), it is corrupted. I create renderbuffer object, than link it with OpenCL (clCreateFromGLRenderbuffer) and then after image was computed I blit it to back buffer. I tested it in lab on nVidia proprietary driver and it works well, I suspect the problem is in renderbuffer sharing. OpenCL is 1.2, OpenGL 3.3.
If I use LIBGL_ALWAYS_SOFTWARE=1 I get uncorrupted image, but it is all black.
Hi, I have tried looking information for your card regarding OpenCL and I haven't been able to found anything. Are you sure that it supports it? Besides, I think that clover doesn't support your card, so even if it does support OpenCL I think that it wouldn't work. And, I'm afraid that clover doesn't implement yet clCreateFromGLRenderbuffer.
As I mentioned, I use CPU as OpenCL device using APP SDK. I have a problem with OpenGL OpenCL interop. OpenCL from AMD APP SDK works fine, the problem is when I use Gallium driver for OpenGL, I get corrupted image.
r600 does support OpenCL, but only on EG/NI (Radeon HD 5000/6000).
(In reply to Vedran Miletić from comment #4) > r600 does support OpenCL, but only on EG/NI (Radeon HD 5000/6000). my understanding is that this bug is not about clover, but getting r600g GL work with third party CL. afaik Marek was looking into that, but that might have been just for GCN+. (the conclusion might still be that it's unsupported)
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/514.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.