radv: Handle clip+cull distances more generally as compact arrays.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sat, 16 Feb 2019 01:24:14 +0000 (02:24 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 20 Feb 2019 22:49:52 +0000 (22:49 +0000)
commit1ef2855692d53349588fa3a9b425c9ae229e5e14
tree965b22ff25fbfd4e13ecfe0c433a52ae5c3f1ef2
parent8cfc17bdda31a381bfbaadc75f0d34dada0e8c91
radv: Handle clip+cull distances more generally as compact arrays.

Needed for https://gitlab.freedesktop.org/mesa/mesa/merge_requests/248 .

That MR keeps the clip and cull arrays split.

So we have to handle
 - compact arrays with location_frac != 0
 - VARYING_SLOT_CLIP_DIST1

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/common/ac_nir_to_llvm.c
src/amd/vulkan/radv_nir_to_llvm.c
src/amd/vulkan/radv_shader.h
src/amd/vulkan/radv_shader_info.c