From 330d0607ed60fd3edca192e54b4246310f06652f Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Sun, 2 Apr 2017 16:24:39 +0200 Subject: gallium: remove pipe_index_buffer and set_index_buffer pipe_draw_info::indexed is replaced with index_size. index_size == 0 means non-indexed. Instead of pipe_index_buffer::offset, pipe_draw_info::start is used. For indexed indirect draws, pipe_draw_info::start is added to the indirect start. This is the only case when "start" affects indirect draws. pipe_draw_info::index is a union. Use either index::resource or index::user depending on the value of pipe_draw_info::has_user_indices. v2: fixes for nine, svga --- src/gallium/drivers/svga/svga_pipe_vertex.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/gallium/drivers/svga/svga_pipe_vertex.c') diff --git a/src/gallium/drivers/svga/svga_pipe_vertex.c b/src/gallium/drivers/svga/svga_pipe_vertex.c index 5243ae613ee..9f67608d528 100644 --- a/src/gallium/drivers/svga/svga_pipe_vertex.c +++ b/src/gallium/drivers/svga/svga_pipe_vertex.c @@ -54,15 +54,6 @@ static void svga_set_vertex_buffers(struct pipe_context *pipe, } -static void svga_set_index_buffer(struct pipe_context *pipe, - const struct pipe_index_buffer *ib) -{ - struct svga_context *svga = svga_context(pipe); - - util_set_index_buffer(&svga->curr.ib, ib); -} - - /** * Does the given vertex attrib format need range adjustment in the VS? * Range adjustment scales and biases values from [0,1] to [-1,1]. @@ -340,7 +331,6 @@ void svga_cleanup_vertex_state( struct svga_context *svga ) void svga_init_vertex_functions( struct svga_context *svga ) { svga->pipe.set_vertex_buffers = svga_set_vertex_buffers; - svga->pipe.set_index_buffer = svga_set_index_buffer; svga->pipe.create_vertex_elements_state = svga_create_vertex_elements_state; svga->pipe.bind_vertex_elements_state = svga_bind_vertex_elements_state; svga->pipe.delete_vertex_elements_state = svga_delete_vertex_elements_state; -- cgit v1.2.3