diff options
author | Roland Scheidegger <sroland@tungstengraphics.com> | 2009-06-28 16:54:32 -0400 |
---|---|---|
committer | Alex Deucher <alexdeucher@gmail.com> | 2009-06-28 16:58:38 -0400 |
commit | d75287b84e830a655f17060de8fea55777b6db55 (patch) | |
tree | b91d9702f22248fafa85302a5ec145eb79b4076c | |
parent | 2ba11f922321076027f0a08ec5bd079871ae73f8 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/r6xx_accel.c b/src/r6xx_accel.c index e9741cd6..65834bfe 100644 --- a/src/r6xx_accel.c +++ b/src/r6xx_accel.c @@ -974,7 +974,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); |