From 6acb61fc9c2c5f81569d17d90a480abc48ec6055 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Tue, 12 May 2015 22:53:00 +0200 Subject: [PATCH] clover: clarify and fix the EGL interop error case Cc: 10.6 --- src/gallium/state_trackers/clover/api/interop.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- 2.30.2