diff options
author | Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> | 2020-05-26 18:50:29 -0400 |
---|---|---|
committer | Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> | 2020-05-27 16:49:43 -0400 |
commit | e3692fd53ee48cd4019bc1822f044d1ffd1ad08f (patch) | |
tree | a1b2e15c7d2387ffe746c7855a1b8f72f3c86674 | |
parent | 3d6cc14513c1032ff8b24b378354aa7fdb99c6fe (diff) |
panfrost: Set unk2 to accomodate blending
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5232>
-rw-r--r-- | src/gallium/drivers/panfrost/pan_cmdstream.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gallium/drivers/panfrost/pan_cmdstream.c b/src/gallium/drivers/panfrost/pan_cmdstream.c index d640cc7d327..733351eee23 100644 --- a/src/gallium/drivers/panfrost/pan_cmdstream.c +++ b/src/gallium/drivers/panfrost/pan_cmdstream.c @@ -770,7 +770,12 @@ panfrost_frag_meta_blend_update(struct panfrost_context *ctx, brts[i].constant = blend[i].equation.constant; brts[i].format = panfrost_format_to_bifrost_blend(format_desc); - brts[i].unk2 = 0x19; + + /* 0x19 disables blending and forces REPLACE + * mode (equivalent to rgb_mode = alpha_mode = + * x122, colour mask = 0xF). 0x1a allows + * blending. */ + brts[i].unk2 = blend[i].no_blending ? 0x19 : 0x1a; brts[i].shader_type = fs->blend_types[i]; } else { |