Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc/dev remove shadow framebuffer support, use VC...



details:   https://anonhg.NetBSD.org/src/rev/01f32fb76ff8
branches:  trunk
changeset: 757478:01f32fb76ff8
user:      macallan <macallan%NetBSD.org@localhost>
date:      Tue Aug 31 21:14:57 2010 +0000

description:
remove shadow framebuffer support, use VCONS_DONT_READ instead

diffstat:

 sys/arch/sparc/dev/cgfourteen.c    |  15 +++------------
 sys/arch/sparc/dev/cgfourteenvar.h |  13 ++++++-------
 2 files changed, 9 insertions(+), 19 deletions(-)

diffs (73 lines):

diff -r 088e8ecb0823 -r 01f32fb76ff8 sys/arch/sparc/dev/cgfourteen.c
--- a/sys/arch/sparc/dev/cgfourteen.c   Tue Aug 31 19:08:50 2010 +0000
+++ b/sys/arch/sparc/dev/cgfourteen.c   Tue Aug 31 21:14:57 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cgfourteen.c,v 1.64 2010/06/10 13:21:13 macallan Exp $ */
+/*     $NetBSD: cgfourteen.c,v 1.65 2010/08/31 21:14:57 macallan Exp $ */
 
 /*
  * Copyright (c) 1996
@@ -366,8 +366,6 @@
                sc->sc_fb.fb_pixels = (void *)fbva[1];
        }
 
-       sc->sc_shadowfb = kmem_alloc(ramsize, KM_NOSLEEP);
-
        if (isconsole)
                printf(" (console)\n");
        else
@@ -785,10 +783,6 @@
                memset(sc->sc_fb.fb_pixels,
                       (defattr >> 16) & 0xff,
                       ri->ri_stride * ri->ri_height);
-               if (sc->sc_shadowfb != NULL)
-                       memset(sc->sc_shadowfb,
-                              (defattr >> 16) & 0xff,
-                              ri->ri_stride * ri->ri_height);
                sc->sc_console_screen.scr_flags |= VCONS_SCREEN_IS_STATIC;
 
                sc->sc_defaultscreen_descr.textops = &ri->ri_ops;
@@ -1019,11 +1013,8 @@
        ri->ri_stride = ri->ri_width;
        ri->ri_flg = RI_CENTER | RI_FULLCLEAR;
 
-       if (sc->sc_shadowfb != NULL) {
-               ri->ri_bits = sc->sc_shadowfb;
-               ri->ri_hwbits = (char *)sc->sc_fb.fb_pixels;
-       } else 
-               ri->ri_bits = (char *)sc->sc_fb.fb_pixels;
+       ri->ri_bits = (char *)sc->sc_fb.fb_pixels;
+       scr->scr_flags |= VCONS_DONT_READ;
 
        if (existing) {
                ri->ri_flg |= RI_CLEAR;
diff -r 088e8ecb0823 -r 01f32fb76ff8 sys/arch/sparc/dev/cgfourteenvar.h
--- a/sys/arch/sparc/dev/cgfourteenvar.h        Tue Aug 31 19:08:50 2010 +0000
+++ b/sys/arch/sparc/dev/cgfourteenvar.h        Tue Aug 31 21:14:57 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cgfourteenvar.h,v 1.12 2010/06/10 13:21:13 macallan Exp $ */
+/*     $NetBSD: cgfourteenvar.h,v 1.13 2010/08/31 21:14:57 macallan Exp $ */
 
 /*
  * Copyright (c) 1996
@@ -87,15 +87,14 @@
        struct  cg14_cursor sc_cursor;  /* Hardware cursor state */
        union   cg14cmap sc_saveclut;   /* a place to stash PROM state */
        size_t  sc_vramsize;
+       int     sc_depth;       /* current colour depth */
 #if NWSDISPLAY > 0
        struct  vcons_data sc_vd;
-       struct vcons_screen sc_console_screen;
-       struct wsscreen_descr sc_defaultscreen_descr;
+       struct  vcons_screen sc_console_screen;
+       struct  wsscreen_descr sc_defaultscreen_descr;
        const struct wsscreen_descr *sc_screens[1];
-       struct wsscreen_list sc_screenlist;
-       void *sc_shadowfb;
-       int sc_mode;    /* wsdisplay mode - EMUL, DUMB etc. */
-       int sc_depth;   /* current colour depth */
+       struct  wsscreen_list sc_screenlist;
+       int     sc_mode;        /* wsdisplay mode - EMUL, DUMB etc. */
 #endif
 
        uint8_t sc_savexlut[256];



Home | Main Index | Thread Index | Old Index