From eda0b9f8d4cb36a487667947eb0b2ea0b034ab37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Tue, 9 Jan 2024 01:49:39 -0500 Subject: [PATCH] glthread: pack glVertexAttribPointer calls better These parameters can use 8 bits. Acked-by: Pierre-Eric Pelloux-Prayer Part-of: --- src/mapi/glapi/gen/marshal_XML.py | 6 ++++++ 1 file changed, 6 insertions(+) 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):