Lines Matching refs:sctx
109 void si_pm4_free_state(struct si_context *sctx, in si_pm4_free_state() argument
116 if (idx != ~0 && sctx->emitted.array[idx] == state) { in si_pm4_free_state()
117 sctx->emitted.array[idx] = NULL; in si_pm4_free_state()
124 void si_pm4_emit(struct si_context *sctx, struct si_pm4_state *state) in si_pm4_emit() argument
126 struct radeon_winsys_cs *cs = sctx->b.gfx.cs; in si_pm4_emit()
129 radeon_add_to_buffer_list(&sctx->b, &sctx->b.gfx, state->bo[i], in si_pm4_emit()
138 radeon_add_to_buffer_list(&sctx->b, &sctx->b.gfx, ib, in si_pm4_emit()
149 void si_pm4_reset_emitted(struct si_context *sctx) in si_pm4_reset_emitted() argument
151 memset(&sctx->emitted, 0, sizeof(sctx->emitted)); in si_pm4_reset_emitted()
152 sctx->dirty_states |= u_bit_consecutive(0, SI_NUM_STATES); in si_pm4_reset_emitted()
155 void si_pm4_upload_indirect_buffer(struct si_context *sctx, in si_pm4_upload_indirect_buffer() argument
158 struct pipe_screen *screen = sctx->b.b.screen; in si_pm4_upload_indirect_buffer()
162 if (sctx->b.chip_class < CIK) in si_pm4_upload_indirect_buffer()
178 if (sctx->screen->info.gfx_ib_pad_with_type2) { in si_pm4_upload_indirect_buffer()
186 pipe_buffer_write(&sctx->b.b, &state->indirect_buffer->b.b, in si_pm4_upload_indirect_buffer()