From: Tom Stellard Date: Fri, 8 Aug 2014 13:32:20 +0000 (-0400) Subject: clover: Flush the command queue in clReleaseCommandQueue() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ed3f7eadad1527447df14ee0c33fdf75fcad47b1;p=mesa.git clover: Flush the command queue in clReleaseCommandQueue() This is required by the spec. Reviewed-by: Francisco Jerez CC: "10.2" --- diff --git a/src/gallium/state_trackers/clover/api/queue.cpp b/src/gallium/state_trackers/clover/api/queue.cpp index a136018fbde..06a28638002 100644 --- a/src/gallium/state_trackers/clover/api/queue.cpp +++ b/src/gallium/state_trackers/clover/api/queue.cpp @@ -58,7 +58,11 @@ clRetainCommandQueue(cl_command_queue d_q) try { CLOVER_API cl_int clReleaseCommandQueue(cl_command_queue d_q) try { - if (obj(d_q).release()) + auto &q = obj(d_q); + + q.flush(); + + if (q.release()) delete pobj(d_q); return CL_SUCCESS;