mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-21 09:50:36 +02:00
clover: Flush the command queue in clReleaseCommandQueue()
This is required by the spec. Reviewed-by: Francisco Jerez <currojerez@riseup.net> CC: "10.2" <mesa-stable@lists.freedesktop.org>
This commit is contained in:
parent
a15088338e
commit
ed3f7eadad
1 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue