[Freedreno] [PATCH 05/12] freedreno: push resource tracking down into batch

2016-07-02 Thread Rob Clark
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

[Freedreno] [PATCH 07/12] freedreno: move more batch related tracking to fd_batch

2016-07-02 Thread Rob Clark
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).