summaryrefslogtreecommitdiffstats
path: root/src/gallium/tests/graw/tri.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/tests/graw/tri.c')
-rw-r--r--src/gallium/tests/graw/tri.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gallium/tests/graw/tri.c b/src/gallium/tests/graw/tri.c
index 75fa88cae9e..f6b2aa96c9d 100644
--- a/src/gallium/tests/graw/tri.c
+++ b/src/gallium/tests/graw/tri.c
@@ -55,10 +55,11 @@ static void set_vertices( void )
vbuf.stride = sizeof( struct vertex );
vbuf.buffer_offset = 0;
- vbuf.buffer = info.screen->user_buffer_create(info.screen,
- vertices,
- sizeof(vertices),
- PIPE_BIND_VERTEX_BUFFER);
+ vbuf.buffer = pipe_buffer_create_with_data(info.ctx,
+ PIPE_BIND_VERTEX_BUFFER,
+ PIPE_USAGE_STATIC,
+ sizeof(vertices),
+ vertices);
info.ctx->set_vertex_buffers(info.ctx, 1, &vbuf);
}