projects
/
profile
/
extras
/
intel-gpu-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d493325
)
lib/rendercopy: fix alloc len for gen7_bind_buf
author
Mika Kuoppala
<mika.kuoppala@intel.com>
Wed, 2 Apr 2014 12:13:21 +0000
(15:13 +0300)
committer
Mika 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
patch
|
blob
|
history
diff --git
a/lib/rendercopy_gen7.c
b/lib/rendercopy_gen7.c
index
1dc639f
..
cdbc70c
100644
(file)
--- 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) |