Mesa (i965g-restart): i965g: correct sense of writedisable flags

Keith Whitwell keithw at kemper.freedesktop.org
Fri Nov 6 07:36:05 UTC 2009


Module: Mesa
Branch: i965g-restart
Commit: 8f0e51be4784273baef692583940964bc04b78ef
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8f0e51be4784273baef692583940964bc04b78ef

Author: Keith Whitwell <keithw at vmware.com>
Date:   Thu Nov  5 19:57:59 2009 +0000

i965g: correct sense of writedisable flags

---

 src/gallium/drivers/i965/brw_pipe_blend.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/gallium/drivers/i965/brw_pipe_blend.c b/src/gallium/drivers/i965/brw_pipe_blend.c
index f6da925..8721512 100644
--- a/src/gallium/drivers/i965/brw_pipe_blend.c
+++ b/src/gallium/drivers/i965/brw_pipe_blend.c
@@ -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;
 }




More information about the mesa-commit mailing list