Mesa (master): mesa: replace GLenum with GLenum16 in common structures (v4)

Brian Paul brianp at kemper.freedesktop.org
Tue Jan 30 04:30:14 UTC 2018


Module: Mesa
Branch: master
Commit: f96a69f916aed40519e755d0460a83940a58780e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f96a69f916aed40519e755d0460a83940a58780e

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Fri Jan 26 14:25:53 2018 -0700

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 at vmware.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

---

 src/mesa/drivers/common/meta.h                 |   2 +-
 src/mesa/drivers/dri/nouveau/nv04_state_frag.c |   4 +-
 src/mesa/drivers/dri/nouveau/nv10_state_frag.c |   4 +-
 src/mesa/main/attrib.c                         |  13 +-
 src/mesa/main/buffers.c                        |  12 +-
 src/mesa/main/buffers.h                        |   2 +-
 src/mesa/main/context.c                        |   2 +-
 src/mesa/main/get.c                            |  38 +++++
 src/mesa/main/get_hash_params.py               | 152 +++++++++---------
 src/mesa/main/glheader.h                       |   1 +
 src/mesa/main/mtypes.h                         | 204 ++++++++++++-------------
 src/mesa/vbo/vbo_exec.h                        |   2 +-
 src/mesa/vbo/vbo_save.h                        |   4 +-
 src/mesa/vbo/vbo_save_api.c                    |   2 +
 src/mesa/vbo/vbo_save_draw.c                   |   4 +-
 15 files changed, 250 insertions(+), 196 deletions(-)

Diff:   http://cgit.freedesktop.org/mesa/mesa/diff/?id=f96a69f916aed40519e755d0460a83940a58780e



More information about the mesa-commit mailing list