2007-10-31 19:28:56 +00:00
|
|
|
From: Adam Jackson <ajax@redhat.com>
|
|
|
|
Date: Sun, 28 Oct 2007 09:37:52 +0100
|
|
|
|
Subject: [PATCH] Fix magic number in fbdevhw
|
|
|
|
|
|
|
|
The transformation between fbdev and xfree86 mode timings needs to be
|
|
|
|
invertible, otherwise Xen and other framebuffers that don't have real
|
|
|
|
pixel clocks won't initialize.
|
|
|
|
|
|
|
|
---
|
|
|
|
--- xorg-server-1.3.0.0/hw/xfree86/fbdevhw/fbdevhw.c.jx 2007-03-26 23:32:36.000000000 -0400
|
|
|
|
+++ xorg-server-1.3.0.0/hw/xfree86/fbdevhw/fbdevhw.c 2007-05-11 15:10:05.000000000 -0400
|
2007-05-11 19:52:05 +00:00
|
|
|
@@ -258,7 +258,7 @@
|
|
|
|
static void
|
|
|
|
fbdev2xfree_timing(struct fb_var_screeninfo *var, DisplayModePtr mode)
|
|
|
|
{
|
|
|
|
- mode->Clock = var->pixclock ? 1000000000/var->pixclock : 28000000;
|
|
|
|
+ mode->Clock = var->pixclock ? 1000000000/var->pixclock : 0;
|
|
|
|
mode->HDisplay = var->xres;
|
|
|
|
mode->HSyncStart = mode->HDisplay+var->right_margin;
|
|
|
|
mode->HSyncEnd = mode->HSyncStart+var->hsync_len;
|