nir: Rewrite lower_clip_cull_distance_arrays to do a lot less lowering
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 13 Feb 2019 22:15:42 +0000 (16:15 -0600)
committerJason Ekstrand <jason@jlekstrand.net>
Thu, 21 Feb 2019 00:08:42 +0000 (00:08 +0000)
commit4e69fba534e7377f3bc6c40c73e6bc5c23437d4e
tree7e51c4de4c2675e24f034ef3493eb09022e525b6
parent8f0fe71cc5658728adc273daa03400aab7ec6d93
nir: Rewrite lower_clip_cull_distance_arrays to do a lot less lowering

Instead of going to all the work of to combine them into one array, just
make two arrays and use location_frac to colocate them within CLIP0.
Then the back-end can sort things out and stack them on top of each
other.  Thanks to ef99f4c8, we also don't need to set compact anymore.

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/nir/nir_lower_clip_cull_distance_arrays.c