Mesa (master): anv: Combine ClipDistance and CullDistance arrays.

Kenneth Graunke kwg at kemper.freedesktop.org
Tue Nov 22 08:30:36 UTC 2016


Module: Mesa
Branch: master
Commit: a9eabd539cf75f8e0e0c1c012a7f5e666304dd9e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a9eabd539cf75f8e0e0c1c012a7f5e666304dd9e

Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Mon Oct  3 20:42:42 2016 -0700

anv: Combine ClipDistance and CullDistance arrays.

Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

---

 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 2fdc9cc..2cd06bd 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;




More information about the mesa-commit mailing list