mesa: simplify dispatch for glDraw* functions 92/6392/1
authorBrian Paul <brianp@vmware.com>
Thu, 2 May 2013 01:15:33 +0000 (19:15 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 2 May 2013 15:03:16 +0000 (09:03 -0600)
commit49993a1a9dc34b78ccd345b91087385917a40138
tree5bcfe73f282e120f9652ffbe7ec53d58d9a3b008
parent79679e258b7aa4b1dc672c03795d47456893f881
mesa: simplify dispatch for glDraw* functions

Remove all the glDraw* functions from the GLvertexformat structure.
The point of that dispatch struct is to handle all the functions which
dispatch differently depending on whether we're inside glBegin/End.
glDraw* are never allowed inside glBegin/End so we can remove those
entries.

This simplifies the code paths and gets rid of quite a bit of code.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/mapi/glapi/gen/gl_genexec.py
src/mesa/main/dd.h
src/mesa/main/dlist.c
src/mesa/main/vtxfmt.c
src/mesa/vbo/vbo_exec.c
src/mesa/vbo/vbo_exec.h
src/mesa/vbo/vbo_exec_array.c
src/mesa/vbo/vbo_noop.c
src/mesa/vbo/vbo_save_api.c