gallium: add usage parameter to pipe_buffer_create
[mesa.git] / src / gallium / tests / trivial / tri.c
index 37c1573051f1da16ee2b18dc612d1539008acda9..b89cfe0d98920ef2a79d5fd19b6b5542abc7e7a2 100644 (file)
@@ -120,7 +120,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);
        }