gallium: make constant_buffer const
[mesa.git] / src / gallium / drivers / i915 / i915_state.c
index 8fa2f42e7c69661c6ad54c305d7a56660fbba923..2efa14e3f1b40255ad5917e2578ef4231482ee60 100644 (file)
@@ -675,7 +675,7 @@ static void i915_delete_vs_state(struct pipe_context *pipe, void *shader)
 
 static void i915_set_constant_buffer(struct pipe_context *pipe,
                                      uint shader, uint index,
-                                     struct pipe_constant_buffer *cb)
+                                     const struct pipe_constant_buffer *cb)
 {
    struct i915_context *i915 = i915_context(pipe);
    struct pipe_resource *buf = cb ? cb->buffer : NULL;