Mesa (master): i965g: fix invalid assertion in emit_xpd(), again

Brian Paul brianp at kemper.freedesktop.org
Wed Jan 6 06:18:49 PST 2010


Module: Mesa
Branch: master
Commit: 1b5476a353d9772fe86d02f0a733a55f9cf0ea76
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1b5476a353d9772fe86d02f0a733a55f9cf0ea76

Author: Brian Paul <brianp at vmware.com>
Date:   Wed Jan  6 07:17:48 2010 -0700

i965g: fix invalid assertion in emit_xpd(), again

---

 src/gallium/drivers/i965/brw_wm_emit.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/i965/brw_wm_emit.c b/src/gallium/drivers/i965/brw_wm_emit.c
index 3d162a6..8f983a6 100644
--- a/src/gallium/drivers/i965/brw_wm_emit.c
+++ b/src/gallium/drivers/i965/brw_wm_emit.c
@@ -691,7 +691,7 @@ static void emit_xpd( struct brw_compile *p,
 {
    GLuint i;
 
-   assert(!(mask & BRW_WRITEMASK_W) == BRW_WRITEMASK_W);
+   assert((mask & BRW_WRITEMASK_W) != BRW_WRITEMASK_W);
    
    for (i = 0 ; i < 3; i++) {
       if (mask & (1<<i)) {



More information about the mesa-commit mailing list