util/primconvert: handle rewriting of prim-restart draws with unsupported primtype
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Fri, 21 May 2021 10:47:32 +0000 (06:47 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 23 Jun 2021 03:13:41 +0000 (03:13 +0000)
commit583070748cb103560b173b5789998302d517b587
tree07e5ed4ac605884ff1e7c4871303e228dec5b423
parentf3fe70f10e5000e704ca010555140ef82a5af281
util/primconvert: handle rewriting of prim-restart draws with unsupported primtype

this is a bit more work, as the primitive restart needs to be rewritten into a multidraw,
then the multidraw converted to the new primitive type and serialized back into a
single draw

detection is handled using a new primconvert config member, which is set to the full
primtype mask by default for compatibility with existing drivers

Reviewed-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10973>
src/gallium/auxiliary/indices/u_primconvert.c
src/gallium/auxiliary/indices/u_primconvert.h