diff options
author | Kai Wasserbäch <[email protected]> | 2016-08-27 04:08:00 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2016-08-29 09:07:33 -0600 |
commit | 15fe288deae0373f566f8f723c915d8c8f89ffa6 (patch) | |
tree | 065ac8f9e2594ad648b31b538c34d324e696f303 /src/gallium/drivers/radeonsi | |
parent | 532db3b7881f3dfcd299320cbf44443d06b88373 (diff) |
gallium: Use enum pipe_shader_type in set_shader_buffers()
Signed-off-by: Kai Wasserbäch <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_descriptors.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gallium/drivers/radeonsi/si_descriptors.c b/src/gallium/drivers/radeonsi/si_descriptors.c index 573c8a85817..dfd0607891d 100644 --- a/src/gallium/drivers/radeonsi/si_descriptors.c +++ b/src/gallium/drivers/radeonsi/si_descriptors.c @@ -1060,19 +1060,21 @@ static void si_pipe_set_constant_buffer(struct pipe_context *ctx, /* SHADER BUFFERS */ static unsigned -si_shader_buffer_descriptors_idx(unsigned shader) +si_shader_buffer_descriptors_idx(enum pipe_shader_type shader) { return SI_DESCS_FIRST_SHADER + shader * SI_NUM_SHADER_DESCS + SI_SHADER_DESCS_SHADER_BUFFERS; } static struct si_descriptors * -si_shader_buffer_descriptors(struct si_context *sctx, unsigned shader) +si_shader_buffer_descriptors(struct si_context *sctx, + enum pipe_shader_type shader) { return &sctx->descriptors[si_shader_buffer_descriptors_idx(shader)]; } -static void si_set_shader_buffers(struct pipe_context *ctx, unsigned shader, +static void si_set_shader_buffers(struct pipe_context *ctx, + enum pipe_shader_type shader, unsigned start_slot, unsigned count, const struct pipe_shader_buffer *sbuffers) { |