st/python: add usage parameter to pipe_buffer_create

This is a follow-up to commit eafb7f234d.

Fixes Linux SCons build.
This commit is contained in:
Vinson Lee 2011-02-15 17:29:43 -08:00
parent 38104a767c
commit ae11707b83
2 changed files with 3 additions and 2 deletions

View file

@ -350,6 +350,7 @@ struct st_context {
vbuf = pipe_buffer_create(screen,
PIPE_BIND_VERTEX_BUFFER,
PIPE_USAGE_STATIC,
size);
if(!vbuf)
goto error1;

View file

@ -134,7 +134,7 @@ struct st_device {
}
struct pipe_resource *
buffer_create(unsigned size, unsigned bind = 0) {
return pipe_buffer_create($self->screen, bind, size);
buffer_create(unsigned size, unsigned usage, unsigned bind = 0) {
return pipe_buffer_create($self->screen, bind, usage, size);
}
};