summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichel Dänzer <michel@tungstengraphics.com>2007-02-28 15:57:08 +0100
committerMichel Dänzer <michel@tungstengraphics.com>2007-02-28 15:57:08 +0100
commit074e10b384c893a256fcf964676562792fdf93c8 (patch)
tree669d41f5db69ab7bd8b6e34e1002491bc71a3117
parent1cdc1b6fbabffc0dd4d3c1f8405d9372a45480a2 (diff)
i915: Only clean up page flipping when the last client goes away, not any one.
-rw-r--r--shared-core/i915_dma.c2
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);
}
}