diff options
author | Marek Olšák <[email protected]> | 2016-04-19 01:48:39 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2016-04-22 01:14:13 +0200 |
commit | 860b658b97f859ee7d0dd076a8ac0332601ffa65 (patch) | |
tree | 6598b102fa6a4bfd50d2d7110b5a79bb085b9887 /src/gallium/drivers/radeonsi/si_state.c | |
parent | 698821bda32eb9958e105c38087b49b6f307128d (diff) |
radeonsi: move clip plane constant buffer to RW buffers
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_state.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c index e726196d07a..74af14c217b 100644 --- a/src/gallium/drivers/radeonsi/si_state.c +++ b/src/gallium/drivers/radeonsi/si_state.c @@ -771,7 +771,8 @@ static void si_set_clip_state(struct pipe_context *ctx, cb.user_buffer = state->ucp; cb.buffer_offset = 0; cb.buffer_size = 4*4*8; - ctx->set_constant_buffer(ctx, PIPE_SHADER_VERTEX, SI_DRIVER_STATE_CONST_BUF, &cb); + si_set_constant_buffer(sctx, &sctx->rw_buffers, + SI_VS_CONST_CLIP_PLANES, &cb); pipe_resource_reference(&cb.buffer, NULL); } |