From dcfcf1a84d400f9c1ade36a233f0a18131115921 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 17 May 2006 05:44:39 +0000 Subject: Add the bits for vblank support on FreeBSD, which most importantly avoids chasing a NULL pointer at the first 3d app invocation. --- bsd-core/i915_drv.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bsd-core') 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__ -- cgit v1.2.3