projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87b208a
)
radeonsi: set CB_BLEND1_CONTROL.ENABLE for dual source blending
author
Marek Olšák
<marek.olsak@amd.com>
Sat, 26 Nov 2016 14:43:39 +0000
(15:43 +0100)
committer
Marek Olšák
<marek.olsak@amd.com>
Tue, 29 Nov 2016 22:52:31 +0000
(23:52 +0100)
copied from Vulkan
Cc: 13.0 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/si_state.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/radeonsi/si_state.c
b/src/gallium/drivers/radeonsi/si_state.c
index 47b1148b493f8c4fc7b7ef9eb13f3d8952149013..911e979a4fb77ee10bb089b8aa628d7d6b82a631 100644
(file)
--- a/
src/gallium/drivers/radeonsi/si_state.c
+++ b/
src/gallium/drivers/radeonsi/si_state.c
@@
-454,6
+454,10
@@
static void *si_create_blend_state_mode(struct pipe_context *ctx,
/* Only set dual source blending for MRT0 to avoid a hang. */
if (i >= 1 && blend->dual_src_blend) {
+ /* Vulkan does this for dual source blending. */
+ if (i == 1)
+ blend_cntl |= S_028780_ENABLE(1);
+
si_pm4_set_reg(pm4, R_028780_CB_BLEND0_CONTROL + i * 4, blend_cntl);
continue;
}