iris: Fix lock/unlock mismatch for non-LLC coherent BO allocation.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 26 May 2019 19:58:42 +0000 (12:58 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 30 May 2019 02:40:15 +0000 (19:40 -0700)
commit5fc11fd98853282b68e5f0a7bce23deb5a3d6beb
tree613c4945d4597f369ab5f5a199aa24ec7ebfbf58
parent2285b9303282c31a3e599e80acda4b589b4a7966
iris: Fix lock/unlock mismatch for non-LLC coherent BO allocation.

The goto jumped over the mtx_lock, but proceeded to hit the mtx_unlock.
We can simply set the bucket to NULL and it will skip the cache without
goto, and without messing up locking.

Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
src/gallium/drivers/iris/iris_bufmgr.c