nir/lower_clip: Fix incorrect driver loc for clipdist outputs
authorRob Clark <robdclark@chromium.org>
Wed, 4 Dec 2019 00:28:26 +0000 (16:28 -0800)
committerRob Clark <robdclark@chromium.org>
Wed, 4 Dec 2019 21:08:52 +0000 (13:08 -0800)
commit372ed42d222a274abe712b62f4b037cbeb6fddb5
tree6f0086b3b4b4cf28affe7cd08b1985f3bfe84512
parent937b9055698be0dfdb7d2e0673a989e2ecc05912
nir/lower_clip: Fix incorrect driver loc for clipdist outputs

Somehow adjusting maxloc based on existing outputs got lost, resulting
in the clipdist varying clobbering the position varying.  Causing a
shader that had no position output in freedreno/ir3, which triggers GPU
hangs in neverball.

Fixes: d0f746b6458 ("nir: Save nir_variable pointers in nir_lower_clip_vs rather than locs.")
Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
src/compiler/nir/nir_lower_clip.c