summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2016-01-15 12:59:48 +0100
committerMarek Olšák <[email protected]>2016-01-22 15:02:40 +0100
commit0446ea9d084f5e72f7ea23f806a9723c94dd3685 (patch)
tree70c7b6da46f1234465527b4b67c7bd52bfb73781 /src/gallium
parentdac2964f3ebd96d5ac227984ab0cd79c2c3b2a1a (diff)
radeonsi: don't enable blending if colormask == 0
most likely useless, but doesn't hurt Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/radeonsi/si_state.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c
index 2a6d2c6ff36..ea441acb1b0 100644
--- a/src/gallium/drivers/radeonsi/si_state.c
+++ b/src/gallium/drivers/radeonsi/si_state.c
@@ -433,6 +433,9 @@ static void *si_create_blend_state_mode(struct pipe_context *ctx,
unsigned blend_cntl = 0;
+ if (!state->rt[j].colormask)
+ continue;
+
/* we pretend 8 buffer are used, CB_SHADER_MASK will disable unused one */
blend->cb_target_mask |= state->rt[j].colormask << (4 * i);