summaryrefslogtreecommitdiffstats
path: root/src/mesa/vbo/vbo.h
diff options
context:
space:
mode:
authorYuanhan Liu <yuanhan.liu@linux.intel.com>2011-12-28 13:54:42 +0800
committerYuanhan Liu <yuanhan.liu@linux.intel.com>2011-12-30 13:53:40 +0800
commitefa1fac2158c9146b87f0d4340a864661721de21 (patch)
treef0e401b64e838f0a35e14d0ed363fde72a7706b1 /src/mesa/vbo/vbo.h
parentded02bd54b5925ee222d7f426850312236b4f59d (diff)
downloadexternal_mesa3d-efa1fac2158c9146b87f0d4340a864661721de21.zip
external_mesa3d-efa1fac2158c9146b87f0d4340a864661721de21.tar.gz
external_mesa3d-efa1fac2158c9146b87f0d4340a864661721de21.tar.bz2
vbo: introduce vbo_sizeof_ib_type() function
introduce vbo_sizeof_ib_type() function to return the index data type size. I see some place use switch(ib->type) to get the index data type, which is sort of duplicate. Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com> Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'src/mesa/vbo/vbo.h')
-rw-r--r--src/mesa/vbo/vbo.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/vbo/vbo.h b/src/mesa/vbo/vbo.h
index 7384790..ed8fc17 100644
--- a/src/mesa/vbo/vbo.h
+++ b/src/mesa/vbo/vbo.h
@@ -122,6 +122,10 @@ void vbo_rebase_prims( struct gl_context *ctx,
GLuint min_index,
GLuint max_index,
vbo_draw_func draw );
+
+int
+vbo_sizeof_ib_type(GLenum type);
+
void
vbo_get_minmax_index(struct gl_context *ctx, const struct _mesa_prim *prim,
const struct _mesa_index_buffer *ib,