Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci explicitly turn off tiling translation - now sof...



details:   https://anonhg.NetBSD.org/src/rev/46db4f8b33ae
branches:  trunk
changeset: 362580:46db4f8b33ae
user:      macallan <macallan%NetBSD.org@localhost>
date:      Sat Jun 16 01:25:23 2018 +0000

description:
explicitly turn off tiling translation - now software rendered characters
look right again on r3xx hardware

diffstat:

 sys/dev/pci/radeonfb.c |  10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diffs (31 lines):

diff -r c9bf4d2afdb2 -r 46db4f8b33ae sys/dev/pci/radeonfb.c
--- a/sys/dev/pci/radeonfb.c    Sat Jun 16 00:40:14 2018 +0000
+++ b/sys/dev/pci/radeonfb.c    Sat Jun 16 01:25:23 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: radeonfb.c,v 1.97 2018/06/15 21:22:35 macallan Exp $ */
+/*     $NetBSD: radeonfb.c,v 1.98 2018/06/16 01:25:23 macallan Exp $ */
 
 /*-
  * Copyright (c) 2006 Itronix Inc.
@@ -70,7 +70,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: radeonfb.c,v 1.97 2018/06/15 21:22:35 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: radeonfb.c,v 1.98 2018/06/16 01:25:23 macallan Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -2226,7 +2226,11 @@
        PUT32(sc, RADEON_GEN_INT_CNTL, 0);
        PUT32(sc, RADEON_CAP0_TRIG_CNTL, 0);
        PUT32(sc, RADEON_CAP1_TRIG_CNTL, 0);
-       PUT32(sc, RADEON_SURFACE_CNTL, 0);
+       /*
+        * Apple OF hands us R3xx radeons with tiling enabled - explicitly
+        * disable it here
+        */
+       PUT32(sc, RADEON_SURFACE_CNTL, RADEON_SURF_TRANSLATION_DIS);
 
        for (i = 0; i < dp->rd_ncrtcs; i++)
                radeonfb_setcrtc(dp, i);



Home | Main Index | Thread Index | Old Index