diff options
author | Marek Olšák <[email protected]> | 2018-04-01 15:16:26 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2018-04-05 15:34:58 -0400 |
commit | 3de323f9bbc06442c68b711db36ece233398eb0b (patch) | |
tree | 3407829d8b1d0d8f03c1c0ffd046b1e851c81531 /src/gallium/drivers/radeonsi/si_state_streamout.c | |
parent | 2b70dd8c8aad471c7a9ad06ddfe62ab765f7c650 (diff) |
radeonsi: switch r600_atom::emit parameter to si_context
Acked-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_state_streamout.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state_streamout.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state_streamout.c b/src/gallium/drivers/radeonsi/si_state_streamout.c index af11a499f5a..2b5b6ec588a 100644 --- a/src/gallium/drivers/radeonsi/si_state_streamout.c +++ b/src/gallium/drivers/radeonsi/si_state_streamout.c @@ -255,9 +255,8 @@ static void si_flush_vgt_streamout(struct si_context *sctx) radeon_emit(cs, 4); /* poll interval */ } -static void si_emit_streamout_begin(struct r600_common_context *rctx, struct r600_atom *atom) +static void si_emit_streamout_begin(struct si_context *sctx, struct r600_atom *atom) { - struct si_context *sctx = (struct si_context*)rctx; struct radeon_winsys_cs *cs = sctx->b.gfx_cs; struct si_streamout_target **t = sctx->streamout.targets; uint16_t *stride_in_dw = sctx->streamout.stride_in_dw; @@ -358,11 +357,9 @@ void si_emit_streamout_end(struct si_context *sctx) * are no buffers bound. */ -static void si_emit_streamout_enable(struct r600_common_context *rctx, +static void si_emit_streamout_enable(struct si_context *sctx, struct r600_atom *atom) { - struct si_context *sctx = (struct si_context*)rctx; - radeon_set_context_reg_seq(sctx->b.gfx_cs, R_028B94_VGT_STRMOUT_CONFIG, 2); radeon_emit(sctx->b.gfx_cs, S_028B94_STREAMOUT_0_EN(si_get_strmout_en(sctx)) | |