OSDN Git Service

OpenBSD: Indicate that devices need access to legacy VGA resources.
authorMark Kettenis <mark.kettenis@xs4all.nl>
Sun, 6 Nov 2011 17:32:51 +0000 (17:32 +0000)
committerMatthieu Herrb <matthieu.herrb@laas.fr>
Sat, 19 Nov 2011 14:44:43 +0000 (15:44 +0100)
Makes sure xserver disables DRI if the VGA arbiter is in use.

Signed-off-by: Matthieu Herrb <matthieu.herrb@laas.fr>
src/openbsd_pci.c

index e954144..b5559ad 100644 (file)
@@ -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++;
                                }
                        }