nir/lower_blend: Don't lower RTs whose format is set to NONE
authorBoris Brezillon <boris.brezillon@collabora.com>
Thu, 10 Jun 2021 14:29:34 +0000 (16:29 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Thu, 30 Sep 2021 14:54:42 +0000 (16:54 +0200)
commit15b4cab4d5f70e86a66c52a865cdfcbcc3a7a570
treed8bd8e498c665f891db480288957e2473e4d114e
parent637cd5ac005cd3604f3aa64d920354bbe41c0660
nir/lower_blend: Don't lower RTs whose format is set to NONE

The caller doesn't necessarily want to lower blend operations on all
render targets since some of them might be supported natively (panvk
will be in that case). Let's just skip RTs that have a format set to
PIPE_FORMAT_NONE to allow that.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13060>
src/compiler/nir/nir_lower_blend.c