summaryrefslogtreecommitdiff
path: root/src/gallium/winsys/i915/drm/i915_drm_batchbuffer.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2010-12-05 13:23:40 +0100
committerJakob Bornecrantz <wallbraker@gmail.com>2011-02-21 00:50:16 +0100
commitc0122daf1010ad2887298028feaef8978e4c87cd (patch)
treee52d810f66819a89380c175914b89a875a3c9b46 /src/gallium/winsys/i915/drm/i915_drm_batchbuffer.c
parentfa186804a6c0b7231bd52a529fb1d0c42f038fd0 (diff)
i915g: kill remnants of mmapped batchbuffer support
We're using bo_subdata. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'src/gallium/winsys/i915/drm/i915_drm_batchbuffer.c')
-rw-r--r--src/gallium/winsys/i915/drm/i915_drm_batchbuffer.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/gallium/winsys/i915/drm/i915_drm_batchbuffer.c b/src/gallium/winsys/i915/drm/i915_drm_batchbuffer.c
index ebe86dcf196..4cfc4a9005f 100644
--- a/src/gallium/winsys/i915/drm/i915_drm_batchbuffer.c
+++ b/src/gallium/winsys/i915/drm/i915_drm_batchbuffer.c
@@ -43,18 +43,6 @@ i915_drm_batchbuffer_reset(struct i915_drm_batchbuffer *batch)
batch->actual_size,
4096);
-#ifdef INTEL_MAP_BATCHBUFFER
-#ifdef INTEL_MAP_GTT
- ret = drm_intel_gem_bo_map_gtt(batch->bo);
-#else
- ret = drm_intel_bo_map(batch->bo, TRUE);
-#endif
- assert(ret == 0);
- batch->base.map = batch->bo->virtual;
-#else
- (void)ret;
-#endif
-
memset(batch->base.map, 0, batch->actual_size);
batch->base.ptr = batch->base.map;
batch->base.size = batch->actual_size - BATCH_RESERVED;