From: Rob Clark
Signed-off-by: Rob Clark
---
src/gallium/drivers/freedreno/freedreno_batch.c| 35 ++
src/gallium/drivers/freedreno/freedreno_batch.h| 7 +
src/gallium/drivers/freedreno/freedreno_context.c | 11
To flush batches out of order, the gmem code needs to not depend on
state from fd_context (since that may apply to a more recent batch).
So this all moves into batch.
The one exception is the gmem/pipe/tile state itself. But this is
only used from gmem code (and batches are flushed serially).