glsl: fix gl_CullDistance xfb linking
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 21 Sep 2022 14:49:33 +0000 (10:49 -0400)
committerMarge Bot <emma+marge@anholt.net>
Fri, 23 Sep 2022 02:49:08 +0000 (02:49 +0000)
commit114679388122b2f6ebdcdaffc98d533f4b8fa50c
tree28a6f7c238552a8c48bff8c9472439b821ce9785
parenteb6aa25d166b994b87ca709cf38f8a4ad40a4c16
glsl: fix gl_CullDistance xfb linking

this matches the behavior for gl_ClipDistance

ref #7152

Fixes: 0c8492cd3b2 ("glsl: fix location for array subscript")

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18724>
src/compiler/glsl/gl_nir_link_varyings.c