Bug 79431

Summary: OpenGL OpenCL interop results in corrupted renderbuffer object image
Product: Mesa Reporter: pavol
Component: Drivers/Gallium/r600Assignee: Default DRI bug account <dri-devel>
Status: RESOLVED MOVED QA Contact:
Severity: normal    
Priority: medium CC: brunojimen, pavol
Version: git   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description pavol 2014-05-29 23:35:00 UTC
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.
Comment 1 pavol 2014-05-30 10:04:31 UTC
If I use LIBGL_ALWAYS_SOFTWARE=1 I get uncorrupted image, but it is all black.
Comment 2 Bruno Jiménez 2014-06-05 10:26:04 UTC
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.
Comment 3 pavol 2014-06-09 19:14:20 UTC
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.
Comment 4 Vedran Miletić 2017-03-22 15:20:56 UTC
r600 does support OpenCL, but only on EG/NI (Radeon HD 5000/6000).
Comment 5 Jan Vesely 2017-03-23 20:24:39 UTC
(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)
Comment 6 GitLab Migration User 2019-09-18 19:16:27 UTC
-- 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.