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/r600_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/r600_state.c')
-rw-r--r-- | src/gallium/drivers/r600/r600_state.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/r600_state.c b/src/gallium/drivers/r600/r600_state.c index 006bb629d60..6139bd2f05e 100644 --- a/src/gallium/drivers/r600/r600_state.c +++ b/src/gallium/drivers/r600/r600_state.c @@ -1337,7 +1337,7 @@ static void r600_emit_framebuffer_state(struct r600_context *rctx, struct r600_a radeon_emit(cs, cb[i] ? cb[i]->cb_color_info : 0); } /* set CB_COLOR1_INFO for possible dual-src blending */ - if (i == 1 && cb[0]) { + if (rctx->framebuffer.dual_src_blend && i == 1 && cb[0]) { radeon_emit(cs, cb[0]->cb_color_info); i++; } |