zink: fix flat shading on filled quads
authorantonino <antonino.maniscalco@collabora.com>
Tue, 7 Feb 2023 16:01:52 +0000 (17:01 +0100)
committerMarge Bot <emma+marge@anholt.net>
Wed, 29 Mar 2023 19:18:40 +0000 (19:18 +0000)
commit027ba4ccefbefe468ca6c198b7a3404b3a0c3f23
tree6a929b67028f824d35f9550058df67d1f301ac9b
parent7eab64f1c66f24e0b054c024940c9513c4b9a298
zink: fix flat shading on filled quads

Quads emulated by zink will now have the correct provoking vertex.

Also outputs of the previous shader stage that would normally
not be passed down to the FS (when no GS is bound) will now be skipped.

Different provoking vertex modes are not handled yet.

Acked-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21238>
src/gallium/drivers/zink/zink_compiler.c