aux/indices: include provoking vertex check in prim type conversion
authorNeha Bhende <bhenden@vmware.com>
Mon, 14 Jun 2021 22:49:15 +0000 (15:49 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 15 Jun 2021 19:27:50 +0000 (19:27 +0000)
commit532472da0b6c5facf9f0e380f1f6a6e340c9bac4
tree01474d21e8823c85712f3de138e8c5dcedde8737
parentfd23a54c71c9bbf79fe478881a66aa02b7034823
aux/indices: include provoking vertex check in prim type conversion

Include provoking vertex checking in u_index_prim_type_convert() to make sure
the right primitive type is returned from the generator function.

Fixes google earth running on VMware svga device on hw version 11.

Fixes: cad2026b72cf ("aux/indices: break out primitive type conversion to separate function")

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11367>
src/gallium/auxiliary/indices/u_indices.c
src/gallium/auxiliary/indices/u_indices.h