From 478a9bc7bb6870993e2a8df97b2dab1d4e45a723 Mon Sep 17 00:00:00 2001 From: Mathias Fröhlich Date: Sun, 25 Feb 2018 18:01:07 +0100 Subject: vbo: Remove vbo_save_vertex_list::buffer_offset. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The buffer_offset is used in aligned_vertex_buffer_offset. But now that most of these decisions are done in compile_vertex_list we can work on local variables instead of struct members in the display list code. Clean that up and remove buffer_offset. Reviewed-by: Brian Paul Signed-off-by: Mathias Fröhlich --- src/mesa/vbo/vbo_save.h | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'src/mesa/vbo/vbo_save.h') diff --git a/src/mesa/vbo/vbo_save.h b/src/mesa/vbo/vbo_save.h index 51ca3c2614d..a9834d6e6d4 100644 --- a/src/mesa/vbo/vbo_save.h +++ b/src/mesa/vbo/vbo_save.h @@ -70,7 +70,6 @@ struct vbo_save_vertex_list { */ fi_type *current_data; - GLuint buffer_offset; /**< in bytes */ GLuint vertex_count; /**< number of vertices in this list */ GLuint wrap_count; /* number of copied vertices at start */ @@ -81,19 +80,6 @@ struct vbo_save_vertex_list { }; -/** - * Is the vertex list's buffer offset an exact multiple of the - * vertex size (in bytes)? This is used to check for a vertex array / - * drawing optimization. - */ -static inline bool -aligned_vertex_buffer_offset(const struct vbo_save_vertex_list *node) -{ - unsigned vertex_size = node->vertex_size * sizeof(GLfloat); /* in bytes */ - return vertex_size != 0 && node->buffer_offset % vertex_size == 0; -} - - /** * Return the stride in bytes of the display list node. */ -- cgit v1.2.3