From 1a840cc5925f52079916feb2c456816a7a91d627 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Sat, 12 May 2012 12:56:19 +0200 Subject: gallium/graw: stop using user_buffer_create This is compile-tested. --- src/gallium/tests/graw/fs-write-z.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/gallium/tests/graw/fs-write-z.c') diff --git a/src/gallium/tests/graw/fs-write-z.c b/src/gallium/tests/graw/fs-write-z.c index 186e3ec5034..3eee2b2ab4e 100644 --- a/src/gallium/tests/graw/fs-write-z.c +++ b/src/gallium/tests/graw/fs-write-z.c @@ -93,10 +93,11 @@ 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); } -- cgit v1.2.3