aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2020-05-15 12:19:22 -0400
committerMarge Bot <[email protected]>2020-05-22 18:05:14 +0000
commitf7cf5a30c747e83ef728142e472c341a01f19a70 (patch)
tree3accc74686b9f51edb67fdce4aaa9e266810a09e /src
parentf9283eff6d16174f3efc1da81dcdb601af2ec170 (diff)
panfrost: Handle !independent_blend for blend shaders
Fixes MRT blending. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5153>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/panfrost/pan_blend_shaders.c3
1 files changed, 3 insertions, 0 deletions
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 = {