panfrost: Call nir_lower_fragcolor based on key
authorAlyssa Rosenzweig <alyssa@collabora.com>
Wed, 21 Apr 2021 18:13:04 +0000 (14:13 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 4 May 2021 20:04:03 +0000 (20:04 +0000)
commit28ac4d1e00553b38691966b4b9b95fee826c97d4
tree056977bedc5b103e36cf40af431012c6a27781a4
parent6a4482df98e9452fe4ad2aceee4df8fdc9cb19bf
panfrost: Call nir_lower_fragcolor based on key

We only want it to trigger if MRT is actually in use. This is a cheap
key (only require multiple variants for an obscure edge case) and avoids
the perf regression of using this pass which is needed for conformance.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10393>
src/gallium/drivers/panfrost/pan_assemble.c
src/gallium/drivers/panfrost/pan_context.c
src/gallium/drivers/panfrost/pan_context.h
src/panfrost/util/pan_ir.h