Source-Changes-HG archive

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

[src/netbsd-7]: src/sys/dev Pull up following revision(s) (requested by jmcne...



details:   https://anonhg.NetBSD.org/src/rev/34cec44262b2
branches:  netbsd-7
changeset: 799119:34cec44262b2
user:      snj <snj%NetBSD.org@localhost>
date:      Sat Mar 21 08:46:05 2015 +0000

description:
Pull up following revision(s) (requested by jmcneill in ticket #631):
        sys/dev/wscons/wsconsio.h: revision 1.112 via patch
        sys/dev/wsfb/genfb.c: revision 1.57
add WSDISPLAY_TYPE_MESON
--
support 24bpp framebuffers

diffstat:

 sys/dev/wscons/wsconsio.h |   3 ++-
 sys/dev/wsfb/genfb.c      |  12 +++++++-----
 2 files changed, 9 insertions(+), 6 deletions(-)

diffs (59 lines):

diff -r d0c65cb604af -r 34cec44262b2 sys/dev/wscons/wsconsio.h
--- a/sys/dev/wscons/wsconsio.h Thu Mar 19 16:50:43 2015 +0000
+++ b/sys/dev/wscons/wsconsio.h Sat Mar 21 08:46:05 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wsconsio.h,v 1.108.10.1 2014/11/14 13:26:46 martin Exp $ */
+/* $NetBSD: wsconsio.h,v 1.108.10.2 2015/03/21 08:46:05 snj Exp $ */
 
 /*
  * Copyright (c) 1996, 1997 Christopher G. Demetriou.  All rights reserved.
@@ -335,6 +335,7 @@
 #define WSDISPLAY_TYPE_WINDERMERE 58   /* SoC for EPOC32 Series 5mx */
 #define WSDISPLAY_TYPE_CLPS711X        59      /* CL PS-711x  */
 #define WSDISPLAY_TYPE_ALLWINNER 60    /* Allwinner ARM SoC */
+#define        WSDISPLAY_TYPE_MESON    62      /* Amlogic Meson ARM Soc */
 
 /* Basic display information.  Not applicable to all display types. */
 struct wsdisplay_fbinfo {
diff -r d0c65cb604af -r 34cec44262b2 sys/dev/wsfb/genfb.c
--- a/sys/dev/wsfb/genfb.c      Thu Mar 19 16:50:43 2015 +0000
+++ b/sys/dev/wsfb/genfb.c      Sat Mar 21 08:46:05 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: genfb.c,v 1.55.2.1 2014/10/03 16:22:58 martin Exp $ */
+/*     $NetBSD: genfb.c,v 1.55.2.2 2015/03/21 08:46:05 snj Exp $ */
 
 /*-
  * Copyright (c) 2007 Michael Lorenz
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: genfb.c,v 1.55.2.1 2014/10/03 16:22:58 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: genfb.c,v 1.55.2.2 2015/03/21 08:46:05 snj Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -545,10 +545,12 @@
                ri->ri_flg |= RI_CLEAR;
        }
 
-       if (ri->ri_depth == 32) {
+       if (ri->ri_depth == 32 || ri->ri_depth == 24) {
                bool is_bgr = false;
 
-               ri->ri_flg |= RI_ENABLE_ALPHA;
+               if (ri->ri_depth == 32) {
+                       ri->ri_flg |= RI_ENABLE_ALPHA;
+               }
                prop_dictionary_get_bool(device_properties(sc->sc_dev),
                    "is_bgr", &is_bgr);
                if (is_bgr) {
@@ -568,7 +570,7 @@
                        ri->ri_gpos = 8;
                        ri->ri_bpos = 0;
                }
-       }       
+       }
 
        if (ri->ri_depth == 8 && sc->sc_cmcb != NULL)
                ri->ri_flg |= RI_ENABLE_ALPHA | RI_8BIT_IS_RGB;



Home | Main Index | Thread Index | Old Index