Author: dcbw
Update of /cvs/pkgs/rpms/xorg-x11-drv-nv/F-9
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv31953
Modified Files:
nv-1.1.1-nv34-tweaks.patch xorg-x11-drv-nv.spec
Log Message:
* Tue Sep 30 2008 Dan Williams <dcbw(a)redhat.com> 2.1.10-2
- Port Toshiba Tecra M2 NV34 panel tweak to pciaccess
nv-1.1.1-nv34-tweaks.patch:
Index: nv-1.1.1-nv34-tweaks.patch
===================================================================
RCS file: /cvs/pkgs/rpms/xorg-x11-drv-nv/F-9/nv-1.1.1-nv34-tweaks.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- nv-1.1.1-nv34-tweaks.patch 14 Jun 2006 23:03:31 -0000 1.1
+++ nv-1.1.1-nv34-tweaks.patch 1 Oct 2008 13:32:48 -0000 1.2
@@ -1,13 +1,21 @@
---- xf86-video-nv-1.1.1/src/nv_dac.c.nv34-tweak 2006-06-14 14:26:46.000000000 -0400
-+++ xf86-video-nv-1.1.1/src/nv_dac.c 2006-06-14 14:38:20.000000000 -0400
-@@ -60,8 +60,14 @@
+diff -up xf86-video-nv-2.1.10/src/nv_dac.c.nv34-tweak xf86-video-nv-2.1.10/src/nv_dac.c
+--- xf86-video-nv-2.1.10/src/nv_dac.c.nv34-tweak 2008-06-22 15:35:04.000000000 -0400
++++ xf86-video-nv-2.1.10/src/nv_dac.c 2008-09-30 09:22:21.000000000 -0400
+@@ -42,8 +42,21 @@ NVDACPanelTweaks(NVPtr pNv, NVRegPtr sta
we can do is experiment and apply hacks. */
if(((pNv->Chipset & 0xffff) == 0x0328) && (state->bpp == 32))
{
- /* At least one NV34 laptop needs this workaround. */
- tweak = -1;
++#if XSERVER_LIBPCIACCESS
++ if (((pNv->PciInfo->subvendor_id & 0xffff) == 0x1179) &&
++ ((pNv->PciInfo->subdevice_id & 0xffff) == 0x0020))
++#else
+ if (((pNv->PciInfo->subsysVendor & 0xffff) == 0x1179) &&
-+ ((pNv->PciInfo->subsysCard & 0xffff) == 0x0020)) {
++ ((pNv->PciInfo->subsysCard & 0xffff) == 0x0020))
++#endif
++ {
++
+ /* Toshiba Tecra M2 */
+ tweak = 1;
+ } else {
Index: xorg-x11-drv-nv.spec
===================================================================
RCS file: /cvs/pkgs/rpms/xorg-x11-drv-nv/F-9/xorg-x11-drv-nv.spec,v
retrieving revision 1.71
retrieving revision 1.72
diff -u -r1.71 -r1.72
--- xorg-x11-drv-nv.spec 1 Jul 2008 21:25:34 -0000 1.71
+++ xorg-x11-drv-nv.spec 1 Oct 2008 13:32:48 -0000 1.72
@@ -5,7 +5,7 @@
Summary: Xorg X11 nv video driver
Name: xorg-x11-drv-nv
Version: 2.1.10
-Release: 1%{?dist}
+Release: 2%{?dist}
URL:
http://www.x.org
License: MIT
Group: User Interface/X Hardware Support
@@ -37,8 +37,7 @@
%prep
%setup -q -n %{tarball}-%{version}
-# disable for now, needs porting to pciaccess
-#patch0 -p1 -b .nv34-tweak
+%patch0 -p1 -b .nv34-tweak
%patch4 -p1 -b .reserve-fbarea
%patch5 -p1 -b .starve
%patch6 -p1 -b .panel
@@ -69,6 +68,9 @@
%{_mandir}/man4/nv.4*
%changelog
+* Tue Sep 30 2008 Dan Williams <dcbw(a)redhat.com> 2.1.10-2
+- Port Toshiba Tecra M2 NV34 panel tweak to pciaccess
+
* Tue Jul 01 2008 Adam Jackson <ajax(a)redhat.com> 2.1.10-1
- nv 2.1.10