summaryrefslogtreecommitdiff
path: root/sys/dev/sun
diff options
context:
space:
mode:
authorjdc <jdc@NetBSD.org>2008-12-29 14:42:15 +0000
committerjdc <jdc@NetBSD.org>2008-12-29 14:42:15 +0000
commiteebd19f78ddc58ad370d8d71d0612134580b219e (patch)
tree03a3ceeec6848e16f87b920b503bf187eca9af4b /sys/dev/sun
parent841fb873aa0bed658c4e9efaa885811c8d5bbf12 (diff)
On old chip revisions, clear the screen using rasops when attaching.
Diffstat (limited to 'sys/dev/sun')
-rw-r--r--sys/dev/sun/cgsix.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/sun/cgsix.c b/sys/dev/sun/cgsix.c
index 06d00a95ac0..f1843155762 100644
--- a/sys/dev/sun/cgsix.c
+++ b/sys/dev/sun/cgsix.c
@@ -1,4 +1,4 @@
-/* $NetBSD: cgsix.c,v 1.41 2008/12/22 23:46:22 macallan Exp $ */
+/* $NetBSD: cgsix.c,v 1.42 2008/12/29 14:42:15 jdc Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -78,7 +78,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cgsix.c,v 1.41 2008/12/22 23:46:22 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cgsix.c,v 1.42 2008/12/29 14:42:15 jdc Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1256,6 +1256,9 @@ cgsix_init_screen(void *cookie, struct vcons_screen *scr,
ri->ri_height = sc->sc_height;
ri->ri_stride = sc->sc_stride;
ri->ri_flg = RI_CENTER;
+ /* Use software for initial screen clear on old revisions */
+ if (sc->sc_fhcrev < 2)
+ ri->ri_flg |= RI_CLEAR;
ri->ri_bits = sc->sc_fb.fb_pixels;