st/nir: Call nir_lower_clip_cull_distance_arrays().
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 23 Jan 2019 10:44:28 +0000 (02:44 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 5 Feb 2019 21:58:46 +0000 (13:58 -0800)
commitcf731564e6d335c987c47d41817b75df8a637dde
treea852effa03b36e20d8333cd9d810e96c516bd1e6
parent15c69021176395a08febde51ce14a43a15fee07d
st/nir: Call nir_lower_clip_cull_distance_arrays().

Today, st always sets LowerCombinedClipCullDistance, causing the GLSL IR
lowering to run, giving us vec4[2] arrays.  I would like to disable this
and instead run the NIR lowering so that we get compact float[] arrays
instead.

Calling the new pass is a noop if the GLSL IR pass has already run, so
it's safe to call the pass unconditionally.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mesa/state_tracker/st_glsl_to_nir.cpp