lib/intel_batchbuffer: drop cpu_mapping from igt_buf
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Sat, 22 Mar 2014 17:04:52 +0000 (18:04 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sat, 22 Mar 2014 17:04:52 +0000 (18:04 +0100)
It's unused. There's still num_tiles getting in the way of things,
but that is used by gem_stress a bit.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
lib/intel_batchbuffer.h
tests/gem_ringfill.c
tests/gem_seqno_wrap.c

index 3daf33c..6a65f6f 100644 (file)
@@ -201,7 +201,6 @@ struct igt_buf {
     uint32_t stride;
     uint32_t tiling;
     uint32_t *data;
-    uint32_t *cpu_mapping;
     uint32_t size;
     unsigned num_tiles;
 };
index 3c3df73..ef98701 100644 (file)
@@ -126,7 +126,6 @@ static int check_ring(drm_intel_bufmgr *bufmgr,
 
        src.stride = 4 * width;
        src.tiling = 0;
-       src.data = src.cpu_mapping = NULL;
        src.size = 4 * width * height;
        src.num_tiles = 4 * width * height;
        dst = tmp = src;
index 25f11b4..f974032 100644 (file)
@@ -79,7 +79,6 @@ static void init_buffer(drm_intel_bufmgr *bufmgr,
        buf->size = width * height * 4;
        igt_assert(buf->bo);
        buf->tiling = I915_TILING_NONE;
-       buf->data = buf->cpu_mapping = NULL;
        buf->num_tiles = width * height * 4;
        buf->stride = width * 4;
 }