summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/rendercopy_gen7.c2
1 files changed, 1 insertions, 1 deletions
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) |