i915g: kill remnants of mmapped batchbuffer support
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 5 Dec 2010 12:23:40 +0000 (13:23 +0100)
committerJakob Bornecrantz <wallbraker@gmail.com>
Sun, 20 Feb 2011 23:50:16 +0000 (00:50 +0100)
We're using bo_subdata.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
src/gallium/winsys/i915/drm/i915_drm_batchbuffer.c

index ebe86dcf196d0a2b39da746724219bb4bea10e25..4cfc4a9005f8462be4dcce7067dbda82dcd85f9e 100644 (file)
@@ -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;