diff options
author | Mika Kuoppala <mika.kuoppala@intel.com> | 2014-04-02 15:13:21 +0300 |
---|---|---|
committer | Mika Kuoppala <mika.kuoppala@intel.com> | 2014-04-02 15:38:55 +0300 |
commit | b8afe98004ed0e082bf5d019a86f27a5909f0e4d (patch) | |
tree | 112a6986c735496e9813d6a92ac622ec30769ea8 /lib | |
parent | d4933259b84a304145634cc6ec5d9eebeb612711 (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.c | 2 |
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) | |