From: Jason Ekstrand Date: Thu, 16 Jun 2016 17:57:39 +0000 (-0700) Subject: anv/pipeline: Do invariance propagation on SPIR-V shaders X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e6c2fe451962e364f30f689dc48c34e2b6161b25;p=mesa.git anv/pipeline: Do invariance propagation on SPIR-V shaders Signed-off-by: Jason Ekstrand Reviewed-by: Kenneth Graunke Cc: "12.0" --- diff --git a/src/intel/vulkan/anv_pipeline.c b/src/intel/vulkan/anv_pipeline.c index b41e11e5dca..1c54081d47c 100644 --- a/src/intel/vulkan/anv_pipeline.c +++ b/src/intel/vulkan/anv_pipeline.c @@ -165,6 +165,9 @@ anv_shader_compile_to_nir(struct anv_device *device, nir_remove_dead_variables(nir, nir_var_system_value); nir_validate_shader(nir); + nir_propagate_invariant(nir); + nir_validate_shader(nir); + nir_lower_io_to_temporaries(entry_point->shader, entry_point, true, false); nir_lower_system_values(nir);