From b8afe98004ed0e082bf5d019a86f27a5909f0e4d Mon Sep 17 00:00:00 2001 From: Mika Kuoppala Date: Wed, 2 Apr 2014 15:13:21 +0300 Subject: lib/rendercopy: fix alloc len for gen7_bind_buf Fortunately saved by the alignment. Reviewed-by: Chris Wilson Signed-off-by: Mika Kuoppala --- lib/rendercopy_gen7.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rendercopy_gen7.c b/lib/rendercopy_gen7.c index 1dc639f3..cdbc70c1 100644 --- a/lib/rendercopy_gen7.c +++ b/lib/rendercopy_gen7.c @@ -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) | -- cgit v1.2.3