radeonsi: add IB2 indirect buffer support for pm4 states
[mesa.git] / src / gallium / drivers / radeonsi / si_pm4.h
index efa20628aabf1dd698d5b391b60e2fb775ebd1ad..5282d00fe467c5d60756f45d49a1a996cc9a7678 100644 (file)
@@ -39,6 +39,9 @@ enum chip_class;
 
 struct si_pm4_state
 {
+       /* optional indirect buffer */
+       struct r600_resource    *indirect_buffer;
+
        /* PKT3_SET_*_REG handling */
        unsigned        last_opcode;
        unsigned        last_reg;
@@ -66,6 +69,8 @@ void si_pm4_add_bo(struct si_pm4_state *state,
                   struct r600_resource *bo,
                   enum radeon_bo_usage usage,
                   enum radeon_bo_priority priority);
+void si_pm4_upload_indirect_buffer(struct si_context *sctx,
+                                  struct si_pm4_state *state);
 
 void si_pm4_free_state_simple(struct si_pm4_state *state);
 void si_pm4_free_state(struct si_context *sctx,