From e4592d5651d297f9df2da7a2da47db2087dc627b Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Fri, 4 Jun 2021 14:43:10 -0400 Subject: [PATCH] panfrost: Simplify Midgard blend disable Probably a bit faster too. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/gallium/drivers/panfrost/pan_cmdstream.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/gallium/drivers/panfrost/pan_cmdstream.c b/src/gallium/drivers/panfrost/pan_cmdstream.c index 02861b60874..f4628dc9f8b 100644 --- a/src/gallium/drivers/panfrost/pan_cmdstream.c +++ b/src/gallium/drivers/panfrost/pan_cmdstream.c @@ -396,13 +396,7 @@ panfrost_emit_midgard_blend(struct panfrost_batch *batch, /* Disable blending for unbacked render targets */ if (rt_count == 0 || !batch->key.cbufs[i]) { pan_pack(packed, BLEND, cfg) { - cfg.midgard.equation.color_mask = 0xf; - cfg.midgard.equation.rgb.a = MALI_BLEND_OPERAND_A_SRC; - cfg.midgard.equation.rgb.b = MALI_BLEND_OPERAND_B_SRC; - cfg.midgard.equation.rgb.c = MALI_BLEND_OPERAND_C_ZERO; - cfg.midgard.equation.alpha.a = MALI_BLEND_OPERAND_A_SRC; - cfg.midgard.equation.alpha.b = MALI_BLEND_OPERAND_B_SRC; - cfg.midgard.equation.alpha.c = MALI_BLEND_OPERAND_C_ZERO; + cfg.enable = false; } continue;