From 76ef102be3b47d23ebfaaaa04fb5cfc0511d43f1 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Tue, 14 Feb 2017 15:30:52 -0500 Subject: xfree86: Drop virtualFrom from ScrnInfoRec Seriously not worth the effort of tracking this, especially now that competent drivers don't have a limit. The sis driver does inspect this member, but hilariously does so only so it can print the same information as the core does. Reviewed-by: Alex Deucher Reviewed-by: Aaron Plattner Acked-by: Keith Packard Signed-off-by: Adam Jackson --- hw/xfree86/common/xf86Mode.c | 8 ++------ hw/xfree86/common/xf86str.h | 1 - hw/xfree86/doc/ddxDesign.xml | 6 ------ 3 files changed, 2 insertions(+), 13 deletions(-) diff --git a/hw/xfree86/common/xf86Mode.c b/hw/xfree86/common/xf86Mode.c index 3aae17f32..3053e53f1 100644 --- a/hw/xfree86/common/xf86Mode.c +++ b/hw/xfree86/common/xf86Mode.c @@ -1508,8 +1508,6 @@ xf86ValidateModes(ScrnInfoPtr scrp, DisplayModePtr availModes, } } - /* Initial check of virtual size against other constraints */ - scrp->virtualFrom = X_PROBED; /* * Initialise virtX and virtY if the values are fixed. */ @@ -1561,7 +1559,6 @@ xf86ValidateModes(ScrnInfoPtr scrp, DisplayModePtr availModes, virtX = virtualX; virtY = virtualY; - scrp->virtualFrom = X_CONFIG; } else if (!modeNames || !*modeNames) { /* No virtual size given in the config, try to infer */ @@ -2067,9 +2064,8 @@ xf86PrintModes(ScrnInfoPtr scrp) if (scrp == NULL) return; - xf86DrvMsg(scrp->scrnIndex, scrp->virtualFrom, "Virtual size is %dx%d " - "(pitch %d)\n", scrp->virtualX, scrp->virtualY, - scrp->displayWidth); + xf86DrvMsg(scrp->scrnIndex, X_INFO, "Virtual size is %dx%d (pitch %d)\n", + scrp->virtualX, scrp->virtualY, scrp->displayWidth); p = scrp->modes; if (p == NULL) diff --git a/hw/xfree86/common/xf86str.h b/hw/xfree86/common/xf86str.h index 9b1633aa7..4df10a56a 100644 --- a/hw/xfree86/common/xf86str.h +++ b/hw/xfree86/common/xf86str.h @@ -607,7 +607,6 @@ typedef struct _ScrnInfoRec { int virtualX; /* Virtual width */ int virtualY; /* Virtual height */ int xInc; /* Horizontal timing increment */ - MessageType virtualFrom; /* set from config? */ int displayWidth; /* memory pitch */ int frameX0; /* viewport position */ int frameY0; diff --git a/hw/xfree86/doc/ddxDesign.xml b/hw/xfree86/doc/ddxDesign.xml index 3c0dc8658..df5f64bde 100644 --- a/hw/xfree86/doc/ddxDesign.xml +++ b/hw/xfree86/doc/ddxDesign.xml @@ -6640,12 +6640,6 @@ be catered for the by the helpers. The resulting line pitch. - - virtualFrom - - Where the virtual size was determined from. - - -- cgit v1.2.3