[PATCH libpciaccess 1/2] OpenBSD: Indicate that devices need access to legacy VGA resources.

Mark Kettenis mark.kettenis at xs4all.nl
Sun Nov 6 09:32:51 PST 2011


Makes sure xserver disables DRI if the VGA arbiter is in use.

Signed-off-by: Matthieu Herrb <matthieu.herrb at laas.fr>
---
 src/openbsd_pci.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/openbsd_pci.c b/src/openbsd_pci.c
index e954144..b5559ad 100644
--- a/src/openbsd_pci.c
+++ b/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++;
 				}
 			}
-- 
1.7.6



More information about the xorg-devel mailing list