nouveau: fix handling draw info
authorMarek Olšák <marek.olsak@amd.com>
Sun, 22 Nov 2020 07:22:45 +0000 (02:22 -0500)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 5 Jan 2021 00:22:33 +0000 (19:22 -0500)
commitcbdc00ac3a6170e61d36233560e5b3ce83098906
tree32adbb313cdcc2c249a194d61446b747bcacf75d
parentf2e281c231920c29fab0a72771696aba30c54e0d
nouveau: fix handling draw info

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

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7679>
src/gallium/drivers/nouveau/nv30/nv30_vbo.c
src/gallium/drivers/nouveau/nv50/nv50_push.c
src/gallium/drivers/nouveau/nv50/nv50_vbo.c
src/gallium/drivers/nouveau/nvc0/nvc0_vbo.c