freedreno/a6xx: Avoid zero-init fd6_emit
authorRob Clark <robdclark@chromium.org>
Mon, 2 Jan 2023 20:38:19 +0000 (12:38 -0800)
committerMarge Bot <emma+marge@anholt.net>
Wed, 11 Jan 2023 19:06:17 +0000 (19:06 +0000)
commit7b734cc6683fc1dbd1338a37555861f5f8cd9680
treef2a222a788e6ce08eda4d58b164429de787607b8
parentdfd16c489a3a2c485848bda2d7de086bc05b81d9
freedreno/a6xx: Avoid zero-init fd6_emit

A pretty significant amount of time spent in fd6_draw_vbo is calling
memset to zero init the on-stack struct.  And a big part of the size
of the struct is fd6_state, of which we only need to initialize
num_groups to zero.  This is worth a 15% improvement in drawoverhead
test 0 ("no state change").

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20572>
src/gallium/drivers/freedreno/a6xx/fd6_draw.c