freedreno: fix potential hang when destroying batch
authorRob Clark <robdclark@gmail.com>
Tue, 11 Sep 2018 18:04:57 +0000 (14:04 -0400)
committerRob Clark <robdclark@gmail.com>
Thu, 27 Sep 2018 19:29:45 +0000 (15:29 -0400)
commit8930e836429506249074f3757185378f0776ee67
tree677f6f920eb167d3ab764a0a68db452abad71779
parentef6d15f8a86128251cb6320f7dcda0ee9e36d86a
freedreno: fix potential hang when destroying batch

batch_flush_reset_dependencies() expects to be called unlocked, and can
call fd_batch_reference() which can try to aquire the screen lock again.

Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/freedreno_batch.c