vbo: introduce vbo_sizeof_ib_type() function
authorYuanhan Liu <yuanhan.liu@linux.intel.com>
Wed, 28 Dec 2011 05:54:42 +0000 (13:54 +0800)
committerYuanhan Liu <yuanhan.liu@linux.intel.com>
Fri, 30 Dec 2011 05:53:40 +0000 (13:53 +0800)
commitefa1fac2158c9146b87f0d4340a864661721de21
treef0e401b64e838f0a35e14d0ed363fde72a7706b1
parentded02bd54b5925ee222d7f426850312236b4f59d
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>
src/mesa/state_tracker/st_draw.c
src/mesa/state_tracker/st_draw_feedback.c
src/mesa/tnl/t_draw.c
src/mesa/vbo/vbo.h
src/mesa/vbo/vbo_exec_array.c