Source-Changes-HG archive

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

[src/trunk]: src/sys/external/bsd/drm2/radeon set the "width" and "height" pa...



details:   https://anonhg.NetBSD.org/src/rev/a36fc9191586
branches:  trunk
changeset: 811567:a36fc9191586
user:      mrg <mrg%NetBSD.org@localhost>
date:      Thu Nov 05 20:52:46 2015 +0000

description:
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 c898e9d7e685 -r a36fc9191586 sys/external/bsd/drm2/radeon/radeondrmkmsfb.c
--- a/sys/external/bsd/drm2/radeon/radeondrmkmsfb.c     Thu Nov 05 20:32:39 2015 +0000
+++ b/sys/external/bsd/drm2/radeon/radeondrmkmsfb.c     Thu Nov 05 20:52:46 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: radeondrmkmsfb.c,v 1.5 2014/11/18 09:28:36 nonaka Exp $        */
+/*     $NetBSD: radeondrmkmsfb.c,v 1.6 2015/11/05 20:52:46 mrg Exp $   */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: radeondrmkmsfb.c,v 1.5 2014/11/18 09:28:36 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: radeondrmkmsfb.c,v 1.6 2015/11/05 20:52:46 mrg 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