Skip to content
Commit 721011c6 authored by Faith Ekstrand's avatar Faith Ekstrand Committed by Dylan Baker
Browse files

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: default avatarAlejandro Piñeiro <apinheiro@igalia.com>
Reviewed-by: default avatarKenneth Graunke <kenneth@whitecape.org>
(cherry picked from commit 4e69fba5)
Conflicts resolved by Dylan

Conflicts:
	src/compiler/nir/nir_lower_clip_cull_distance_arrays.c
parent fdc25b9b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment