summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nouveau
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2016-06-07 12:49:37 -0400
committerRob Clark <[email protected]>2016-06-20 12:36:20 -0400
commite1c1c40cbcf3eec91bef8b38df8057eac52ce1ab (patch)
tree6e962d01af8a71740f59bf12a11c71e710beb9d1 /src/gallium/drivers/nouveau
parent1167905c41d4594153d6649c0cade96a83831cbd (diff)
gallium: make shader_buffers const
Be consistent with the rest of the "set_xyz" state interfaces. Signed-off-by: Rob Clark <[email protected]> Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau')
-rw-r--r--src/gallium/drivers/nouveau/nvc0/nvc0_state.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_state.c b/src/gallium/drivers/nouveau/nvc0/nvc0_state.c
index 7e42be76bf1..2fbe8172bc1 100644
--- a/src/gallium/drivers/nouveau/nvc0/nvc0_state.c
+++ b/src/gallium/drivers/nouveau/nvc0/nvc0_state.c
@@ -1332,8 +1332,8 @@ nvc0_set_shader_images(struct pipe_context *pipe, unsigned shader,
static bool
nvc0_bind_buffers_range(struct nvc0_context *nvc0, const unsigned t,
- unsigned start, unsigned nr,
- struct pipe_shader_buffer *pbuffers)
+ unsigned start, unsigned nr,
+ const struct pipe_shader_buffer *pbuffers)
{
const unsigned end = start + nr;
unsigned mask = 0;
@@ -1383,7 +1383,7 @@ static void
nvc0_set_shader_buffers(struct pipe_context *pipe,
unsigned shader,
unsigned start, unsigned nr,
- struct pipe_shader_buffer *buffers)
+ const struct pipe_shader_buffer *buffers)
{
const unsigned s = nvc0_shader_stage(shader);
if (!nvc0_bind_buffers_range(nvc0_context(pipe), s, start, nr, buffers))