panfrost: Set overdraw_alpha[01] flags
authorAlyssa Rosenzweig <alyssa@collabora.com>
Fri, 27 May 2022 12:46:46 +0000 (08:46 -0400)
committerMarge Bot <emma+marge@anholt.net>
Mon, 30 May 2022 14:00:55 +0000 (14:00 +0000)
commite7a7679b9a77bd4b4300c19bc6b3365756f03c5b
tree5db7f846dbec59f6e42941d63dc0f375e9258cd5
parent776fa19db2ccf4b96be0da0ef650da6492e312ef
panfrost: Set overdraw_alpha[01] flags

These basically correspond to the alpha_zero_nop and alpha_one_store flags we
already compute and set. Except those flags don't exist on Valhall, so these
need to be used instead (on Bifrost, in addition .. unclear why the duplication
on Bifrost).

Set these flags when we can. Ostensibly this is for performance (neglible
improvement on glmark2 score), but mostly I want to get us using the hardware
optimally.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16748>
src/gallium/drivers/panfrost/pan_cmdstream.c