u_vbuf: Regard non-constant vbufs with non-instance elements as free
authorPaul Cercueil <paul@crapouillou.net>
Tue, 19 Nov 2019 21:10:10 +0000 (22:10 +0100)
committerMarge Bot <eric+marge@anholt.net>
Sat, 21 Dec 2019 18:29:30 +0000 (18:29 +0000)
commitc6ef79c488bb5fffde31e7065fd3e575f3c25fb5
treedea8fc13bfe3fa64c0b4707d95eac715e343f582
parent87a6029ccf531d5d7400664d89ca2356760f87ec
u_vbuf: Regard non-constant vbufs with non-instance elements as free

In the case of unroll_indices, we can regard all non-constant
vertex buffers with only non-instance vertex elements as incompatible
and thus free.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2807>
src/gallium/auxiliary/util/u_vbuf.c