[Mesa-dev] [PATCH 08/14] anv: Combine ClipDistance and CullDistance arrays.

Kenneth Graunke kenneth at whitecape.org
Tue Nov 15 01:41:32 UTC 2016


Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
---
 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 bdc2f01..ab268c6 100644
--- a/src/intel/vulkan/anv_pipeline.c
+++ b/src/intel/vulkan/anv_pipeline.c
@@ -166,6 +166,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.10.2



More information about the mesa-dev mailing list