summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <anholt@freebsd.org>2006-05-17 05:44:39 +0000
committerEric Anholt <anholt@freebsd.org>2006-05-17 05:44:39 +0000
commitdcfcf1a84d400f9c1ade36a233f0a18131115921 (patch)
tree37292ecf23e5a414d8e15bc5304e7206a1902e2e
parent7ea4a88fa30d9608b09dc0052b20e54301db547a (diff)
Add the bits for vblank support on FreeBSD, which most importantly avoids
chasing a NULL pointer at the first 3d app invocation.
-rw-r--r--bsd-core/i915_drv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bsd-core/i915_drv.c b/bsd-core/i915_drv.c
index d5830e5a..269d7b36 100644
--- a/bsd-core/i915_drv.c
+++ b/bsd-core/i915_drv.c
@@ -47,6 +47,7 @@ static void i915_configure(drm_device_t *dev)
dev->driver.preclose = i915_driver_preclose;
dev->driver.lastclose = i915_driver_lastclose;
dev->driver.device_is_agp = i915_driver_device_is_agp,
+ dev->driver.vblank_wait = i915_driver_vblank_wait;
dev->driver.irq_preinstall = i915_driver_irq_preinstall;
dev->driver.irq_postinstall = i915_driver_irq_postinstall;
dev->driver.irq_uninstall = i915_driver_irq_uninstall;
@@ -66,6 +67,7 @@ static void i915_configure(drm_device_t *dev)
dev->driver.require_agp = 1;
dev->driver.use_mtrr = 1;
dev->driver.use_irq = 1;
+ dev->driver.use_vbl_irq = 1;
}
#ifdef __FreeBSD__