gallium: fix draw info setup in draw and utilities
authorMarek Olšák <marek.olsak@amd.com>
Sun, 22 Nov 2020 04:26:43 +0000 (23:26 -0500)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 5 Jan 2021 00:22:33 +0000 (19:22 -0500)
commit26dcbdb8e2b1da88940902db5bd31d626634a457
tree1e85c13e85729987d3303a7a250f75008f573106
parent05f35a50e3ad2b9e3e0dae1c4b1bed7c91908022
gallium: fix draw info setup in draw and utilities

index_bias is undefined if index_size == 0.
index bounds are undefined if index_bounds_valid == false.

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7679>
src/gallium/auxiliary/draw/draw_pt.c
src/gallium/auxiliary/indices/u_primconvert.c
src/gallium/auxiliary/util/u_vbuf.c