mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-09 23:30:13 +01: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>
(cherry picked from commit ed3f7eadad)
This commit is contained in:
parent
e8d7e3bc57
commit
42bd348d21
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