diff options
author | Matt Turner <mattst88@gmail.com> | 2012-12-14 14:22:28 -0800 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2013-01-10 10:57:50 -0800 |
commit | 0cc018526f610deb4990587a6d1ac73d5d71bc90 (patch) | |
tree | cc7e947171eabaacb45985e948c840b89cd98b4c /src/mesa/main/get_hash_generator.py | |
parent | 57616159aae308e1a8fa831c57958f649a934650 (diff) | |
download | external_mesa3d-0cc018526f610deb4990587a6d1ac73d5d71bc90.zip external_mesa3d-0cc018526f610deb4990587a6d1ac73d5d71bc90.tar.gz external_mesa3d-0cc018526f610deb4990587a6d1ac73d5d71bc90.tar.bz2 |
Add ES 3 handling to get.c and get_hash_generator.py
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'src/mesa/main/get_hash_generator.py')
-rw-r--r-- | src/mesa/main/get_hash_generator.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mesa/main/get_hash_generator.py b/src/mesa/main/get_hash_generator.py index 4b3f5f4..04bf9ff 100644 --- a/src/mesa/main/get_hash_generator.py +++ b/src/mesa/main/get_hash_generator.py @@ -44,7 +44,7 @@ prime_factor = 89 prime_step = 281 hash_table_size = 1024 -gl_apis=set(["GL", "GL_CORE", "GLES", "GLES2"]) +gl_apis=set(["GL", "GL_CORE", "GLES", "GLES2", "GLES3"]) def print_header(): print "typedef const unsigned short table_t[%d];\n" % (hash_table_size) @@ -67,6 +67,7 @@ api_enum = [ 'GLES', 'GLES2', 'GL_CORE', + 'GLES3', # Not in gl_api enum in mtypes.h ] def api_index(api): @@ -166,6 +167,9 @@ def generate_hash_tables(enum_list, enabled_apis, param_descriptors): for api in valid_apis: add_to_hash_table(tables[api], hash_val, len(params)) + # Also add GLES2 items to the GLES3 hash table + if api == "GLES2": + add_to_hash_table(tables["GLES3"], hash_val, len(params)) params.append(["GL_" + enum_name, param[1]]) @@ -183,6 +187,8 @@ def opt_to_apis(feature): apis = set([_map[feature]]) if "GL" in apis: apis.add("GL_CORE") + if "GLES2" in apis: + apis.add("GLES3") return apis |