diff options
author | Marek Olšák <[email protected]> | 2016-11-26 15:43:39 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2016-11-29 23:52:31 +0100 |
commit | ff50c44a5fb4411715da828af5b8706c8a456d26 (patch) | |
tree | d8f82e8192b69c11e38303631a0104da36b951c4 /src/gallium/drivers | |
parent | 87b208a54e67b6b01845efa2ec20a96963399920 (diff) |
radeonsi: set CB_BLEND1_CONTROL.ENABLE for dual source blending
copied from Vulkan
Cc: 13.0 <[email protected]>
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c index 47b1148b493..911e979a4fb 100644 --- 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; } |