gallium: add usage parameter to pipe_buffer_create
[mesa.git] / src / gallium / tests / trivial / quad-tex.c
index 92c5b4dbb183f3ac5111ae6b9551d98a1d8b7511..af93e09d8d4ecd8a45b0130de3e3ecec6f821db5 100644 (file)
@@ -129,7 +129,8 @@ static void init_prog(struct program *p)
                        }
                };
 
-               p->vbuf = pipe_buffer_create(p->screen, PIPE_BIND_VERTEX_BUFFER, sizeof(vertices));
+               p->vbuf = pipe_buffer_create(p->screen, PIPE_BIND_VERTEX_BUFFER,
+                                            PIPE_USAGE_STATIC, sizeof(vertices));
                pipe_buffer_write(p->pipe, p->vbuf, 0, sizeof(vertices), vertices);
        }