diff options
author | Sylvain Munaut <tnt@246tNt.com> | 2019-12-02 20:11:05 +0100 |
---|---|---|
committer | Sylvain Munaut <tnt@246tNt.com> | 2019-12-08 15:22:38 +0100 |
commit | 0c658dd3dda722de969fef772fb8f48cfd9190a2 (patch) | |
tree | bdde0d14545ed1d6bdac22da34bda11c58570fe9 /lib | |
parent | 51af8dd083cb06750326122a79360aa9ba30d94d (diff) |
fosphor/cl: Make sure to unlocking the GL objects during CL release
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/fosphor/cl.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/fosphor/cl.c b/lib/fosphor/cl.c index 270f36d..da6f279 100644 --- a/lib/fosphor/cl.c +++ b/lib/fosphor/cl.c @@ -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); |