diff options
author | Marek Olšák <marek.olsak@amd.com> | 2024-01-07 20:53:37 -0500 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2024-02-23 18:03:58 +0000 |
commit | 99f8f01dfb97e44e144ec0c91d80494e969c2464 (patch) | |
tree | 494d354c3c08baa05c107383c62ff5d7ee47b7b1 /src/mapi | |
parent | 15bc7e1d6258fca2c970384463726ab08aaecba0 (diff) |
glthread: pack the index type to 8 bits
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27350>
Diffstat (limited to 'src/mapi')
-rw-r--r-- | src/mapi/glapi/gen/marshal_XML.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mapi/glapi/gen/marshal_XML.py b/src/mapi/glapi/gen/marshal_XML.py index 165c0b73a1a..f6025743052 100644 --- a/src/mapi/glapi/gen/marshal_XML.py +++ b/src/mapi/glapi/gen/marshal_XML.py @@ -37,6 +37,9 @@ def get_marshal_type(func_name, param): if (type, param.name) == ('GLenum', 'mode'): return 'GLenum8' + if (type, param.name) == ('GLenum', 'type'): + return 'GLindextype' + if type == 'GLenum': return 'GLenum16' # clamped to 0xffff (always invalid enum) @@ -66,6 +69,7 @@ def get_type_size(func_name, param): 'GLbyte': 1, 'GLubyte': 1, 'GLenum8': 1, # clamped by glthread + 'GLindextype': 1, 'GLenum16': 2, # clamped by glthread 'GLshort': 2, 'GLushort': 2, |