summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMika Kuoppala <mika.kuoppala@intel.com>2014-04-02 15:13:21 +0300
committerMika Kuoppala <mika.kuoppala@intel.com>2014-04-02 15:38:55 +0300
commitb8afe98004ed0e082bf5d019a86f27a5909f0e4d (patch)
tree112a6986c735496e9813d6a92ac622ec30769ea8 /lib
parentd4933259b84a304145634cc6ec5d9eebeb612711 (diff)
lib/rendercopy: fix alloc len for gen7_bind_buf
Fortunately saved by the alignment. Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
Diffstat (limited to 'lib')
-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) |