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>
This commit is contained in:
Marek Olšák 2024-01-09 01:49:39 -05:00 committed by Marge Bot
parent ad34c932cd
commit eda0b9f8d4

View file

@ -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):