summaryrefslogtreecommitdiff
path: root/src/gallium/tests/graw/gs-test.c
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2011-01-10 05:41:47 +0100
committerMarek Olšák <maraeo@gmail.com>2011-02-14 21:50:08 +0100
commitcdca3c58aa2d9549f5188910e2a77b438516714f (patch)
tree1dac8ede7977948ab814a6bff2077d50a36c7667 /src/gallium/tests/graw/gs-test.c
parentd5062fb3a315c46d77d5c954a3e3c14be1907d33 (diff)
gallium: remove pipe_vertex_buffer::max_index
This is redundant to pipe_draw_info::max_index and doesn't really fit in the optimizations I plan.
Diffstat (limited to 'src/gallium/tests/graw/gs-test.c')
-rw-r--r--src/gallium/tests/graw/gs-test.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/gallium/tests/graw/gs-test.c b/src/gallium/tests/graw/gs-test.c
index 0c65390e10..cc05889dd0 100644
--- a/src/gallium/tests/graw/gs-test.c
+++ b/src/gallium/tests/graw/gs-test.c
@@ -251,13 +251,11 @@ static void set_vertices( void )
vbuf.stride = sizeof( struct vertex );
vbuf.buffer_offset = 0;
if (draw_strip) {
- vbuf.max_index = sizeof(vertices_strip) / vbuf.stride;
vbuf.buffer = screen->user_buffer_create(screen,
vertices_strip,
sizeof(vertices_strip),
PIPE_BIND_VERTEX_BUFFER);
} else {
- vbuf.max_index = sizeof(vertices) / vbuf.stride;
vbuf.buffer = screen->user_buffer_create(screen,
vertices,
sizeof(vertices),