mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 17:58:26 +02:00
st/va: add missing mutex_unlock
Fixes: c59628d11b ("st/va: enable dual instances encode by sync surface")
Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Boyuan Zhang <boyuan.zhang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
This commit is contained in:
parent
e7530bfcd6
commit
cd340052ad
1 changed files with 3 additions and 1 deletions
|
|
@ -106,8 +106,10 @@ vlVaSyncSurface(VADriverContextP ctx, VASurfaceID render_target)
|
|||
pipe_mutex_lock(drv->mutex);
|
||||
surf = handle_table_get(drv->htab, render_target);
|
||||
|
||||
if (!surf || !surf->buffer)
|
||||
if (!surf || !surf->buffer) {
|
||||
pipe_mutex_unlock(drv->mutex);
|
||||
return VA_STATUS_ERROR_INVALID_SURFACE;
|
||||
}
|
||||
|
||||
context = handle_table_get(drv->htab, surf->ctx);
|
||||
if (!context) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue