clover: clarify and fix the EGL interop error case
authorMarek Olšák <marek.olsak@amd.com>
Tue, 12 May 2015 20:53:00 +0000 (22:53 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 5 Jun 2015 17:44:33 +0000 (19:44 +0200)
Cc: 10.6 <mesa-stable@lists.freedesktop.org>
src/gallium/state_trackers/clover/api/interop.cpp

index ea0c7c73c30ea704659784edf07ded5891556a36..b96069f5167f0125c776d5d451f58cda87c94612 100644 (file)
@@ -31,7 +31,12 @@ extern "C" {
 PUBLIC bool
 opencl_dri_event_add_ref(cl_event event)
 {
-   return clRetainEvent(event) == CL_SUCCESS;
+   /* This should fail if the event hasn't been created by
+    * clEnqueueReleaseGLObjects or clEnqueueReleaseEGLObjects.
+    *
+    * TODO: implement the CL functions
+    */
+   return false; /*return clRetainEvent(event) == CL_SUCCESS;*/
 }
 
 PUBLIC bool