summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/clover
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2015-05-12 22:53:00 +0200
committerMarek Olšák <[email protected]>2015-06-05 19:44:33 +0200
commit6acb61fc9c2c5f81569d17d90a480abc48ec6055 (patch)
treed0dadddff37d302655feab11b63a1cd88c714435 /src/gallium/state_trackers/clover
parenta1cb407b049bb431b0f6f21e6e376d11f136af67 (diff)
clover: clarify and fix the EGL interop error case
Cc: 10.6 <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/clover')
-rw-r--r--src/gallium/state_trackers/clover/api/interop.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/clover/api/interop.cpp b/src/gallium/state_trackers/clover/api/interop.cpp
index ea0c7c73c30..b96069f5167 100644
--- a/src/gallium/state_trackers/clover/api/interop.cpp
+++ b/src/gallium/state_trackers/clover/api/interop.cpp
@@ -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