mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-21 18:40:42 +01:00
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:
parent
ad34c932cd
commit
eda0b9f8d4
1 changed files with 6 additions and 0 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue