i965,meta: Stop unlocking the texture to try and prevent deadlocks.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 19 Aug 2014 00:20:21 +0000 (17:20 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Aug 2014 00:31:19 +0000 (17:31 -0700)
commitd682ebec0bb8716dfa7747c46d5bfad732ead06c
treecf80d64d9409e85e6c3ed917731fa307e59e5e76
parent08710281884c02d2d99a5ad447affa246de126f8
i965,meta: Stop unlocking the texture to try and prevent deadlocks.

Unlocking the texture is not safe: another thread could come in and grab
it.  Now that we use a recursive mutex, this should work.  This also fixes
texture lock deadlocks in the new meta fast clear path.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
Tested-by: Chris Forbes <chrisf@ijw.co.nz>
src/mesa/drivers/common/meta.c
src/mesa/drivers/dri/i965/brw_blorp_blit.cpp