glthread: add more DrawArrays/Elements variants with fewer fields
authorMarek Olšák <marek.olsak@amd.com>
Sun, 21 Aug 2022 22:05:09 +0000 (18:05 -0400)
committerMarge Bot <emma+marge@anholt.net>
Wed, 19 Oct 2022 04:23:05 +0000 (04:23 +0000)
commit58f738bf5ecbb6eeb7c84954edd0fff5af8ff192
tree2bdb7d73e7c06331f10ba770afd126de3bd7ab16
parent83ce647c1594bedfd1e8e07a0bb30a577db68616
glthread: add more DrawArrays/Elements variants with fewer fields

The idea is to save 8 bytes per call by removing 2 fields that are not
specified by the user such as instance_count=1, basevertex=0, and
baseinstance=0.

Acked-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18199>
src/mesa/main/glthread_draw.c