freedreno/batch: replace lrz_clear with prologue
[mesa.git] / src / gallium / drivers / freedreno / freedreno_batch.h
index b7b970359a357d13040c199e2b1584042f1f3832..1e33654b04db9875d7f0184966d320c7d16280d7 100644 (file)
@@ -190,11 +190,12 @@ struct fd_batch {
        /** tiling/gmem (IB0) cmdstream: */
        struct fd_ringbuffer *gmem;
 
-       /** epilogue cmdstream: */
+       /** preemble cmdstream (executed once before first tile): */
+       struct fd_ringbuffer *prologue;
+
+       /** epilogue cmdstream (executed after each tile): */
        struct fd_ringbuffer *epilogue;
 
-       // TODO maybe more generically split out clear and clear_binning rings?
-       struct fd_ringbuffer *lrz_clear;
        struct fd_ringbuffer *tile_setup;
        struct fd_ringbuffer *tile_fini;
 
@@ -345,6 +346,7 @@ fd_event_write(struct fd_batch *batch, struct fd_ringbuffer *ring,
        fd_reset_wfi(batch);
 }
 
+/* Get per-tile epilogue */
 static inline struct fd_ringbuffer *
 fd_batch_get_epilogue(struct fd_batch *batch)
 {
@@ -354,5 +356,6 @@ fd_batch_get_epilogue(struct fd_batch *batch)
        return batch->epilogue;
 }
 
+struct fd_ringbuffer * fd_batch_get_prologue(struct fd_batch *batch);
 
 #endif /* FREEDRENO_BATCH_H_ */