gallium/util: add alignment parameter to util_upload_index_buffer
authorErico Nunes <nunes.erico@gmail.com>
Sat, 7 Dec 2019 03:38:03 +0000 (04:38 +0100)
committerErico Nunes <nunes.erico@gmail.com>
Sat, 14 Dec 2019 06:44:43 +0000 (07:44 +0100)
commit8bf2b5db786b8608ddd7c83fffa695ae011bf6b3
treef71cb27c5e05fd2441fc826236d67cb1db407a69
parent9fb45c5bbd11fa54c0777021a236114e414207f8
gallium/util: add alignment parameter to util_upload_index_buffer

At least on Mali Utgard, index buffers need to be aligned on 0x40.
To avoid duplicating this, add an alignment parameter.
Keep the previous default for the other existing users.

Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2445>
src/gallium/auxiliary/util/u_helpers.c
src/gallium/auxiliary/util/u_helpers.h
src/gallium/drivers/etnaviv/etnaviv_context.c
src/gallium/drivers/freedreno/freedreno_draw.c
src/gallium/drivers/lima/lima_draw.c
src/gallium/drivers/zink/zink_draw.c