Add the bits for vblank support on FreeBSD, which most importantly avoids
chasing a NULL pointer at the first 3d app invocation.main
parent
7ea4a88fa3
commit
dcfcf1a84d
|
@ -47,6 +47,7 @@ static void i915_configure(drm_device_t *dev)
|
||||||
dev->driver.preclose = i915_driver_preclose;
|
dev->driver.preclose = i915_driver_preclose;
|
||||||
dev->driver.lastclose = i915_driver_lastclose;
|
dev->driver.lastclose = i915_driver_lastclose;
|
||||||
dev->driver.device_is_agp = i915_driver_device_is_agp,
|
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_preinstall = i915_driver_irq_preinstall;
|
||||||
dev->driver.irq_postinstall = i915_driver_irq_postinstall;
|
dev->driver.irq_postinstall = i915_driver_irq_postinstall;
|
||||||
dev->driver.irq_uninstall = i915_driver_irq_uninstall;
|
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.require_agp = 1;
|
||||||
dev->driver.use_mtrr = 1;
|
dev->driver.use_mtrr = 1;
|
||||||
dev->driver.use_irq = 1;
|
dev->driver.use_irq = 1;
|
||||||
|
dev->driver.use_vbl_irq = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __FreeBSD__
|
#ifdef __FreeBSD__
|
||||||
|
|
Loading…
Reference in New Issue