diff options
Diffstat (limited to 'src/gallium/tests/graw/occlusion-query.c')
-rw-r--r-- | src/gallium/tests/graw/occlusion-query.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gallium/tests/graw/occlusion-query.c b/src/gallium/tests/graw/occlusion-query.c index 5c4bc8cf479..cfaba34285d 100644 --- a/src/gallium/tests/graw/occlusion-query.c +++ b/src/gallium/tests/graw/occlusion-query.c @@ -94,10 +94,11 @@ set_vertices(struct vertex *vertices, unsigned bytes) vbuf.stride = sizeof(struct vertex); vbuf.buffer_offset = 0; - vbuf.buffer = info.screen->user_buffer_create(info.screen, - vertices, - bytes, - PIPE_BIND_VERTEX_BUFFER); + vbuf.buffer = pipe_buffer_create_with_data(info.ctx, + PIPE_BIND_VERTEX_BUFFER, + PIPE_USAGE_STATIC, + bytes, + vertices); info.ctx->set_vertex_buffers(info.ctx, 1, &vbuf); } |