nir: fix nir_link_varying_precision
authorChia-I Wu <olvaffe@gmail.com>
Thu, 1 Dec 2022 19:17:04 +0000 (11:17 -0800)
committerEric Engestrom <eric@engestrom.ch>
Wed, 14 Dec 2022 20:47:01 +0000 (20:47 +0000)
commit3ef6b27bded978d6f1c32dd682082964b480d3cd
treef0bb520b04f55e302e59a9beddea0db709e8ab1d
parent7b5ba2d3639c6eb79a48645d6a2b9f311b552a86
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>
(cherry picked from commit 7244d885164aa59ca136358d256a0078b24a455d)
.pick_status.json
src/compiler/nir/nir_linking_helpers.c