mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 12:30:09 +01:00
radeonsi: don't enable blending if colormask == 0
most likely useless, but doesn't hurt Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
dac2964f3e
commit
0446ea9d08
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue