mesa: replace GLenum with GLenum16 in common structures (v4)
authorMarek Olšák <marek.olsak@amd.com>
Fri, 26 Jan 2018 21:25:53 +0000 (14:25 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 30 Jan 2018 04:15:52 +0000 (21:15 -0700)
commitf96a69f916aed40519e755d0460a83940a58780e
tree6515058fbd5ad07f986e1b31df217ae7910c7ab1
parent94843e60562c52975325f59f21cb1c8e89f2fe20
mesa: replace GLenum with GLenum16 in common structures (v4)

v2: - fix glGet*
    - also use GLenum16 for DrawBuffers
v3: - rebase to top of tree (BrianP) and incorporate Ian's suggestions
v4: - fix a GLenum16 bug in VBO/save code, add some STATIC_ASSERT()s

gl_context = 152432 -> 136840 bytes
vbo_context = 22096 -> 20608 bytes

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
15 files changed:
src/mesa/drivers/common/meta.h
src/mesa/drivers/dri/nouveau/nv04_state_frag.c
src/mesa/drivers/dri/nouveau/nv10_state_frag.c
src/mesa/main/attrib.c
src/mesa/main/buffers.c
src/mesa/main/buffers.h
src/mesa/main/context.c
src/mesa/main/get.c
src/mesa/main/get_hash_params.py
src/mesa/main/glheader.h
src/mesa/main/mtypes.h
src/mesa/vbo/vbo_exec.h
src/mesa/vbo/vbo_save.h
src/mesa/vbo/vbo_save_api.c
src/mesa/vbo/vbo_save_draw.c