Hi,
attached patch fixes a problem with dashed lines on Radeon/PPC/Linux(which for
example fixes the wrong pattern on the gnome logout screen). It's
basically stolen from the r128 driver. I have 0% knowledge about the
radeon, does this look correct?
-- Guido
--- xc/programs/Xserver/hw/xfree86/drivers/ati/radeon_accel.c Wed Mar 20 13:51:24
2002
+++ xc/programs/Xserver/hw/xfree86/drivers/ati/radeon_accel.c.orig Wed Mar 20
+13:51:08 2002
@@ -605,17 +605,11 @@
unsigned char *RADEONMMIO = info->MMIO;
CARD32 pat = *(CARD32 *)(pointer)pattern;
-#if X_BYTE_ORDER == X_LITTLE_ENDIAN
-# define PAT_SHIFT(pat,n) pat << n
-#else
-# define PAT_SHIFT(pat,n) pat >> n
-#endif
-
switch (length) {
- case 2: pat |= PAT_SHIFT(pat,2); /* fall through */
- case 4: pat |= PAT_SHIFT(pat,4); /* fall through */
- case 8: pat |= PAT_SHIFT(pat,8); /* fall through */
- case 16: pat |= PAT_SHIFT(pat,16);
+ case 2: pat |= pat << 2; /* fall through */
+ case 4: pat |= pat << 4; /* fall through */
+ case 8: pat |= pat << 8; /* fall through */
+ case 16: pat |= pat << 16;
}
RADEONWaitForFifo(pScrn, 5);