1
0
xorg-x11-server/p_initialize-pci-tag.diff

20 lines
695 B
Diff

Index: linux.c
===================================================================
RCS file: /work/cvsdir/cvs/xc/programs/Xserver/hw/xfree86/os-support/linux/int10/linux.c,v
retrieving revision 1.1.1.30
diff -u -r1.1.1.30 linux.c
--- linux.c 13 Sep 2005 10:31:31 -0000 1.1.1.30
+++ linux.c 27 Jun 2006 14:25:58 -0000
@@ -158,6 +158,11 @@
pInt = (xf86Int10InfoPtr)xnfcalloc(1, sizeof(xf86Int10InfoRec));
pInt->scrnIndex = screen;
pInt->entityIndex = entityIndex;
+ {
+ pciVideoPtr pvp = xf86GetPciInfoForEntity(entityIndex);
+ if (pvp) pInt->Tag = ((pciConfigPtr)(pvp->thisCard))->tag;
+ }
+
if (!xf86Int10ExecSetup(pInt))
goto error0;
pInt->mem = &linuxMem;