summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2011-01-12 21:49:22 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2011-01-12 21:49:22 +0000
commit42f61ad50491a3806f0b9d156d51fb9734d66bb3 (patch)
tree787ba7f31a51b3d6bb95897e10e060ff02164478 /lib
parent9ac5a1302296cc63925671b566af8c4618cb581e (diff)
Indicate that devices need access to legacy VGA resources. Makes sure xserver
disables DRI if the VGA arbiter is in use. ok matthieu@
Diffstat (limited to 'lib')
-rw-r--r--lib/libpciaccess/src/openbsd_pci.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libpciaccess/src/openbsd_pci.c b/lib/libpciaccess/src/openbsd_pci.c
index 821e48f47..ed2f1663d 100644
--- a/lib/libpciaccess/src/openbsd_pci.c
+++ b/lib/libpciaccess/src/openbsd_pci.c
@@ -505,6 +505,10 @@ pci_system_openbsd_create(void)
device->base.subvendor_id = PCI_VENDOR(reg);
device->base.subdevice_id = PCI_PRODUCT(reg);
+ device->base.vgaarb_rsrc =
+ VGA_ARB_RSRC_LEGACY_IO |
+ VGA_ARB_RSRC_LEGACY_MEM;
+
device++;
}
}