From dd735bcb698d053c33c311d9cc382068efa4e54a Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Thu, 7 Apr 2022 10:27:34 -0400 Subject: [PATCH] panfrost: Make alpha=0 NOP / 1 store Bifrost only These fields were removed in Valhall in favour of a simpler overdraw mechanism. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/gallium/drivers/panfrost/pan_cmdstream.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/panfrost/pan_cmdstream.c b/src/gallium/drivers/panfrost/pan_cmdstream.c index dc87f682e18..94ac319f833 100644 --- a/src/gallium/drivers/panfrost/pan_cmdstream.c +++ b/src/gallium/drivers/panfrost/pan_cmdstream.c @@ -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