summaryrefslogtreecommitdiffstats
path: root/src/gallium/tests/graw/gs-test.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2012-05-12 12:56:19 +0200
committerMarek Olšák <[email protected]>2012-05-12 23:13:45 +0200
commit1a840cc5925f52079916feb2c456816a7a91d627 (patch)
tree1d44a4feeddbd623ae08a93a0c94a7ec6a98981d /src/gallium/tests/graw/gs-test.c
parent685a28fd8a046e8dac02c2c26ab8b169de7a2a29 (diff)
gallium/graw: stop using user_buffer_create
This is compile-tested.
Diffstat (limited to 'src/gallium/tests/graw/gs-test.c')
-rw-r--r--src/gallium/tests/graw/gs-test.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/gallium/tests/graw/gs-test.c b/src/gallium/tests/graw/gs-test.c
index a471abd9a3d..52eb6007976 100644
--- a/src/gallium/tests/graw/gs-test.c
+++ b/src/gallium/tests/graw/gs-test.c
@@ -251,15 +251,17 @@ static void set_vertices( void )
vbuf.stride = sizeof( struct vertex );
vbuf.buffer_offset = 0;
if (draw_strip) {
- vbuf.buffer = screen->user_buffer_create(screen,
- vertices_strip,
- sizeof(vertices_strip),
- PIPE_BIND_VERTEX_BUFFER);
+ vbuf.buffer = pipe_buffer_create_with_data(ctx,
+ PIPE_BIND_VERTEX_BUFFER,
+ PIPE_USAGE_STATIC,
+ sizeof(vertices_strip),
+ vertices_strip);
} else {
- vbuf.buffer = screen->user_buffer_create(screen,
- vertices,
- sizeof(vertices),
- PIPE_BIND_VERTEX_BUFFER);
+ vbuf.buffer = pipe_buffer_create_with_data(ctx,
+ PIPE_BIND_VERTEX_BUFFER,
+ PIPE_USAGE_STATIC,
+ sizeof(vertices),
+ vertices);
}
ctx->set_vertex_buffers(ctx, 1, &vbuf);