panfrost: Make alpha=0 NOP / 1 store Bifrost only
authorAlyssa Rosenzweig <alyssa@collabora.com>
Thu, 7 Apr 2022 14:27:34 +0000 (10:27 -0400)
committerMarge Bot <emma+marge@anholt.net>
Thu, 7 Apr 2022 15:11:04 +0000 (15:11 +0000)
These fields were removed in Valhall in favour of a simpler overdraw mechanism.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15795>

src/gallium/drivers/panfrost/pan_cmdstream.c

index dc87f68..94ac319 100644 (file)
@@ -361,10 +361,12 @@ panfrost_emit_blend(struct panfrost_batch *batch, void *rts, mali_ptr *blend_sha
                                         fs->info.bifrost.blend[i].format;
                                 cfg.fixed_function.rt = i;
 
+#if PAN_ARCH <= 7
                                 if (!info.opaque) {
                                         cfg.fixed_function.alpha_zero_nop = info.alpha_zero_nop;
                                         cfg.fixed_function.alpha_one_store = info.alpha_one_store;
                                 }
+#endif
                         }
                 }
 #endif