[965] Fix negating of unsigned value in emit_wpos_xy.
authorMichal Wajdeczko <Michal.Wajdeczko@intel.com>
Fri, 21 Mar 2008 20:43:44 +0000 (13:43 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 21 Mar 2008 21:19:30 +0000 (14:19 -0700)
src/mesa/drivers/dri/i965/brw_wm_emit.c

index 83a0d12d9061625afc09795a9ef81806472296f8..0000edda8434b0be0c91d1b27deb9d2f74d4387f 100644 (file)
@@ -137,7 +137,7 @@ static void emit_wpos_xy(struct brw_wm_compile *c,
       brw_ADD(p,
              dst[0],
              retype(arg0[0], BRW_REGISTER_TYPE_W),
-             brw_imm_d(- c->key.origin_x));
+             brw_imm_d(- c->key.origin_x));
    }
 
    if (mask & WRITEMASK_Y) {