aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/r600/r700_state.c
diff options
context:
space:
mode:
authorAlex Deucher <[email protected]>2009-05-29 10:04:03 -0400
committerAlex Deucher <[email protected]>2009-05-29 10:04:03 -0400
commit9b10d19d4a3820958c4bd7d5c8fb7eaf1ef3fce0 (patch)
tree4571b48241f892e70b24a7bd04ae05f6e5e79e3e /src/mesa/drivers/dri/r600/r700_state.c
parent7f022fb5cd282826dac37b7ac0c02f551b6f5f98 (diff)
Remove subpixel offset from viewport
remove subpixel offset inherited from r100 code. based on 038f0bf5916df5bae1145d234589e5fd528bb7fa
Diffstat (limited to 'src/mesa/drivers/dri/r600/r700_state.c')
-rw-r--r--src/mesa/drivers/dri/r600/r700_state.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/mesa/drivers/dri/r600/r700_state.c b/src/mesa/drivers/dri/r600/r700_state.c
index d45580178da..e3e78df16c2 100644
--- a/src/mesa/drivers/dri/r600/r700_state.c
+++ b/src/mesa/drivers/dri/r600/r700_state.c
@@ -482,9 +482,6 @@ static void r700StencilOpSeparate(GLcontext * ctx, GLenum face,
{
}
-#define SUBPIXEL_X 0.125
-#define SUBPIXEL_Y 0.125
-
static void r700Viewport(GLcontext * ctx,
GLint x,
GLint y,
@@ -520,9 +517,9 @@ static void r700Viewport(GLcontext * ctx,
}
sx = v[MAT_SX];
- tx = v[MAT_TX] + xoffset + SUBPIXEL_X;
+ tx = v[MAT_TX] + xoffset;
sy = -v[MAT_SY];
- ty = (-v[MAT_TY]) + yoffset + SUBPIXEL_Y;
+ ty = (-v[MAT_TY]) + yoffset;
sz = v[MAT_SZ] * scale;
tz = v[MAT_TZ] * scale;