Mesa (master): mesa: glGet: add script to generate hash tables in build time

Oliver McFadden omcfadde at kemper.freedesktop.org
Wed Oct 10 09:45:22 UTC 2012


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

Author: Imre Deak <imre.deak at intel.com>
Date:   Mon Sep 10 08:46:13 2012 +0300

mesa: glGet: add script to generate hash tables in build time

This will be needed by the next patch, which will switch to using
the parameter descriptor- and hash tables generated by the script.

The hash algorithm remains the same, the output parameter descriptor
table format changes slightly. There the TYPE_API_MASK entries are
removed and an invalid NULL entry is inserted at the beginning. This is
ok, as get.c:find_value() doesn't rely on TYPE_API_MASK any more to
detect an invalid enum.

Signed-off-by: Imre Deak <imre.deak at intel.com>
Reviewed-by: Brian Paul <brianp at vmware.com>
Reviewed-by: Oliver McFadden <oliver.mcfadden at linux.intel.com>

---

 src/mesa/Android.gen.mk             |   10 +-
 src/mesa/Makefile.am                |   12 +
 src/mesa/SConscript                 |   18 +-
 src/mesa/main/.gitignore            |    2 +
 src/mesa/main/get_hash_generator.py |  214 ++++++++++
 src/mesa/main/get_hash_params.py    |  730 +++++++++++++++++++++++++++++++++++
 6 files changed, 984 insertions(+), 2 deletions(-)

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



More information about the mesa-commit mailing list