[Mesa-dev] [PATCH 1/7] radeonsi: don't enable blending if colormask == 0
Marek Olšák
maraeo at gmail.com
Tue Jan 19 08:11:20 PST 2016
From: Marek Olšák <marek.olsak at amd.com>
most likely useless, but doesn't hurt
---
src/gallium/drivers/radeonsi/si_state.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c
index 2a6d2c6..ea441ac 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);
--
2.1.4
More information about the mesa-dev
mailing list