From: Marek Olšák Date: Fri, 15 Jan 2016 11:59:48 +0000 (+0100) Subject: radeonsi: don't enable blending if colormask == 0 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0446ea9d084f5e72f7ea23f806a9723c94dd3685;p=mesa.git radeonsi: don't enable blending if colormask == 0 most likely useless, but doesn't hurt Reviewed-by: Nicolai Hähnle --- 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);