st/mesa: lower global vars to local after lowering clip
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 28 Oct 2019 13:02:02 +0000 (14:02 +0100)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 28 Oct 2019 21:17:40 +0000 (21:17 +0000)
commit21b7f79a76923359237cbdbdfe6d1ffede4a34e4
treef95f7666cdd57ae1523a61592553a402d67e018c
parent3ac688b0c2ee1b65418fa002706be663b2d070ae
st/mesa: lower global vars to local after lowering clip

When this code was merged, this wasn't necessary because the
state-tracker would do it later anyway. But this recently got changed,
without changing the code that depended on this.

Arguably, this was a mistake in the lowering pass to begin with. Either
way, let's fix it by not assuming that the lowering code gets called
later when it's not needed.

This fixed user-defined clip-planes in Zink.

Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Fixes: eaffdad1082 ("st/mesa: don't lower_global_vars_to_local for VS if there are no dead inputs")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_program.c