diff options
author | Dave Airlie <[email protected]> | 2016-01-26 13:35:08 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2017-03-15 14:32:44 +1000 |
commit | cf2af021b9baf459edf522253f65aa4d4abc10f8 (patch) | |
tree | 946f522b0b535206cbef6d20fe50713fcf305baa /src/gallium/drivers/r600/evergreen_state.c | |
parent | d142c7436cfb23fcab5bb9a68ac46c883a758d86 (diff) |
r600g: make framebuffer atom rely on dual src blend state.
In order to make ARB_shader_image_load_store, we have to share
the CB space with RATs, so we should only steal the dual src
space if we have dual src enabled.
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/evergreen_state.c')
-rw-r--r-- | src/gallium/drivers/r600/evergreen_state.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/evergreen_state.c b/src/gallium/drivers/r600/evergreen_state.c index c5dd9f71dd9..5ffe6e8996f 100644 --- a/src/gallium/drivers/r600/evergreen_state.c +++ b/src/gallium/drivers/r600/evergreen_state.c @@ -1584,7 +1584,7 @@ static void evergreen_emit_framebuffer_state(struct r600_context *rctx, struct r radeon_emit(cs, reloc); } /* set CB_COLOR1_INFO for possible dual-src blending */ - if (i == 1 && state->cbufs[0]) { + if (rctx->framebuffer.dual_src_blend && i == 1 && state->cbufs[0]) { radeon_set_context_reg(cs, R_028C70_CB_COLOR0_INFO + 1 * 0x3C, cb->cb_color_info | tex->cb_color_info); i++; |