summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/get_hash_generator.py
diff options
context:
space:
mode:
authorIlia Mirkin <imirkin@alum.mit.edu>2016-08-28 19:51:45 -0400
committerIlia Mirkin <imirkin@alum.mit.edu>2016-09-13 20:49:47 -0400
commita69dc2c41294a4b7126804050bd4d10f3208852e (patch)
tree0d1738526cf3ed1a19333225783b559f0692b1d8 /src/mesa/main/get_hash_generator.py
parentaa7b410592700bf6253e8695ea208d0448c1610e (diff)
downloadexternal_mesa3d-a69dc2c41294a4b7126804050bd4d10f3208852e.zip
external_mesa3d-a69dc2c41294a4b7126804050bd4d10f3208852e.tar.gz
external_mesa3d-a69dc2c41294a4b7126804050bd4d10f3208852e.tar.bz2
mesa: add a GLES3.2 enums section, and expose new MS line width params
This also exposes them for ARB_ES3_2_compatibility. While both specs refer to the new MS line width parameters being separate from the existing AA line widths, reality begs to differ. It's the same on all hardware currently supported by mesa. Should hardware come along that wants these to be different, they're easy enough to separate out. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> (v1) Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/mesa/main/get_hash_generator.py')
-rw-r--r--src/mesa/main/get_hash_generator.py15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/mesa/main/get_hash_generator.py b/src/mesa/main/get_hash_generator.py
index c777b78..d7460c8 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", "GLES3", "GLES31"])
+gl_apis=set(["GL", "GL_CORE", "GLES", "GLES2", "GLES3", "GLES31", "GLES32"])
def print_header():
print "typedef const unsigned short table_t[%d];\n" % (hash_table_size)
@@ -69,6 +69,7 @@ api_enum = [
'GL_CORE',
'GLES3', # Not in gl_api enum in mtypes.h
'GLES31', # Not in gl_api enum in mtypes.h
+ 'GLES32', # Not in gl_api enum in mtypes.h
]
def api_index(api):
@@ -168,13 +169,18 @@ 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 and GLES31 hash table
+ # Also add GLES2 items to the GLES3+ hash tables
if api == "GLES2":
add_to_hash_table(tables["GLES3"], hash_val, len(params))
add_to_hash_table(tables["GLES31"], hash_val, len(params))
- # Also add GLES3 items to the GLES31 hash table
+ add_to_hash_table(tables["GLES32"], hash_val, len(params))
+ # Also add GLES3 items to the GLES31+ hash tables
if api == "GLES3":
add_to_hash_table(tables["GLES31"], hash_val, len(params))
+ add_to_hash_table(tables["GLES32"], hash_val, len(params))
+ # Also add GLES31 items to the GLES32+ hash tables
+ if api == "GLES31":
+ add_to_hash_table(tables["GLES32"], hash_val, len(params))
params.append(["GL_" + enum_name, param[1]])
sorted_tables={}
@@ -210,7 +216,8 @@ if __name__ == '__main__':
die("missing descriptor file (-f)\n")
# generate the code for all APIs
- enabled_apis = set(["GLES", "GLES2", "GLES3", "GLES31", "GL", "GL_CORE"])
+ enabled_apis = set(["GLES", "GLES2", "GLES3", "GLES31", "GLES32",
+ "GL", "GL_CORE"])
try:
api_desc = gl_XML.parse_GL_API(api_desc_file)