aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/tests/graw/tex-srgb.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/tests/graw/tex-srgb.c')
-rw-r--r--src/gallium/tests/graw/tex-srgb.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gallium/tests/graw/tex-srgb.c b/src/gallium/tests/graw/tex-srgb.c
index 8eaf0bd1ec7..ea07b8d692d 100644
--- a/src/gallium/tests/graw/tex-srgb.c
+++ b/src/gallium/tests/graw/tex-srgb.c
@@ -72,10 +72,11 @@ set_vertices(struct vertex *verts, unsigned num_verts)
vbuf.stride = sizeof(struct vertex);
vbuf.buffer_offset = 0;
- vbuf.buffer = info.screen->user_buffer_create(info.screen,
- verts,
- num_verts *sizeof(struct vertex),
- PIPE_BIND_VERTEX_BUFFER);
+ vbuf.buffer = pipe_buffer_create_with_data(info.ctx,
+ PIPE_BIND_VERTEX_BUFFER,
+ PIPE_USAGE_STATIC,
+ num_verts * sizeof(struct vertex),
+ verts);
info.ctx->set_vertex_buffers(info.ctx, 1, &vbuf);
}