Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/wsfb Revert rev 1.75; do not set WSFB_VRAM_IS_RAM fl...



details:   https://anonhg.NetBSD.org/src/rev/ff72cac648ba
branches:  trunk
changeset: 944989:ff72cac648ba
user:      rin <rin%NetBSD.org@localhost>
date:      Sun Oct 18 12:47:37 2020 +0000

description:
Revert rev 1.75; do not set WSFB_VRAM_IS_RAM flag bit. It indicates
memory type obtained by mmap. I just misunderstood its intention.

Thanks to jmcneill for pointing it out!

diffstat:

 sys/dev/wsfb/genfb.c |  11 +++--------
 1 files changed, 3 insertions(+), 8 deletions(-)

diffs (32 lines):

diff -r 61bfb648640a -r ff72cac648ba sys/dev/wsfb/genfb.c
--- a/sys/dev/wsfb/genfb.c      Sun Oct 18 12:36:43 2020 +0000
+++ b/sys/dev/wsfb/genfb.c      Sun Oct 18 12:47:37 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: genfb.c,v 1.76 2020/10/18 12:00:12 rin Exp $ */
+/*     $NetBSD: genfb.c,v 1.77 2020/10/18 12:47:37 rin Exp $ */
 
 /*-
  * Copyright (c) 2007 Michael Lorenz
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: genfb.c,v 1.76 2020/10/18 12:00:12 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: genfb.c,v 1.77 2020/10/18 12:47:37 rin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -499,12 +499,7 @@
        
                case WSDISPLAYIO_GET_FBINFO: {
                        struct wsdisplayio_fbinfo *fbi = data;
-                       ret = wsdisplayio_get_fbinfo(&ms->scr_ri, fbi);
-                       if (ret == 0) {
-                               if (sc->sc_enable_shadowfb)
-                                       fbi->fbi_flags |= WSFB_VRAM_IS_RAM;
-                       }
-                       return ret;
+                       return wsdisplayio_get_fbinfo(&ms->scr_ri, fbi);
                }
        }
        return EPASSTHROUGH;



Home | Main Index | Thread Index | Old Index