summaryrefslogtreecommitdiff
path: root/src/i830_rotate.c
diff options
context:
space:
mode:
authorAlan Hourihane <alanh@fairlite.demon.co.uk>2006-06-13 21:42:53 +0100
committerAlan Hourihane <alanh@fairlite.demon.co.uk>2006-06-13 21:42:53 +0100
commit3592b432b48d51d2273c1e1064f85e656fbba130 (patch)
tree016f5d584a9fca0ad7a78f5f71ff5db81f47aeea /src/i830_rotate.c
parenta50610b7719bfe800c3496c17d0ba77739167b35 (diff)
fix 8bpp & 16bpp rotation modes for i8xx
series chips
Diffstat (limited to 'src/i830_rotate.c')
-rw-r--r--src/i830_rotate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/i830_rotate.c b/src/i830_rotate.c
index e4a80645..4d7237f7 100644
--- a/src/i830_rotate.c
+++ b/src/i830_rotate.c
@@ -574,9 +574,9 @@ I830UpdateRotate (ScreenPtr pScreen,
OUT_RING(pI8301->RotatedMem2.Start | use_fence);
if (pI830->cpp == 1)
- OUT_RING(0x00 | (pScreen->height - 1) << 21 | (pScreen->width - 1) << 10);
- else if (pI830->cpp == 2)
OUT_RING(0x40 | (pScreen->height - 1) << 21 | (pScreen->width - 1) << 10);
+ else if (pI830->cpp == 2)
+ OUT_RING(0x80 | (pScreen->height - 1) << 21 | (pScreen->width - 1) << 10);
else
OUT_RING(0xc0 | (pScreen->height - 1) << 21 | (pScreen->width - 1) << 10);