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/shader-leak.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/gallium/tests/graw/shader-leak.c') diff --git a/src/gallium/tests/graw/shader-leak.c b/src/gallium/tests/graw/shader-leak.c index 103aa6d3f3a..f24490e349f 100644 --- a/src/gallium/tests/graw/shader-leak.c +++ b/src/gallium/tests/graw/shader-leak.c @@ -11,6 +11,7 @@ #include "util/u_memory.h" /* Offset() */ #include "util/u_draw_quad.h" +#include "util/u_inlines.h" static int num_iters = 100; @@ -89,10 +90,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); } -- cgit v1.2.3