gallium: make constant_buffer const
[mesa.git] / src / gallium / drivers / softpipe / sp_state_shader.c
index 38673d85cdf9edd1e0275139bc135633faf0400e..a7456628d80ae2575863ee5907b85efab7bb8d57 100644 (file)
@@ -338,7 +338,7 @@ softpipe_delete_gs_state(struct pipe_context *pipe, void *gs)
 static void
 softpipe_set_constant_buffer(struct pipe_context *pipe,
                              uint shader, uint index,
-                             struct pipe_constant_buffer *cb)
+                             const struct pipe_constant_buffer *cb)
 {
    struct softpipe_context *softpipe = softpipe_context(pipe);
    struct pipe_resource *constants = cb ? cb->buffer : NULL;