aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/tests/graw/tri-gs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/tests/graw/tri-gs.c')
-rw-r--r--src/gallium/tests/graw/tri-gs.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gallium/tests/graw/tri-gs.c b/src/gallium/tests/graw/tri-gs.c
index 733263133ca..7406fbc8956 100644
--- a/src/gallium/tests/graw/tri-gs.c
+++ b/src/gallium/tests/graw/tri-gs.c
@@ -11,6 +11,7 @@
#include "util/u_memory.h" /* Offset() */
#include "util/u_draw_quad.h"
+#include "util/u_inlines.h"
enum pipe_format formats[] = {
PIPE_FORMAT_R8G8B8A8_UNORM,
@@ -90,10 +91,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);
}