projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d4fbc2
)
u_vbuf/translate: pass max_index into the set_buffer.
author
Dave Airlie
<airlied@redhat.com>
Thu, 8 Mar 2018 20:18:55 +0000
(06:18 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Mon, 12 Mar 2018 01:57:13 +0000
(11:57 +1000)
This fixes a memory trashing crash (not the test) seen with
dEQP-GLES3.stress.draw.unaligned_data.random.203
on virgl.
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/auxiliary/util/u_vbuf.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_vbuf.c
b/src/gallium/auxiliary/util/u_vbuf.c
index d30a702210acaf5f9e62d0224299b712b982c2be..95d7990c6ca4591e4a12632a166b36304c5cce11 100644
(file)
--- a/
src/gallium/auxiliary/util/u_vbuf.c
+++ b/
src/gallium/auxiliary/util/u_vbuf.c
@@
-448,7
+448,7
@@
u_vbuf_translate_buffers(struct u_vbuf *mgr, struct translate_key *key,
map -= (ptrdiff_t)vb->stride * min_index;
}
- tr->set_buffer(tr, i, map, vb->stride,
~0
);
+ tr->set_buffer(tr, i, map, vb->stride,
info->max_index
);
}
/* Translate. */