https://bugs.freedesktop.org/show_bug.cgi?id=79431
Priority: medium Bug ID: 79431 Assignee: dri-devel@lists.freedesktop.org Summary: OpenGL OpenCL interop results in corrupted renderbuffer object image Severity: normal Classification: Unclassified OS: All Reporter: pavol@klacansky.com Hardware: Other Status: NEW Version: git Component: Drivers/Gallium/r600 Product: Mesa
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.
https://bugs.freedesktop.org/show_bug.cgi?id=79431
pavol@klacansky.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |pavol@klacansky.com
--- Comment #1 from pavol@klacansky.com --- If I use LIBGL_ALWAYS_SOFTWARE=1 I get uncorrupted image, but it is all black.
https://bugs.freedesktop.org/show_bug.cgi?id=79431
--- Comment #2 from Bruno Jiménez brunojimen@gmail.com --- 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.
https://bugs.freedesktop.org/show_bug.cgi?id=79431
--- Comment #3 from pavol@klacansky.com --- 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.
https://bugs.freedesktop.org/show_bug.cgi?id=79431
Vedran Miletić vedran@miletic.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |NOTABUG Blocks| |99553 Status|NEW |RESOLVED
--- Comment #4 from Vedran Miletić vedran@miletic.net --- r600 does support OpenCL, but only on EG/NI (Radeon HD 5000/6000).
Referenced Bugs:
https://bugs.freedesktop.org/show_bug.cgi?id=99553 [Bug 99553] Tracker bug for runnning OpenCL applications on Clover
https://bugs.freedesktop.org/show_bug.cgi?id=79431
Jan Vesely jan.vesely@rutgers.edu changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|NOTABUG |--- Status|RESOLVED |REOPENED Blocks|99553 |
--- Comment #5 from Jan Vesely jan.vesely@rutgers.edu --- (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)
Referenced Bugs:
https://bugs.freedesktop.org/show_bug.cgi?id=99553 [Bug 99553] Tracker bug for runnning OpenCL applications on Clover
https://bugs.freedesktop.org/show_bug.cgi?id=79431
GitLab Migration User gitlab-migration@fdo.invalid changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution|--- |MOVED
--- Comment #6 from GitLab Migration User gitlab-migration@fdo.invalid --- -- 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.
dri-devel@lists.freedesktop.org