gallium: adapt drivers to pipe_constant_buffer removal
[mesa.git] / src / gallium / drivers / i965 / brw_pipe_shader.c
index 20f20571f653b39a036e1a586791f9afe05fac8b..ede6b347a50e472610f82e415c44f44f8d1ae89a 100644 (file)
@@ -255,7 +255,7 @@ static void brw_delete_vs_state( struct pipe_context *pipe, void *prog )
 
 static void brw_set_constant_buffer(struct pipe_context *pipe,
                                      uint shader, uint index,
-                                     const struct pipe_constant_buffer *buf)
+                                     const struct pipe_buffer *buf)
 {
    struct brw_context *brw = brw_context(pipe);
 
@@ -263,13 +263,13 @@ static void brw_set_constant_buffer(struct pipe_context *pipe,
 
    if (shader == PIPE_SHADER_FRAGMENT) {
       pipe_buffer_reference( &brw->curr.fragment_constants,
-                             buf->buffer );
+                             buf );
 
       brw->state.dirty.mesa |= PIPE_NEW_FRAGMENT_CONSTANTS;
    }
    else {
       pipe_buffer_reference( &brw->curr.vertex_constants,
-                             buf->buffer );
+                             buf );
 
       brw->state.dirty.mesa |= PIPE_NEW_VERTEX_CONSTANTS;
    }