summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@dhcp-1-4.bne.redhat.com>2009-12-23 13:27:12 +1000
committerDave Airlie <airlied@dhcp-1-4.bne.redhat.com>2009-12-23 13:27:12 +1000
commit08687fc520fd8136cbac63c669e13c2fb3e504e8 (patch)
tree78cc86d8ac3d57bbe150d5fe8953b78e26ccb395
parent92c535f4ea0c3dbe50ccca2c730e0ab06c3aba55 (diff)
qxl: make default be 1024x768
This change lets us validate a lot of modes and if the user doesn't supply a virtual line they'll get 1024x768, because we have no monitor, its hard to know what the best thing to do in this case. To get larger modes add a Virtual line to xorg.conf
-rw-r--r--src/qxl_driver.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/qxl_driver.c b/src/qxl_driver.c
index cb99067..3edafcc 100644
--- a/src/qxl_driver.c
+++ b/src/qxl_driver.c
@@ -1165,6 +1165,22 @@ qxlPreInit(ScrnInfoPtr pScrn, int flags)
clockRanges->ClockMulFactor = clockRanges->ClockDivFactor = 1;
pScrn->progClock = TRUE;
+ /* override QXL monitor stuff */
+ if (pScrn->monitor->nHsync <= 0) {
+ pScrn->monitor->hsync[0].lo = 31.5;
+ pScrn->monitor->hsync[0].hi = 80.0;
+ pScrn->monitor->nHsync = 1;
+ }
+ if (pScrn->monitor->nVrefresh <= 0) {
+ pScrn->monitor->vrefresh[0].lo = 50;
+ pScrn->monitor->vrefresh[0].hi = 70;
+ pScrn->monitor->nVrefresh = 1;
+ }
+
+ if (pScrn->display->virtualX == 0 && pScrn->display->virtualY == 0) {
+ pScrn->display->virtualX = 1024;
+ pScrn->display->virtualY = 768;
+ }
if (0 >= xf86ValidateModes(pScrn, pScrn->monitor->Modes,
pScrn->display->modes, clockRanges, linePitches,
128, 2048, 128 * 4, 128, 2048,