freedreno: hold batch references when flushing
authorRob Clark <robdclark@gmail.com>
Tue, 17 Jul 2018 13:40:23 +0000 (09:40 -0400)
committerRob Clark <robdclark@gmail.com>
Tue, 17 Jul 2018 15:00:00 +0000 (11:00 -0400)
commitf2570409f90e18c290beb7375107aa4862bd1019
tree28f263fdc224f02a4f59aa1496478988f5065c86
parent71add09e79bf11b337b56e6ef68e6ad29d165a0d
freedreno: hold batch references when flushing

It is possible for a batch to be freed under our feet when flushing, so
it is best to hold a reference to all of them up-front.

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