zink: clear the fb clears array instead of freeing it on reset
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Mon, 21 Jun 2021 15:25:04 +0000 (11:25 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 22 Jun 2021 12:55:37 +0000 (12:55 +0000)
commit84199077d95f6c3022acc04e0f654b5476620aa8
treec525ad577835925f1849d2087202becf5973301a
parent6cc2929e876204ba967e5857fb4fc35522d6f506
zink: clear the fb clears array instead of freeing it on reset

this cuts cpu usage by ~2% in sourcemark due to not reallocating the array
on every draw

Reviewed-by: Hoe Hao Cheng <haochengho12907@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11499>
src/gallium/drivers/zink/zink_clear.c