From c618f5bae4b3db7283aa6244b2204c584f465d1d Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Sat, 28 Jun 2003 14:26:18 +0000 Subject: Add RI_FULLCLEAR to the rasops flags. Accelerated drivers (cgsix, creator, pnozz) benefit from this, and this does not hurt the other drivers. --- sys/arch/sparc/dev/fb.c | 4 ++-- sys/arch/sparc64/dev/fb.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/arch') 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; -- cgit v1.2.3