Module Name: src Committed By: snj Date: Thu Feb 11 23:02:54 UTC 2016
Modified Files: src/sys/external/bsd/drm2/radeon [netbsd-7]: radeondrmkmsfb.c Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.3.4.2 -r1.3.4.3 \ src/sys/external/bsd/drm2/radeon/radeondrmkmsfb.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/external/bsd/drm2/radeon/radeondrmkmsfb.c diff -u src/sys/external/bsd/drm2/radeon/radeondrmkmsfb.c:1.3.4.2 src/sys/external/bsd/drm2/radeon/radeondrmkmsfb.c:1.3.4.3 --- src/sys/external/bsd/drm2/radeon/radeondrmkmsfb.c:1.3.4.2 Wed Dec 3 23:00:17 2014 +++ src/sys/external/bsd/drm2/radeon/radeondrmkmsfb.c Thu Feb 11 23:02:54 2016 @@ -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 @@ radeonfb_setconfig_task(struct radeon_ta 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 */