zink: fix pv mode lowring index calculation
authorantonino <antonino.maniscalco@collabora.com>
Tue, 4 Apr 2023 10:20:37 +0000 (12:20 +0200)
committerMarge Bot <emma+marge@anholt.net>
Mon, 24 Apr 2023 08:59:19 +0000 (08:59 +0000)
commit436dacf75410144589abb835c2906e1a149abffb
tree5a3bd739703ddbf99365038a3c768e83716b02e6
parentaa45b13398547d7433479c91a5cf2ae904ef677e
zink: fix pv mode lowring index calculation

The provoking vertex mode pass was calculating an offset and then using
it directly instead of adding it to the base index.

Fixes: 5a4083349f3 ("zink: add provoking vertex mode lowering")
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22599>
src/gallium/drivers/zink/zink_compiler.c