vbo: Merge GL_QUADS drawing requests in display lists.
authorEric Anholt <eric@anholt.net>
Fri, 1 Feb 2013 03:49:21 +0000 (14:49 +1100)
committerEric Anholt <eric@anholt.net>
Mon, 11 Feb 2013 21:14:52 +0000 (13:14 -0800)
commite776b632c095690763bcbc8164834ed92c21ea5b
tree2bdc6e317be841b3be7c65de0451c67b974ad1bf
parent50202f09610ec4f748a9175caa2607df6394b7d0
vbo: Merge GL_QUADS drawing requests in display lists.

minecraft apparently has its piles of display lists each contain 6
instances of glBegin(GL_QUADS)/verts/glEnd(), which appear in the
compiled list as 6 prims of 4 verts each in one draw call.  We can
reduce driver overhead even more by making that one prim of 24 verts.

Improves minecraft performance by 1.6% +/- .25% (n=446)

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/mesa/vbo/vbo_save_api.c