summaryrefslogtreecommitdiff
path: root/src/mapi
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2024-01-09 01:49:39 -0500
committerMarge Bot <emma+marge@anholt.net>2024-02-23 18:03:59 +0000
commiteda0b9f8d4cb36a487667947eb0b2ea0b034ab37 (patch)
tree0b64431051fe528b0fc917da46437d17d10a507b /src/mapi
parentad34c932cdf9583f27b35a948a90c37c45c27889 (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.py6
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):