Source-Changes-HG archive

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

[src/netbsd-7]: src/sys/external/bsd/drm2/radeon Pull up following revision(s...



details:   https://anonhg.NetBSD.org/src/rev/c9d4e034d23d
branches:  netbsd-7
changeset: 799788:c9d4e034d23d
user:      snj <snj%NetBSD.org@localhost>
date:      Thu Feb 11 23:02:54 2016 +0000

description:
Pull up following revision(s) (requested by riastradh in ticket #1083):
        sys/external/bsd/drm2/radeon/radeondrmkmsfb.c: revision 1.6
set the "width" and "height" parameters from the surface_width and
surface_height members.  idea from the intel code and jmcneill@.
this makes the fb on my RV370 use the full display size, not the
(not actually connected) 800x600 the svideo output supports.
X still starts up at 800x600 mode, but xrandr can fix that.

diffstat:

 sys/external/bsd/drm2/radeon/radeondrmkmsfb.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r e9e1aba0fd51 -r c9d4e034d23d sys/external/bsd/drm2/radeon/radeondrmkmsfb.c
--- a/sys/external/bsd/drm2/radeon/radeondrmkmsfb.c     Thu Feb 11 23:00:30 2016 +0000
+++ b/sys/external/bsd/drm2/radeon/radeondrmkmsfb.c     Thu Feb 11 23:02:54 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: radeondrmkmsfb.c,v 1.3.4.2 2014/12/03 23:00:17 snj Exp $       */
+/*     $NetBSD: radeondrmkmsfb.c,v 1.3.4.3 2016/02/11 23:02:54 snj Exp $       */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: radeondrmkmsfb.c,v 1.3.4.2 2014/12/03 23:00:17 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: radeondrmkmsfb.c,v 1.3.4.3 2016/02/11 23:02:54 snj Exp $");
 
 #ifdef _KERNEL_OPT
 #include "vga.h"
@@ -168,8 +168,8 @@
        KASSERT(sc->sc_scheduled);
 
        /* XXX Ugh...  Pass these parameters some other way!  */
-       prop_dictionary_set_uint32(dict, "width", sizes->fb_width);
-       prop_dictionary_set_uint32(dict, "height", sizes->fb_height);
+       prop_dictionary_set_uint32(dict, "width", sizes->surface_width);
+       prop_dictionary_set_uint32(dict, "height", sizes->surface_height);
        prop_dictionary_set_uint8(dict, "depth", sizes->surface_bpp);
        prop_dictionary_set_uint16(dict, "linebytes", rfa->rfa_fb_linebytes);
        prop_dictionary_set_uint32(dict, "address", 0); /* XXX >32-bit */



Home | Main Index | Thread Index | Old Index