nir: fix nir_link_varying_precision
authorChia-I Wu <olvaffe@gmail.com>
Thu, 1 Dec 2022 19:17:04 +0000 (11:17 -0800)
committerMarge Bot <emma+marge@anholt.net>
Tue, 6 Dec 2022 02:00:36 +0000 (02:00 +0000)
commit7244d885164aa59ca136358d256a0078b24a455d
treed5a2892273edff147267dec43391bc2573e4ae5a
parent4663d6fc9c1291dee014057d25245b62a1ec6738
nir: fix nir_link_varying_precision

link_varyings ignores precisions and can assign the same location to
variables with different precisions.  nir_link_varying_precision should
check location_frac as well.

Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20113>
src/compiler/nir/nir_linking_helpers.c