st/program: use nir_lower_clip_disable instead of nir_lower_clip_vs conditionally
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 17 Jun 2020 13:40:51 +0000 (09:40 -0400)
committerMarge Bot <eric+marge@anholt.net>
Fri, 3 Jul 2020 08:56:30 +0000 (08:56 +0000)
commita79ca675f3d61d22853657831d8b1c3a6b27e9fa
tree1a396c859fb02e1a05eeaa75bc86939fc8b9f894
parentfb2fe802f638d7a70f0d00ec1d496f317d241765
st/program: use nir_lower_clip_disable instead of nir_lower_clip_vs conditionally

if the shader already outputs gl_ClipDistance, nir_lower_clip_vs will create
duplicate variables when what we want is to just change the existing values

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5529>
src/mesa/state_tracker/st_program.c