[PATCH] Don't mess with the blender unit on chips that don't have it.

Mark Kettenis mark.kettenis at xs4all.nl
Wed Nov 11 13:47:26 PST 2009


Where your typical x86 machine silently ignores writes to non-existing
registers, UltraSPARC machines generate a bus error.  So we shouldn't write
to the alpha blender setup register on the Imagine 1 and Imagine 2 that don't
seem to have the blender unit.

Signed-off-by: Mark Kettenis <mark.kettenis at xs4all.nl>
---
 src/i128accel.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/i128accel.c b/src/i128accel.c
index 37d6353..6fb8c0f 100644
--- a/src/i128accel.c
+++ b/src/i128accel.c
@@ -508,7 +508,9 @@ I128XaaInit(ScreenPtr pScreen)
 	pI128->mem.rbase_a[PCTRL] = 0x00000000; /* for lines */
 	pI128->mem.rbase_a[CLPTL] = 0x00000000;
 	pI128->mem.rbase_a[CLPBR] = (4095<<16) | 2047 ;
-	pI128->mem.rbase_a[ACNTRL] = 0x00000000;
+	if (pI128->Chipset == PCI_CHIP_I128_T2R ||
+	    pI128->Chipset == PCI_CHIP_I128_T2R4)
+		pI128->mem.rbase_a[ACNTRL] = 0x00000000;
 	pI128->mem.rbase_a[INTM] = 0x03;
 
 	if (pI128->Debug) {
-- 
1.6.3.2



More information about the xorg-devel mailing list