zink: improve detection for broken drawids
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 14 Jul 2021 18:21:24 +0000 (14:21 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 14 Jul 2021 19:20:09 +0000 (19:20 +0000)
commitd08c84ab0c3ab1f8061e5d9ea1bcff2ed8b6cf57
treecadc74f788cde4c7a032662d5d2407b8e4ec6c8a
parent28c5e88931a0d5a37df50915686d027e2ca81f0d
zink: improve detection for broken drawids

this is also broken for multidraws where drawid shouldn't be incremented

Fixes: 2d32d123e56 ("zink: avoid unnecessarily rewriting gl_DrawID")

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11878>
src/gallium/drivers/zink/zink_draw.c