summaryrefslogtreecommitdiffstats
path: root/src/intel
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2016-10-03 20:42:42 -0700
committerKenneth Graunke <[email protected]>2016-11-22 00:29:23 -0800
commita9eabd539cf75f8e0e0c1c012a7f5e666304dd9e (patch)
treeb9cecbdaa15d5fcc246615ff9ffca74edc319c01 /src/intel
parent9a179f2db090bfb5643779ac84c2b61fe525a780 (diff)
anv: Combine ClipDistance and CullDistance arrays.
Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel')
-rw-r--r--src/intel/vulkan/anv_pipeline.c3
1 files changed, 3 insertions, 0 deletions
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;