Module Name: src Committed By: mrg Date: Thu Nov 5 20:52:46 UTC 2015
Modified Files: src/sys/external/bsd/drm2/radeon: radeondrmkmsfb.c Log Message: 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.5 -r1.6 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.5 src/sys/external/bsd/drm2/radeon/radeondrmkmsfb.c:1.6 --- src/sys/external/bsd/drm2/radeon/radeondrmkmsfb.c:1.5 Tue Nov 18 09:28:36 2014 +++ src/sys/external/bsd/drm2/radeon/radeondrmkmsfb.c Thu Nov 5 20:52:46 2015 @@ -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 @@ 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 */