rpms/xorg-x11-drv-savage/devel savage-2.1.2-panel-range-hack.patch, NONE, 1.1 xorg-x11-drv-savage.spec, 1.20, 1.21
Adam Jackson (ajax)
fedora-extras-commits at redhat.com
Mon Jul 9 17:48:42 UTC 2007
Author: ajax
Update of /cvs/pkgs/rpms/xorg-x11-drv-savage/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv32208
Modified Files:
xorg-x11-drv-savage.spec
Added Files:
savage-2.1.2-panel-range-hack.patch
Log Message:
* Mon Jul 09 2007 Adam Jackson <ajax at redhat.com> 2.1.2-5
- savage-2.1.2-panel-range-hack.patch: If we find a panel but no EDID,
stretch the sync ranges out to fit the panel size. (#243589)
savage-2.1.2-panel-range-hack.patch:
--- NEW FILE savage-2.1.2-panel-range-hack.patch ---
diff -up xf86-video-savage-2.1.2/src/savage_driver.c.jx xf86-video-savage-2.1.2/src/savage_driver.c
--- xf86-video-savage-2.1.2/src/savage_driver.c.jx 2006-09-17 17:23:07.000000000 -0400
+++ xf86-video-savage-2.1.2/src/savage_driver.c 2007-07-09 13:24:07.000000000 -0400
@@ -1000,6 +1000,30 @@ static void SavageGetPanelInfo(ScrnInfoP
psav->PanelX = panelX;
psav->PanelY = panelY;
+ do {
+ DisplayModePtr native = xf86CVTMode(panelX, panelY, 60.0, 0, 0);
+ if (!native)
+ break;
+
+ if (!pScrn->monitor->nHsync) {
+ pScrn->monitor->nHsync = 1;
+ pScrn->monitor->hsync[0].lo = 31.5;
+ pScrn->monitor->hsync[0].hi = (float)native->Clock /
+ (float)native->HTotal;
+ }
+ if (!pScrn->monitor->nVrefresh) {
+ pScrn->monitor->nVrefresh = 1;
+ pScrn->monitor->vrefresh[0].lo = 56.0;
+ pScrn->monitor->vrefresh[0].hi = (float)native->Clock * 1000.0 /
+ (float)native->HTotal /
+ (float)native->VTotal;
+ }
+ if (!pScrn->monitor->maxPixClock)
+ pScrn->monitor->maxPixClock = native->Clock;
+
+ xfree(native);
+ } while (0);
+
if( psav->LCDClock > 0.0 )
{
psav->maxClock = psav->LCDClock * 1000.0;
Index: xorg-x11-drv-savage.spec
===================================================================
RCS file: /cvs/pkgs/rpms/xorg-x11-drv-savage/devel/xorg-x11-drv-savage.spec,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- xorg-x11-drv-savage.spec 18 Jun 2007 19:50:21 -0000 1.20
+++ xorg-x11-drv-savage.spec 9 Jul 2007 17:48:06 -0000 1.21
@@ -5,7 +5,7 @@
Summary: Xorg X11 savage video driver
Name: xorg-x11-drv-savage
Version: 2.1.2
-Release: 4%{?dist}
+Release: 5%{?dist}
URL: http://www.x.org
License: MIT
Group: User Interface/X Hardware Support
@@ -15,6 +15,7 @@
Source1: savage.xinf
Patch1: savage-2.1.2-missing-symbol.patch
+Patch2: savage-2.1.2-panel-range-hack.patch
ExcludeArch: s390 s390x
@@ -31,6 +32,7 @@
%prep
%setup -q -n %{tarball}-%{version}
%patch1 -p1 -b .missing-symbol
+%patch2 -p1 -b .range-hack
%build
%configure --disable-static --enable-dri
@@ -58,6 +60,10 @@
%{_mandir}/man4/savage.4*
%changelog
+* Mon Jul 09 2007 Adam Jackson <ajax at redhat.com> 2.1.2-5
+- savage-2.1.2-panel-range-hack.patch: If we find a panel but no EDID,
+ stretch the sync ranges out to fit the panel size. (#243589)
+
* Mon Jun 18 2007 Adam Jackson <ajax at redhat.com> 2.1.2-4
- Update Requires and BuildRequires. Add Requires: hwdata.
More information about the fedora-extras-commits
mailing list