mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-10 16:10:26 +01:00
anv: Add missing unlock in anv_scratch_pool_alloc
Fixes hangs seen due to the lock not being released here. Signed-off-by: Alex Smith <asmith@feralinteractive.com> Cc: mesa-stable@lists.freedesktop.org Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
e923075a82
commit
00a81e9909
1 changed files with 3 additions and 1 deletions
|
|
@ -1088,8 +1088,10 @@ anv_scratch_pool_alloc(struct anv_device *device, struct anv_scratch_pool *pool,
|
|||
pthread_mutex_lock(&device->mutex);
|
||||
|
||||
__sync_synchronize();
|
||||
if (bo->exists)
|
||||
if (bo->exists) {
|
||||
pthread_mutex_unlock(&device->mutex);
|
||||
return &bo->bo;
|
||||
}
|
||||
|
||||
const struct anv_physical_device *physical_device =
|
||||
&device->instance->physicalDevice;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue