diff options
Diffstat (limited to 'src/gallium/tests/graw/vs-test.c')
-rw-r--r-- | src/gallium/tests/graw/vs-test.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gallium/tests/graw/vs-test.c b/src/gallium/tests/graw/vs-test.c index 23b7ada98ad..ad524c46537 100644 --- a/src/gallium/tests/graw/vs-test.c +++ b/src/gallium/tests/graw/vs-test.c @@ -172,10 +172,11 @@ static void set_vertices( void ) vbuf.stride = sizeof( struct vertex ); vbuf.buffer_offset = 0; - 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); } |