diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2002-08-06 03:48:46 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2002-08-06 03:48:46 +0000 |
commit | 628571e3675f8e8bd0a4f1fd8716e886d59de90f (patch) | |
tree | 316b90b91de59d05318b3fa728b4f2ebd92c4ae8 | |
parent | c92bd01038bf47b29de0ee33c21a5ef382c0b35d (diff) |
Set RI_CLEAR if the card isn't the console framebuffer; based on discussion with miod.
-rw-r--r-- | sys/dev/sbus/bwtwo.c | 5 | ||||
-rw-r--r-- | sys/dev/sbus/cgsix.c | 5 | ||||
-rw-r--r-- | sys/dev/sbus/cgthree.c | 5 |
3 files changed, 9 insertions, 6 deletions
diff --git a/sys/dev/sbus/bwtwo.c b/sys/dev/sbus/bwtwo.c index d6583af0324..9ab07a76d29 100644 --- a/sys/dev/sbus/bwtwo.c +++ b/sys/dev/sbus/bwtwo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bwtwo.c,v 1.2 2002/07/25 19:04:46 miod Exp $ */ +/* $OpenBSD: bwtwo.c,v 1.3 2002/08/06 03:48:45 jason Exp $ */ /* * Copyright (c) 2002 Jason L. Wright (jason@thought.net) @@ -245,7 +245,8 @@ bwtwoattach(parent, self, aux) sc->sc_rasops.ri_depth = sc->sc_depth; sc->sc_rasops.ri_stride = sc->sc_linebytes; - sc->sc_rasops.ri_flg = RI_CENTER; + sc->sc_rasops.ri_flg = RI_CENTER | + (console ? 0 : RI_CLEAR); sc->sc_rasops.ri_bits = (void *)bus_space_vaddr(sc->sc_bustag, sc->sc_vid_regs); sc->sc_rasops.ri_width = sc->sc_width; diff --git a/sys/dev/sbus/cgsix.c b/sys/dev/sbus/cgsix.c index 01ce615c433..4417b5f93f7 100644 --- a/sys/dev/sbus/cgsix.c +++ b/sys/dev/sbus/cgsix.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cgsix.c,v 1.28 2002/08/05 22:12:32 miod Exp $ */ +/* $OpenBSD: cgsix.c,v 1.29 2002/08/06 03:48:45 jason Exp $ */ /* * Copyright (c) 2001 Jason L. Wright (jason@thought.net) @@ -233,7 +233,8 @@ cgsixattach(parent, self, aux) sc->sc_rasops.ri_depth = sc->sc_depth; sc->sc_rasops.ri_stride = sc->sc_linebytes; - sc->sc_rasops.ri_flg = RI_CENTER; + sc->sc_rasops.ri_flg = RI_CENTER | + (console ? 0 : RI_CLEAR); sc->sc_rasops.ri_bits = (void *)bus_space_vaddr(sc->sc_bustag, sc->sc_vid_regs); sc->sc_rasops.ri_width = sc->sc_width; diff --git a/sys/dev/sbus/cgthree.c b/sys/dev/sbus/cgthree.c index a727217d455..00dc7cfbd0e 100644 --- a/sys/dev/sbus/cgthree.c +++ b/sys/dev/sbus/cgthree.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cgthree.c,v 1.21 2002/08/02 16:13:07 millert Exp $ */ +/* $OpenBSD: cgthree.c,v 1.22 2002/08/06 03:48:45 jason Exp $ */ /* * Copyright (c) 2001 Jason L. Wright (jason@thought.net) @@ -287,7 +287,8 @@ cgthreeattach(parent, self, aux) sc->sc_rasops.ri_depth = sc->sc_depth; sc->sc_rasops.ri_stride = sc->sc_linebytes; - sc->sc_rasops.ri_flg = RI_CENTER; + sc->sc_rasops.ri_flg = RI_CENTER | + (console ? 0 : RI_CLEAR); sc->sc_rasops.ri_bits = (void *)bus_space_vaddr(sc->sc_bustag, sc->sc_vid_regs); sc->sc_rasops.ri_width = sc->sc_width; |