From: Alyssa Rosenzweig Date: Fri, 15 May 2020 16:19:22 +0000 (-0400) Subject: panfrost: Handle !independent_blend for blend shaders X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f7cf5a30c747e83ef728142e472c341a01f19a70;p=mesa.git panfrost: Handle !independent_blend for blend shaders Fixes MRT blending. Signed-off-by: Alyssa Rosenzweig Part-of: --- diff --git a/src/gallium/drivers/panfrost/pan_blend_shaders.c b/src/gallium/drivers/panfrost/pan_blend_shaders.c index a639e66c1cb..079080879a9 100644 --- a/src/gallium/drivers/panfrost/pan_blend_shaders.c +++ b/src/gallium/drivers/panfrost/pan_blend_shaders.c @@ -85,6 +85,9 @@ nir_make_options(const struct pipe_blend_state *blend, unsigned i) options.logicop_enable = false; + if (!blend->independent_blend_enable) + i = 0; + /* If blend is disabled, we just use replace mode */ nir_lower_blend_channel rgb = {