aboutsummaryrefslogtreecommitdiff
path: root/linux-core/drm_drv.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2008-08-14 09:10:11 +1000
committerDave Airlie <airlied@redhat.com>2008-08-14 09:10:11 +1000
commit957c71ff52e93bb2c1bc01b99d29d763d0ef3899 (patch)
tree145eae35c0b6f0c7e776b3f4237d453c07460132 /linux-core/drm_drv.c
parentc2184e450e4c5613c1f1a004d183ad478358013e (diff)
radeon: FEDORA: add old DMA buffers on top of GEM
This really shouldn't go upstream, it just lets me run the old 3D driver on GEM setup system
Diffstat (limited to 'linux-core/drm_drv.c')
-rw-r--r--linux-core/drm_drv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/drm_drv.c b/linux-core/drm_drv.c
index 2a6bebd7..7c43fd00 100644
--- a/linux-core/drm_drv.c
+++ b/linux-core/drm_drv.c
@@ -250,7 +250,7 @@ int drm_lastclose(struct drm_device * dev)
}
dev->queue_count = 0;
- if (drm_core_check_feature(dev, DRIVER_HAVE_DMA))
+ if (drm_core_check_feature(dev, DRIVER_HAVE_DMA) && !drm_core_check_feature(dev, DRIVER_MODESET))
drm_dma_takedown(dev);
dev->dev_mapping = NULL;