lib/rendercopy: fix alloc len for gen7_bind_buf
authorMika Kuoppala <mika.kuoppala@intel.com>
Wed, 2 Apr 2014 12:13:21 +0000 (15:13 +0300)
committerMika Kuoppala <mika.kuoppala@intel.com>
Wed, 2 Apr 2014 12:38:55 +0000 (15:38 +0300)
Fortunately saved by the alignment.

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
lib/rendercopy_gen7.c

index 1dc639f..cdbc70c 100644 (file)
@@ -110,7 +110,7 @@ gen7_bind_buf(struct intel_batchbuffer *batch,
                read_domain = I915_GEM_DOMAIN_SAMPLER;
        }
 
-       ss = batch_alloc(batch, sizeof(*ss), 32);
+       ss = batch_alloc(batch, 8 * sizeof(*ss), 32);
 
        ss[0] = (GEN7_SURFACE_2D << GEN7_SURFACE_TYPE_SHIFT |
                 gen7_tiling_bits(buf->tiling) |