Module: Mesa Branch: master Commit: f7cf5a30c747e83ef728142e472c341a01f19a70 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f7cf5a30c747e83ef728142e472c341a01f19a70
Author: Alyssa Rosenzweig <[email protected]> Date: Fri May 15 12:19:22 2020 -0400 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> --- src/gallium/drivers/panfrost/pan_blend_shaders.c | 3 +++ 1 file changed, 3 insertions(+) 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 = { _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
