summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/i915_dma.c
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2009-04-06 20:56:26 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2009-04-06 20:56:26 +0000
commit9d40610744f18bfa09e38c60503022ca7ebfb673 (patch)
tree9ba5404d2e3f97185b3d245fb517ef58bf8411cf /sys/dev/pci/drm/i915_dma.c
parent46990b14d260e53f3cc5476531b07d43c6381cf9 (diff)
Turns out that the intel version of the heap interface isn't used
anywhere. And hasn't been for a long time. The ddx sets up the heap (so just always pass that call and do nothing), but nothing that touches inteldrm actually uses the other ioctls. So just kill them and have one lese thing to worry about. Still got sis and radeon using the common code though.
Diffstat (limited to 'sys/dev/pci/drm/i915_dma.c')
-rw-r--r--sys/dev/pci/drm/i915_dma.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/sys/dev/pci/drm/i915_dma.c b/sys/dev/pci/drm/i915_dma.c
index 0133277d755..bf6694256f0 100644
--- a/sys/dev/pci/drm/i915_dma.c
+++ b/sys/dev/pci/drm/i915_dma.c
@@ -573,7 +573,7 @@ int i915_setparam(struct drm_device *dev, void *data,
case I915_SETPARAM_USE_MI_BATCHBUFFER_START:
break;
case I915_SETPARAM_TEX_LRU_LOG_GRANULARITY:
- dev_priv->tex_lru_log_granularity = param->value;
+ /* We really don't care anymore */
break;
case I915_SETPARAM_ALLOW_BATCHBUFFER:
dev_priv->allow_batchbuffer = param->value;
@@ -640,13 +640,5 @@ void i915_driver_lastclose(struct drm_device * dev)
dev_priv->sarea_priv = NULL;
- i915_mem_takedown(&dev_priv->agp_heap);
-
i915_dma_cleanup(dev);
}
-
-void i915_driver_close(struct drm_device * dev, struct drm_file *file_priv)
-{
- drm_i915_private_t *dev_priv = dev->dev_private;
- i915_mem_release(dev, file_priv, &dev_priv->agp_heap);
-}