Lines Matching defs:sctx
119 void si_pm4_free_state(struct si_context *sctx, struct si_pm4_state *state, unsigned idx)
125 if (sctx->emitted.array[idx] == state)
126 sctx->emitted.array[idx] = NULL;
128 if (sctx->queued.array[idx] == state) {
129 sctx->queued.array[idx] = NULL;
130 sctx->dirty_states &= ~BITFIELD_BIT(idx);
137 void si_pm4_emit(struct si_context *sctx, struct si_pm4_state *state)
139 struct radeon_cmdbuf *cs = &sctx->gfx_cs;
142 radeon_add_to_buffer_list(sctx, &sctx->gfx_cs, ((struct si_shader*)state)->bo,
151 state->atom.emit(sctx);
154 void si_pm4_reset_emitted(struct si_context *sctx, bool first_cs)
156 if (!first_cs && sctx->shadowed_regs) {
161 struct si_pm4_state *state = sctx->queued.array[i];
164 sctx->emitted.array[i] = NULL;
165 sctx->dirty_states |= 1 << i;
171 memset(&sctx->emitted, 0, sizeof(sctx->emitted));
174 if (sctx->queued.array[i])
175 sctx->dirty_states |= BITFIELD_BIT(i);