mesa: shrink gl_vertex_array
authorBrian Paul <brianp@vmware.com>
Fri, 26 Jan 2018 21:49:41 +0000 (14:49 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 30 Jan 2018 04:15:52 +0000 (21:15 -0700)
commit79cafa0df342f9fdc142ad2ed7d910044f5f4c4f
tree9c97483197027ef9b49d2d721c2399d651d5de00
parentf96a69f916aed40519e755d0460a83940a58780e
mesa: shrink gl_vertex_array

Inspired by Marek's earlier patch, but goes a little further.
Sort fields from largest to smallest.  Use bitfields.

Reduced from 48 bytes to 32.  Also reduces size of gl_vertex_array_object
from 4144 to 3632

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/main/mtypes.h