freedreno: flush immediately when reading a pending batch
authorRob Clark <robdclark@gmail.com>
Tue, 17 Jul 2018 14:02:51 +0000 (10:02 -0400)
committerRob Clark <robdclark@gmail.com>
Tue, 17 Jul 2018 15:00:00 +0000 (11:00 -0400)
commitf129971e71ccc8c711ccfc01d5adad7e30687549
treed3a11d22daceb339db4e921480ef18a5892832e2
parent20f677f6bccdabafbffd0d8e948514dda0acb3f4
freedreno: flush immediately when reading a pending batch

Instead of the reading batch setting a dependency on the writing batch,
simply flush the writing batch immediately.  This avoids situations
where we have to flush the context's current batch later.

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