projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d25a27e
)
freedreno/a6xx: fix debug build crash
author
Rob Clark
<robdclark@gmail.com>
Mon, 20 Aug 2018 14:55:37 +0000
(10:55 -0400)
committer
Rob Clark
<robdclark@gmail.com>
Wed, 5 Sep 2018 17:38:43 +0000
(13:38 -0400)
Porting
0c8d9e923aa9239e20f9bc969faf9caa0b85237f
to a6xx.
Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/a6xx/fd6_emit.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/freedreno/a6xx/fd6_emit.c
b/src/gallium/drivers/freedreno/a6xx/fd6_emit.c
index 1be407670a69a847c10e4c4611349abe5b074549..3d39a3e0f51c75a35ab3f4a757ae806488453e7c 100644
(file)
--- a/
src/gallium/drivers/freedreno/a6xx/fd6_emit.c
+++ b/
src/gallium/drivers/freedreno/a6xx/fd6_emit.c
@@
-522,6
+522,13
@@
fd6_emit_vertex_bufs(struct fd_ringbuffer *ring, struct fd6_emit *emit)
uint32_t size = fd_bo_size(rsc->bo) - off;
debug_assert(fmt != ~0);
+#ifdef DEBUG
+ /* see dEQP-GLES31.stress.vertex_attribute_binding.buffer_bounds.bind_vertex_buffer_offset_near_wrap_10
+ */
+ if (off > fd_bo_size(rsc->bo))
+ continue;
+#endif
+
OUT_PKT4(ring, REG_A6XX_VFD_FETCH(j), 4);
OUT_RELOC(ring, rsc->bo, off, 0, 0);
OUT_RING(ring, size); /* VFD_FETCH[j].SIZE */