diff options
author | Marek Olšák <marek.olsak@amd.com> | 2024-01-07 23:34:07 -0500 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2024-02-23 18:03:58 +0000 |
commit | 12754aec1a2a6b5a99075b2c37159d62a6b7260f (patch) | |
tree | b72625ad260dd5a7e74dfa73d35c2e1ca91cb480 /src/mapi | |
parent | 5e5d91671e03bcf14133dcd4ff79b376eb70ecc9 (diff) |
glthread: rewrite glDrawArrays call packing
Since changing 1 field to 8 bits and the removal of cmd_size, call sizes
have decreased, so we have 4 unused bytes in 2 DrawArrays structures
So far we use:
- DrawArrays
- DrawArraysInstancedBaseInstance
- DrawArraysInstancedBaseInstanceDrawID
Change them to these by either removing 4 more bytes or adding 4 bytes,
so that we don't waste space, which drops the number of used calls by 1:
- DrawArraysInstanced
- DrawArraysInstancedBaseInstanceDrawID
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/ARB_base_instance.xml | 2 | ||||
-rw-r--r-- | src/mapi/glapi/gen/ARB_draw_instanced.xml | 2 | ||||
-rw-r--r-- | src/mapi/glapi/gen/gl_API.xml | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/mapi/glapi/gen/ARB_base_instance.xml b/src/mapi/glapi/gen/ARB_base_instance.xml index 7e8ec3b2ecf..53774731daf 100644 --- a/src/mapi/glapi/gen/ARB_base_instance.xml +++ b/src/mapi/glapi/gen/ARB_base_instance.xml @@ -9,7 +9,7 @@ <category name="GL_ARB_base_instance" number="107"> <function name="DrawArraysInstancedBaseInstance" marshal="custom" exec="dlist" - marshal_struct="public" marshal_no_error="true"> + marshal_no_error="true"> <param name="mode" type="GLenum"/> <param name="first" type="GLint"/> <param name="count" type="GLsizei"/> diff --git a/src/mapi/glapi/gen/ARB_draw_instanced.xml b/src/mapi/glapi/gen/ARB_draw_instanced.xml index d43f1039798..0d52295d378 100644 --- a/src/mapi/glapi/gen/ARB_draw_instanced.xml +++ b/src/mapi/glapi/gen/ARB_draw_instanced.xml @@ -9,7 +9,7 @@ <category name="GL_ARB_draw_instanced" number="44"> <function name="DrawArraysInstanced" marshal="custom" exec="dlist" es2="2.0" - marshal_no_error="true"> + marshal_no_error="true" marshal_struct="public"> <param name="mode" type="GLenum"/> <param name="first" type="GLint"/> <param name="count" type="GLsizei"/> diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/glapi/gen/gl_API.xml index 73b3240be7a..b2e91ff7b7f 100644 --- a/src/mapi/glapi/gen/gl_API.xml +++ b/src/mapi/glapi/gen/gl_API.xml @@ -3211,7 +3211,7 @@ </function> <function name="DrawArrays" es1="1.0" es2="2.0" marshal="custom" exec="dlist" - marshal_struct="public" marshal_no_error="true"> + marshal_no_error="true"> <param name="mode" type="GLenum"/> <param name="first" type="GLint"/> <param name="count" type="GLsizei"/> |