diff options
author | Marek Olšák <marek.olsak@amd.com> | 2024-01-09 01:49:39 -0500 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2024-02-23 18:03:59 +0000 |
commit | eda0b9f8d4cb36a487667947eb0b2ea0b034ab37 (patch) | |
tree | 0b64431051fe528b0fc917da46437d17d10a507b /src/mapi | |
parent | ad34c932cdf9583f27b35a948a90c37c45c27889 (diff) |
glthread: pack glVertexAttribPointer calls better
These parameters can use 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 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mapi/glapi/gen/marshal_XML.py b/src/mapi/glapi/gen/marshal_XML.py index fba077a75da..3ef91dd8a40 100644 --- a/src/mapi/glapi/gen/marshal_XML.py +++ b/src/mapi/glapi/gen/marshal_XML.py @@ -61,6 +61,12 @@ class marshal_function(gl_XML.gl_function): if (type, param.name) == ('GLint', 'size'): return 'GLpacked16i' + # glVertexAttrib*Pointer(index) + # glVertexArrayVertexBuffer(bindingindex) + if ((type, param.name) == ('GLuint', 'index') or + (type, param.name) == ('GLuint', 'bindingindex')): + return 'GLenum8' # clamped to 0xff + return type def get_type_size(self, param): |