aboutsummaryrefslogtreecommitdiff
path: root/linux-core/drm_fops.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_fops.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_fops.c')
-rw-r--r--linux-core/drm_fops.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/linux-core/drm_fops.c b/linux-core/drm_fops.c
index f45d5e46..7bc73d26 100644
--- a/linux-core/drm_fops.c
+++ b/linux-core/drm_fops.c
@@ -54,10 +54,11 @@ static int drm_setup(struct drm_device * dev)
atomic_set(&dev->ioctl_count, 0);
atomic_set(&dev->vma_count, 0);
- dev->buf_use = 0;
- atomic_set(&dev->buf_alloc, 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)) {
+ dev->buf_use = 0;
+ atomic_set(&dev->buf_alloc, 0);
+
i = drm_dma_setup(dev);
if (i < 0)
return i;