[i965] fix wpos height 1 pixel higher

This commit is contained in:
Zou Nan hai
2008-03-17 16:39:10 +08:00
parent 98e13fecd0
commit b0f681b458
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -145,7 +145,7 @@ static void emit_wpos_xy(struct brw_wm_compile *c,
brw_ADD(p,
dst[1],
negate(retype(arg0[1], BRW_REGISTER_TYPE_W)),
brw_imm_d(c->key.origin_y + c->key.drawable_height));
brw_imm_d(c->key.origin_y + c->key.drawable_height - 1));
}
}
+1 -1
View File
@@ -986,7 +986,7 @@ static void emit_wpos_xy(struct brw_wm_compile *c,
brw_ADD(p,
dst[1],
negate(retype(src0[1], BRW_REGISTER_TYPE_W)),
brw_imm_d(c->key.origin_y + c->key.drawable_height));
brw_imm_d(c->key.origin_y + c->key.drawable_height - 1));
}
}