tnl: Merge _tnl_vbo_draw_prims() into _tnl_draw_prims().
authorIago Toral Quiroga <itoral@igalia.com>
Tue, 8 Apr 2014 11:01:20 +0000 (13:01 +0200)
committerEric Anholt <eric@anholt.net>
Tue, 8 Apr 2014 22:10:10 +0000 (15:10 -0700)
commit1a92637c68b84fa30e90f442e8a3d32c450cafcc
tree20e67c25b51ef2607c1265d853ecf7e7869c278a
parent2ffb50d77b7ae3cdedf0319a0def16732ed39578
tnl: Merge _tnl_vbo_draw_prims() into _tnl_draw_prims().

This should help prevent situations where we render without proper index
bounds. For example: https://bugs.freedesktop.org/show_bug.cgi?id=59455

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_draw.c
src/mesa/drivers/dri/nouveau/nouveau_vbo_t.c
src/mesa/tnl/t_context.c
src/mesa/tnl/t_draw.c
src/mesa/tnl/tnl.h