gallium/u_vbuf: use updated pipe_draw_start_count while using draw_vbo
authorNeha Bhende <bhenden@vmware.com>
Tue, 16 Mar 2021 22:20:28 +0000 (15:20 -0700)
committerMarge Bot <eric+marge@anholt.net>
Thu, 18 Mar 2021 02:09:45 +0000 (02:09 +0000)
commitc6c532faa8cf172715b38783ec7175b626a63944
treef21ea41e76ef768521065306d8bb226646896c88
parent1b9d8d7fdfad64b68bf9828e3be1498fdaee90eb
gallium/u_vbuf: use updated pipe_draw_start_count while using draw_vbo

new_draw has updated draw count. Stale info in draw caused regression
with piglit gl-3.0-multidrawarrays-vertexid -indirect

fixes piglit test ./gl-3.0-multidrawarrays-vertexid -indirect

Fixes: 1cd455b17b7a ("gallium: extend draw_vbo to support multi draws")

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9656>
src/gallium/auxiliary/util/u_vbuf.c