anv: Combine ClipDistance and CullDistance arrays.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 4 Oct 2016 03:42:42 +0000 (20:42 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 22 Nov 2016 08:29:23 +0000 (00:29 -0800)
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_pipeline.c

index 2fdc9cc7b366d3c8bae160b3691b9beb2b997a1f..2cd06bd78d55944971b065e5886f846e0424b202 100644 (file)
@@ -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;