summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri
diff options
context:
space:
mode:
authorZou Nan hai <nanhai.zou@intel.com>2008-03-17 16:39:10 +0800
committerZou Nan hai <nanhai.zou@intel.com>2008-03-17 16:39:10 +0800
commitb0f681b458ebebab370bbfd2a17699cd851aae8b (patch)
tree000b6241359204ed2d1794f756a6a8e8868975dd /src/mesa/drivers/dri
parent98e13fecd0cb5c13dab0ead424b0f94f318e5a0b (diff)
[i965] fix wpos height 1 pixel higher
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r--src/mesa/drivers/dri/i965/brw_wm_emit.c2
-rw-r--r--src/mesa/drivers/dri/i965/brw_wm_glsl.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_wm_emit.c b/src/mesa/drivers/dri/i965/brw_wm_emit.c
index 4c0bd67c92..83a0d12d90 100644
--- a/src/mesa/drivers/dri/i965/brw_wm_emit.c
+++ b/src/mesa/drivers/dri/i965/brw_wm_emit.c
@@ -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));
}
}
diff --git a/src/mesa/drivers/dri/i965/brw_wm_glsl.c b/src/mesa/drivers/dri/i965/brw_wm_glsl.c
index 5852083882..b2ffc82ed2 100644
--- a/src/mesa/drivers/dri/i965/brw_wm_glsl.c
+++ b/src/mesa/drivers/dri/i965/brw_wm_glsl.c
@@ -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));
}
}