gallium: adapt drivers to pipe_constant_buffer removal
[mesa.git] / src / gallium / drivers / nv30 / nv30_state.c
index e6321b480f6f55cc96d3082da5d40493404cf3a3..dfac46e23fbfb28dfce27ad1fd92c21fc91ba194 100644 (file)
@@ -590,12 +590,12 @@ nv30_set_clip_state(struct pipe_context *pipe,
 
 static void
 nv30_set_constant_buffer(struct pipe_context *pipe, uint shader, uint index,
-                        const struct pipe_constant_buffer *buf )
+                        const struct pipe_buffer *buf )
 {
        struct nv30_context *nv30 = nv30_context(pipe);
 
-       nv30->constbuf[shader] = buf->buffer;
-       nv30->constbuf_nr[shader] = buf->buffer->size / (4 * sizeof(float));
+       nv30->constbuf[shader] = buf;
+       nv30->constbuf_nr[shader] = buf->size / (4 * sizeof(float));
 
        if (shader == PIPE_SHADER_VERTEX) {
                nv30->dirty |= NV30_NEW_VERTPROG;