From a9eabd539cf75f8e0e0c1c012a7f5e666304dd9e Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Mon, 3 Oct 2016 20:42:42 -0700 Subject: [PATCH] anv: Combine ClipDistance and CullDistance arrays. Signed-off-by: Kenneth Graunke Reviewed-by: Jason Ekstrand --- src/intel/vulkan/anv_pipeline.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/intel/vulkan/anv_pipeline.c b/src/intel/vulkan/anv_pipeline.c index 2fdc9cc7b36..2cd06bd78d5 100644 --- a/src/intel/vulkan/anv_pipeline.c +++ b/src/intel/vulkan/anv_pipeline.c @@ -169,6 +169,9 @@ anv_shader_compile_to_nir(struct anv_device *device, nir = brw_preprocess_nir(compiler, nir); + nir_lower_clip_cull_distance_arrays(nir); + nir_validate_shader(nir); + nir_shader_gather_info(nir, entry_point->impl); nir_variable_mode indirect_mask = 0; -- 2.30.2