mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02:00
glthread: use marshal_count instead of count for more functions
Same as the previous commit, just applied to more functions. This removes safe_mul and checking whether cmd_size is too large because the size is always small with these functions. 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
e8721fefcd
commit
1f9b554839
9 changed files with 35 additions and 35 deletions
|
|
@ -222,21 +222,21 @@
|
|||
<param name="framebuffer" type="GLuint" />
|
||||
<param name="buffer" type="GLenum" />
|
||||
<param name="drawbuffer" type="GLint" />
|
||||
<param name="value" type="const GLint *" count="_mesa_buffer_enum_to_count(buffer)"/>
|
||||
<param name="value" type="const GLint *" marshal_count="_mesa_buffer_enum_to_count(buffer)"/>
|
||||
</function>
|
||||
|
||||
<function name="ClearNamedFramebufferuiv">
|
||||
<param name="framebuffer" type="GLuint" />
|
||||
<param name="buffer" type="GLenum" />
|
||||
<param name="drawbuffer" type="GLint" />
|
||||
<param name="value" type="const GLuint *" count="_mesa_buffer_enum_to_count(buffer)"/>
|
||||
<param name="value" type="const GLuint *" marshal_count="_mesa_buffer_enum_to_count(buffer)"/>
|
||||
</function>
|
||||
|
||||
<function name="ClearNamedFramebufferfv">
|
||||
<param name="framebuffer" type="GLuint" />
|
||||
<param name="buffer" type="GLenum" />
|
||||
<param name="drawbuffer" type="GLint" />
|
||||
<param name="value" type="const GLfloat *" count="_mesa_buffer_enum_to_count(buffer)"/>
|
||||
<param name="value" type="const GLfloat *" marshal_count="_mesa_buffer_enum_to_count(buffer)"/>
|
||||
</function>
|
||||
|
||||
<function name="ClearNamedFramebufferfi">
|
||||
|
|
@ -493,7 +493,7 @@
|
|||
<function name="TextureParameterfv">
|
||||
<param name="texture" type="GLuint" />
|
||||
<param name="pname" type="GLenum" />
|
||||
<param name="param" type="const GLfloat *" count="_mesa_tex_param_enum_to_count(pname)"/>
|
||||
<param name="param" type="const GLfloat *" marshal_count="_mesa_tex_param_enum_to_count(pname)"/>
|
||||
</function>
|
||||
|
||||
<function name="TextureParameteri">
|
||||
|
|
@ -505,19 +505,19 @@
|
|||
<function name="TextureParameterIiv">
|
||||
<param name="texture" type="GLuint" />
|
||||
<param name="pname" type="GLenum" />
|
||||
<param name="params" type="const GLint *" count="_mesa_tex_param_enum_to_count(pname)"/>
|
||||
<param name="params" type="const GLint *" marshal_count="_mesa_tex_param_enum_to_count(pname)"/>
|
||||
</function>
|
||||
|
||||
<function name="TextureParameterIuiv">
|
||||
<param name="texture" type="GLuint" />
|
||||
<param name="pname" type="GLenum" />
|
||||
<param name="params" type="const GLuint *" count="_mesa_tex_param_enum_to_count(pname)"/>
|
||||
<param name="params" type="const GLuint *" marshal_count="_mesa_tex_param_enum_to_count(pname)"/>
|
||||
</function>
|
||||
|
||||
<function name="TextureParameteriv">
|
||||
<param name="texture" type="GLuint" />
|
||||
<param name="pname" type="GLenum" />
|
||||
<param name="param" type="const GLint *" count="_mesa_tex_param_enum_to_count(pname)"/>
|
||||
<param name="param" type="const GLint *" marshal_count="_mesa_tex_param_enum_to_count(pname)"/>
|
||||
</function>
|
||||
|
||||
<function name="GenerateTextureMipmap" no_error="true">
|
||||
|
|
|
|||
|
|
@ -42,25 +42,25 @@
|
|||
<function name="SamplerParameteriv" es2="2.0" exec="dlist">
|
||||
<param name="sampler" type="GLuint"/>
|
||||
<param name="pname" type="GLenum"/>
|
||||
<param name="params" type="const GLint *" count="_mesa_tex_param_enum_to_count(pname)"/>
|
||||
<param name="params" type="const GLint *" marshal_count="_mesa_tex_param_enum_to_count(pname)"/>
|
||||
</function>
|
||||
|
||||
<function name="SamplerParameterfv" es2="2.0" exec="dlist">
|
||||
<param name="sampler" type="GLuint"/>
|
||||
<param name="pname" type="GLenum"/>
|
||||
<param name="params" type="const GLfloat *" count="_mesa_tex_param_enum_to_count(pname)"/>
|
||||
<param name="params" type="const GLfloat *" marshal_count="_mesa_tex_param_enum_to_count(pname)"/>
|
||||
</function>
|
||||
|
||||
<function name="SamplerParameterIiv" es2="3.2" exec="dlist">
|
||||
<param name="sampler" type="GLuint"/>
|
||||
<param name="pname" type="GLenum"/>
|
||||
<param name="params" type="const GLint *" count="_mesa_tex_param_enum_to_count(pname)"/>
|
||||
<param name="params" type="const GLint *" marshal_count="_mesa_tex_param_enum_to_count(pname)"/>
|
||||
</function>
|
||||
|
||||
<function name="SamplerParameterIuiv" es2="3.2" exec="dlist">
|
||||
<param name="sampler" type="GLuint"/>
|
||||
<param name="pname" type="GLenum"/>
|
||||
<param name="params" type="const GLuint *" count="_mesa_tex_param_enum_to_count(pname)"/>
|
||||
<param name="params" type="const GLuint *" marshal_count="_mesa_tex_param_enum_to_count(pname)"/>
|
||||
</function>
|
||||
|
||||
<function name="GetSamplerParameteriv" es2="2.0">
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@
|
|||
</function>
|
||||
<function name="PatchParameterfv" exec="dlist">
|
||||
<param name="pname" type="GLenum"/>
|
||||
<param name="values" type="const GLfloat *" count="_mesa_patch_param_enum_to_count(pname)"/>
|
||||
<param name="values" type="const GLfloat *" marshal_count="_mesa_patch_param_enum_to_count(pname)"/>
|
||||
</function>
|
||||
|
||||
<function name="PatchParameteriEXT" es2="3.1" alias="PatchParameteri">
|
||||
|
|
|
|||
|
|
@ -156,7 +156,7 @@
|
|||
<param name="texture" type="GLuint" />
|
||||
<param name="target" type="GLenum" />
|
||||
<param name="pname" type="GLenum" />
|
||||
<param name="params" type="const GLint *" count="_mesa_tex_param_enum_to_count(pname)"/>
|
||||
<param name="params" type="const GLint *" marshal_count="_mesa_tex_param_enum_to_count(pname)"/>
|
||||
</function>
|
||||
|
||||
<function name="TextureParameterfEXT" deprecated="3.1" exec="dlist">
|
||||
|
|
@ -170,7 +170,7 @@
|
|||
<param name="texture" type="GLuint" />
|
||||
<param name="target" type="GLenum" />
|
||||
<param name="pname" type="GLenum" />
|
||||
<param name="params" type="const float *" count="_mesa_tex_param_enum_to_count(pname)"/>
|
||||
<param name="params" type="const float *" marshal_count="_mesa_tex_param_enum_to_count(pname)"/>
|
||||
</function>
|
||||
|
||||
<function name="TextureImage1DEXT" deprecated="3.1" exec="dlist"
|
||||
|
|
@ -372,7 +372,7 @@
|
|||
<param name="texunit" type="GLenum" />
|
||||
<param name="target" type="GLenum" />
|
||||
<param name="pname" type="GLenum" />
|
||||
<param name="param" type="const GLint *" count="_mesa_texenv_enum_to_count(pname)"/>
|
||||
<param name="param" type="const GLint *" marshal_count="_mesa_texenv_enum_to_count(pname)"/>
|
||||
</function>
|
||||
|
||||
<function name="MultiTexEnvfEXT" deprecated="3.1" exec="dlist">
|
||||
|
|
@ -386,7 +386,7 @@
|
|||
<param name="texunit" type="GLenum" />
|
||||
<param name="target" type="GLenum" />
|
||||
<param name="pname" type="GLenum" />
|
||||
<param name="param" type="const GLfloat *" count="_mesa_texenv_enum_to_count(pname)"/>
|
||||
<param name="param" type="const GLfloat *" marshal_count="_mesa_texenv_enum_to_count(pname)"/>
|
||||
</function>
|
||||
|
||||
<function name="GetMultiTexEnvivEXT" deprecated="3.1">
|
||||
|
|
@ -414,7 +414,7 @@
|
|||
<param name="texunit" type="GLenum" />
|
||||
<param name="target" type="GLenum" />
|
||||
<param name="pname" type="GLenum" />
|
||||
<param name="param" type="const GLint*" count="_mesa_tex_param_enum_to_count(pname)"/>
|
||||
<param name="param" type="const GLint*" marshal_count="_mesa_tex_param_enum_to_count(pname)"/>
|
||||
</function>
|
||||
|
||||
<function name="MultiTexParameterfEXT" deprecated="3.1" exec="dlist">
|
||||
|
|
@ -428,7 +428,7 @@
|
|||
<param name="texunit" type="GLenum" />
|
||||
<param name="target" type="GLenum" />
|
||||
<param name="pname" type="GLenum" />
|
||||
<param name="param" type="const GLfloat*" count="_mesa_tex_param_enum_to_count(pname)"/>
|
||||
<param name="param" type="const GLfloat*" marshal_count="_mesa_tex_param_enum_to_count(pname)"/>
|
||||
</function>
|
||||
|
||||
<function name="GetMultiTexParameterivEXT" deprecated="3.1">
|
||||
|
|
@ -624,7 +624,7 @@
|
|||
<param name="texunit" type="GLenum" />
|
||||
<param name="coord" type="GLenum" />
|
||||
<param name="pname" type="GLenum" />
|
||||
<param name="param" type="const GLdouble*" count="_mesa_texgen_enum_to_count(pname)"/>
|
||||
<param name="param" type="const GLdouble*" marshal_count="_mesa_texgen_enum_to_count(pname)"/>
|
||||
</function>
|
||||
|
||||
<function name="MultiTexGenfEXT" deprecated="3.1">
|
||||
|
|
@ -638,7 +638,7 @@
|
|||
<param name="texunit" type="GLenum" />
|
||||
<param name="coord" type="GLenum" />
|
||||
<param name="pname" type="GLenum" />
|
||||
<param name="param" type="const GLfloat *" count="_mesa_texgen_enum_to_count(pname)"/>
|
||||
<param name="param" type="const GLfloat *" marshal_count="_mesa_texgen_enum_to_count(pname)"/>
|
||||
</function>
|
||||
|
||||
<function name="MultiTexGeniEXT" deprecated="3.1">
|
||||
|
|
@ -652,7 +652,7 @@
|
|||
<param name="texunit" type="GLenum" />
|
||||
<param name="coord" type="GLenum" />
|
||||
<param name="pname" type="GLenum" />
|
||||
<param name="param" type="const GLint *" count="_mesa_texgen_enum_to_count(pname)"/>
|
||||
<param name="param" type="const GLint *" marshal_count="_mesa_texgen_enum_to_count(pname)"/>
|
||||
</function>
|
||||
|
||||
<function name="GetMultiTexGendvEXT" deprecated="3.1">
|
||||
|
|
@ -1342,14 +1342,14 @@
|
|||
<param name="texture" type="GLuint" />
|
||||
<param name="target" type="GLenum" />
|
||||
<param name="pname" type="GLenum" />
|
||||
<param name="params" type="const GLint*" count="_mesa_tex_param_enum_to_count(pname)"/>
|
||||
<param name="params" type="const GLint*" marshal_count="_mesa_tex_param_enum_to_count(pname)"/>
|
||||
</function>
|
||||
|
||||
<function name="TextureParameterIuivEXT" deprecated="3.1" exec="dlist">
|
||||
<param name="texture" type="GLuint" />
|
||||
<param name="target" type="GLenum" />
|
||||
<param name="pname" type="GLenum" />
|
||||
<param name="params" type="const GLuint*" count="_mesa_tex_param_enum_to_count(pname)"/>
|
||||
<param name="params" type="const GLuint*" marshal_count="_mesa_tex_param_enum_to_count(pname)"/>
|
||||
</function>
|
||||
|
||||
<function name="GetTextureParameterIivEXT" deprecated="3.1">
|
||||
|
|
@ -1370,14 +1370,14 @@
|
|||
<param name="texunit" type="GLenum" />
|
||||
<param name="target" type="GLenum" />
|
||||
<param name="pname" type="GLenum" />
|
||||
<param name="params" type="const GLint*" count="_mesa_tex_param_enum_to_count(pname)"/>
|
||||
<param name="params" type="const GLint*" marshal_count="_mesa_tex_param_enum_to_count(pname)"/>
|
||||
</function>
|
||||
|
||||
<function name="MultiTexParameterIuivEXT" deprecated="3.1" exec="dlist">
|
||||
<param name="texunit" type="GLenum" />
|
||||
<param name="target" type="GLenum" />
|
||||
<param name="pname" type="GLenum" />
|
||||
<param name="params" type="const GLuint*" count="_mesa_tex_param_enum_to_count(pname)"/>
|
||||
<param name="params" type="const GLuint*" marshal_count="_mesa_tex_param_enum_to_count(pname)"/>
|
||||
</function>
|
||||
|
||||
<function name="GetMultiTexParameterIivEXT" deprecated="3.1">
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@
|
|||
<function name="MemoryObjectParameterivEXT" es2="3.2">
|
||||
<param name="memoryObject" type="GLuint"/>
|
||||
<param name="pname" type="GLenum"/>
|
||||
<param name="params" type="const GLint *" count="_mesa_memobj_enum_to_count(pname)"/>
|
||||
<param name="params" type="const GLint *" marshal_count="_mesa_memobj_enum_to_count(pname)"/>
|
||||
</function>
|
||||
|
||||
<function name="GetMemoryObjectParameterivEXT" es2="3.2">
|
||||
|
|
@ -202,7 +202,7 @@
|
|||
<function name="SemaphoreParameterui64vEXT" es2="3.2">
|
||||
<param name="semaphore" type="GLuint"/>
|
||||
<param name="pname" type="GLenum"/>
|
||||
<param name="params" type="const GLuint64 *" count="_mesa_semaphore_enum_to_count(pname)"/>
|
||||
<param name="params" type="const GLuint64 *" marshal_count="_mesa_semaphore_enum_to_count(pname)"/>
|
||||
</function>
|
||||
|
||||
<function name="GetSemaphoreParameterui64vEXT" es2="3.2">
|
||||
|
|
|
|||
|
|
@ -120,19 +120,19 @@
|
|||
<function name="ClearBufferiv" es2="3.0" no_error="true" exec="dlist">
|
||||
<param name="buffer" type="GLenum"/>
|
||||
<param name="drawbuffer" type="GLint"/>
|
||||
<param name="value" type="const GLint *" count="_mesa_buffer_enum_to_count(buffer)"/>
|
||||
<param name="value" type="const GLint *" marshal_count="_mesa_buffer_enum_to_count(buffer)"/>
|
||||
</function>
|
||||
|
||||
<function name="ClearBufferuiv" es2="3.0" no_error="true" exec="dlist">
|
||||
<param name="buffer" type="GLenum"/>
|
||||
<param name="drawbuffer" type="GLint"/>
|
||||
<param name="value" type="const GLuint *" count="_mesa_buffer_enum_to_count(buffer)"/>
|
||||
<param name="value" type="const GLuint *" marshal_count="_mesa_buffer_enum_to_count(buffer)"/>
|
||||
</function>
|
||||
|
||||
<function name="ClearBufferfv" es2="3.0" no_error="true" exec="dlist">
|
||||
<param name="buffer" type="GLenum"/>
|
||||
<param name="drawbuffer" type="GLint"/>
|
||||
<param name="value" type="const GLfloat *" count="_mesa_buffer_enum_to_count(buffer)"/>
|
||||
<param name="value" type="const GLfloat *" marshal_count="_mesa_buffer_enum_to_count(buffer)"/>
|
||||
</function>
|
||||
|
||||
<function name="ClearBufferfi" es2="3.0" no_error="true" exec="dlist">
|
||||
|
|
@ -451,13 +451,13 @@
|
|||
<function name="TexParameterIiv" es2="3.2" exec="dlist">
|
||||
<param name="target" type="GLenum"/>
|
||||
<param name="pname" type="GLenum"/>
|
||||
<param name="params" type="const GLint *" count="_mesa_tex_param_enum_to_count(pname)"/>
|
||||
<param name="params" type="const GLint *" marshal_count="_mesa_tex_param_enum_to_count(pname)"/>
|
||||
</function>
|
||||
|
||||
<function name="TexParameterIuiv" es2="3.2" exec="dlist">
|
||||
<param name="target" type="GLenum"/>
|
||||
<param name="pname" type="GLenum"/>
|
||||
<param name="params" type="const GLuint *" count="_mesa_tex_param_enum_to_count(pname)"/>
|
||||
<param name="params" type="const GLuint *" marshal_count="_mesa_tex_param_enum_to_count(pname)"/>
|
||||
</function>
|
||||
|
||||
<function name="GetTexParameterIiv" es2="3.2">
|
||||
|
|
|
|||
|
|
@ -234,7 +234,7 @@
|
|||
<function name="TexParameterxvOES" es1="1.0" alias="TexParameterxv">
|
||||
<param name="target" type="GLenum"/>
|
||||
<param name="pname" type="GLenum"/>
|
||||
<param name="params" type="const GLfixed *" count="_mesa_tex_param_enum_to_count(pname)"/>
|
||||
<param name="params" type="const GLfixed *" marshal_count="_mesa_tex_param_enum_to_count(pname)"/>
|
||||
</function>
|
||||
|
||||
<!-- texgen -->
|
||||
|
|
|
|||
|
|
@ -5321,7 +5321,7 @@
|
|||
|
||||
<function name="DrawBuffers" es2="3.0" no_error="true" exec="dlist">
|
||||
<param name="n" type="GLsizei" counter="true"/>
|
||||
<param name="bufs" type="const GLenum *" count="n"/>
|
||||
<param name="bufs" type="const GLenum *" count="n" marshal_count="CLAMP(n, 0, MAX_DRAW_BUFFERS)"/>
|
||||
<glx rop="233" large="true"/>
|
||||
</function>
|
||||
|
||||
|
|
|
|||
|
|
@ -259,7 +259,7 @@
|
|||
<function name="PointParameterxv" es1="1.1" deprecated="3.1">
|
||||
<param name="pname" type="GLenum"/>
|
||||
<param name="params" type="const GLfixed *"
|
||||
count="_mesa_point_param_enum_to_count(pname)"/>
|
||||
marshal_count="_mesa_point_param_enum_to_count(pname)"/>
|
||||
</function>
|
||||
|
||||
<function name="TexParameterxv" es1="1.1" deprecated="3.1">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue