u_vbuf/translate: pass max_index into the set_buffer.
authorDave Airlie <airlied@redhat.com>
Thu, 8 Mar 2018 20:18:55 +0000 (06:18 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 12 Mar 2018 01:57:13 +0000 (11:57 +1000)
commite76cf1ff12703964262c7bdef6083e723f0b46ba
tree79e8ae1e90e8b6f0bc43c9c8918144126769cfd8
parent5d4fbc2b54cb2aaea1cbb52ec087f31009f3ac76
u_vbuf/translate: pass max_index into the set_buffer.

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