summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2003-06-28 14:26:16 +0000
committermiod <miod@openbsd.org>2003-06-28 14:26:16 +0000
commit3f6b53d521437b491aa51dfb0449944d51ef3465 (patch)
treec399c49db973f03ebc3172275ac5c3385a69b664
parentuse .Bk/.Ek to align the options in SYNOPSIS; (diff)
downloadwireguard-openbsd-3f6b53d521437b491aa51dfb0449944d51ef3465.tar.xz
wireguard-openbsd-3f6b53d521437b491aa51dfb0449944d51ef3465.zip
Add RI_FULLCLEAR to the rasops flags. Accelerated drivers (cgsix, creator,
pnozz) benefit from this, and this does not hurt the other drivers.
-rw-r--r--sys/arch/sparc/dev/fb.c4
-rw-r--r--sys/arch/sparc64/dev/fb.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/sparc/dev/fb.c b/sys/arch/sparc/dev/fb.c
index be3fe45602d..07a27db4c2e 100644
--- a/sys/arch/sparc/dev/fb.c
+++ b/sys/arch/sparc/dev/fb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fb.c,v 1.24 2003/06/02 23:27:54 millert Exp $ */
+/* $OpenBSD: fb.c,v 1.25 2003/06/28 14:26:16 miod Exp $ */
/* $NetBSD: fb.c,v 1.23 1997/07/07 23:30:22 pk Exp $ */
/*
@@ -309,7 +309,7 @@ fbwscons_init(sf, isconsole)
int cols, rows;
/* ri_hw and ri_bits must have already been setup by caller */
- sf->sf_ro.ri_flg = RI_CENTER;
+ sf->sf_ro.ri_flg = RI_CENTER | RI_FULLCLEAR;
if (!isconsole)
sf->sf_ro.ri_flg |= RI_CLEAR;
sf->sf_ro.ri_depth = sf->sf_depth;
diff --git a/sys/arch/sparc64/dev/fb.c b/sys/arch/sparc64/dev/fb.c
index c3a16df3b7c..b0fdacf7079 100644
--- a/sys/arch/sparc64/dev/fb.c
+++ b/sys/arch/sparc64/dev/fb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fb.c,v 1.2 2003/06/17 17:35:40 miod Exp $ */
+/* $OpenBSD: fb.c,v 1.3 2003/06/28 14:26:17 miod Exp $ */
/* $NetBSD: fb.c,v 1.23 1997/07/07 23:30:22 pk Exp $ */
/*
@@ -149,7 +149,7 @@ fbwscons_init(struct sunfb *sf, int flags)
int cols, rows;
/* ri_hw and ri_bits must have already been setup by caller */
- sf->sf_ro.ri_flg = RI_CENTER | flags;
+ sf->sf_ro.ri_flg = RI_CENTER | RI_FULLCLEAR | flags;
sf->sf_ro.ri_depth = sf->sf_depth;
sf->sf_ro.ri_stride = sf->sf_linebytes;
sf->sf_ro.ri_width = sf->sf_width;