summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland Scheidegger <sroland@tungstengraphics.com>2009-06-28 17:00:20 -0400
committerAlex Deucher <alexdeucher@gmail.com>2009-06-28 17:00:20 -0400
commit645a0a0a6e5e57a4bb77c3b9c7d20b58d4c9ec28 (patch)
treedc49f0c412ffd514d07ddd8c1741be9a7ffedde9
parentafc94a3b398340768e9e6aac07a1609e8302dd84 (diff)
R6xx/R7xx: fix pixel centers
Make sure we are using GL mode (centers at 0.5) rather than D3D mode (centers at 0.0). This also fixes fdo bug 21963.
-rw-r--r--src/r6xx_accel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/r6xx_accel.c b/src/r6xx_accel.c
index 5ea6a35..adf52f2 100644
--- a/src/r6xx_accel.c
+++ b/src/r6xx_accel.c
@@ -1023,7 +1023,7 @@ set_default_state(ScrnInfoPtr pScrn, drmBufPtr ib)
EREG(ib, PA_SU_POLY_OFFSET_FRONT_OFFSET, 0);
EREG(ib, PA_SU_LINE_CNTL, (8 << PA_SU_LINE_CNTL__WIDTH_shift)); /* Line width 1 pixel */
- EREG(ib, PA_SU_VTX_CNTL, ((2 << PA_SU_VTX_CNTL__ROUND_MODE_shift) |
+ EREG(ib, PA_SU_VTX_CNTL, ((2 << PA_SU_VTX_CNTL__ROUND_MODE_shift) | PIX_CENTER_bit |
(5 << QUANT_MODE_shift))); /* Round to Even, fixed point 1/256 */
EREG(ib, PA_SU_POLY_OFFSET_CLAMP, 0);