projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f022fb
)
Remove subpixel offset from viewport
author
Alex Deucher
<alexdeucher@gmail.com>
Fri, 29 May 2009 14:04:03 +0000
(10:04 -0400)
committer
Alex Deucher
<alexdeucher@gmail.com>
Fri, 29 May 2009 14:04:03 +0000
(10:04 -0400)
remove subpixel offset inherited from r100 code.
based on
038f0bf5916df5bae1145d234589e5fd528bb7fa
src/mesa/drivers/dri/r600/r700_state.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/r600/r700_state.c
b/src/mesa/drivers/dri/r600/r700_state.c
index d45580178da7d62ede5222f9c0e3d75a4cdf8ab9..e3e78df16c2e3a4a0b142311a42ae25f24fac7dd 100644
(file)
--- 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;