mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 20:08:06 +02:00
i965g: correct sense of writedisable flags
This commit is contained in:
parent
b229ee342f
commit
8f0e51be47
1 changed files with 4 additions and 4 deletions
|
|
@ -146,10 +146,10 @@ static void *brw_create_blend_state( struct pipe_context *pipe,
|
|||
|
||||
/* Per-surface color mask -- just follow global state:
|
||||
*/
|
||||
blend->ss0.writedisable_red = (templ->colormask & PIPE_MASK_R) ? 1 : 0;
|
||||
blend->ss0.writedisable_green = (templ->colormask & PIPE_MASK_G) ? 1 : 0;
|
||||
blend->ss0.writedisable_blue = (templ->colormask & PIPE_MASK_B) ? 1 : 0;
|
||||
blend->ss0.writedisable_alpha = (templ->colormask & PIPE_MASK_A) ? 1 : 0;
|
||||
blend->ss0.writedisable_red = (templ->colormask & PIPE_MASK_R) ? 0 : 1;
|
||||
blend->ss0.writedisable_green = (templ->colormask & PIPE_MASK_G) ? 0 : 1;
|
||||
blend->ss0.writedisable_blue = (templ->colormask & PIPE_MASK_B) ? 0 : 1;
|
||||
blend->ss0.writedisable_alpha = (templ->colormask & PIPE_MASK_A) ? 0 : 1;
|
||||
|
||||
return (void *)blend;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue