fosphor/cl: Make sure to unlocking the GL objects during CL release

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
This commit is contained in:
Sylvain Munaut 2019-12-02 20:11:05 +01:00
parent 51af8dd083
commit 0c658dd3dd
1 changed files with 6 additions and 0 deletions

View File

@ -864,6 +864,12 @@ fosphor_cl_release(struct fosphor *self)
if (!cl)
return;
/* Release the GL objects */
if ((cl->state == CL_PENDING) && (self->flags & FLG_FOSPHOR_USE_CLGL_SHARING))
{
cl_lock_unlock(cl, 0, NULL);
}
/* Release all allocated OpenCL resources */
cl_do_release(cl);