diff options
author | Michel Dänzer <michel@tungstengraphics.com> | 2007-02-28 15:57:08 +0100 |
---|---|---|
committer | Michel Dänzer <michel@tungstengraphics.com> | 2007-02-28 15:57:08 +0100 |
commit | 074e10b384c893a256fcf964676562792fdf93c8 (patch) | |
tree | 669d41f5db69ab7bd8b6e34e1002491bc71a3117 /shared-core/i915_dma.c | |
parent | 1cdc1b6fbabffc0dd4d3c1f8405d9372a45480a2 (diff) |
i915: Only clean up page flipping when the last client goes away, not any one.
Diffstat (limited to 'shared-core/i915_dma.c')
-rw-r--r-- | shared-core/i915_dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shared-core/i915_dma.c b/shared-core/i915_dma.c index 7078ec94..282d4b80 100644 --- a/shared-core/i915_dma.c +++ b/shared-core/i915_dma.c @@ -915,6 +915,7 @@ void i915_driver_lastclose(drm_device_t * dev) { if (dev->dev_private) { drm_i915_private_t *dev_priv = dev->dev_private; + i915_do_cleanup_pageflip(dev); i915_mem_takedown(&(dev_priv->agp_heap)); } i915_dma_cleanup(dev); @@ -924,7 +925,6 @@ void i915_driver_preclose(drm_device_t * dev, DRMFILE filp) { if (dev->dev_private) { drm_i915_private_t *dev_priv = dev->dev_private; - i915_do_cleanup_pageflip(dev); i915_mem_release(dev, filp, dev_priv->agp_heap); } } |