zink: run optimize_nir() only once during compile
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Tue, 19 Oct 2021 18:39:32 +0000 (14:39 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 27 Oct 2021 17:13:26 +0000 (17:13 +0000)
commit14f7eb9d4c0b2727c7e14027d82f86cf41cecc62
tree9f1ce0bd4301e77b1a8bc1dcc129105f61519deb
parent16f838576cf29e26f1af198ac93a0fb3a3cfad8f
zink: run optimize_nir() only once during compile

running all the optimizer passes repeatedly is stupid

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