From: Jason Ekstrand Date: Wed, 27 Jan 2016 05:45:21 +0000 (-0800) Subject: anv/pipeline: Only lower input indirects if EmitNoIndirectInput is set X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dc3de6f8df8784c477946d50baa7b5634f06b461;p=mesa.git anv/pipeline: Only lower input indirects if EmitNoIndirectInput is set --- diff --git a/src/vulkan/anv_pipeline.c b/src/vulkan/anv_pipeline.c index f52b78628cc..40f26d708ee 100644 --- a/src/vulkan/anv_pipeline.c +++ b/src/vulkan/anv_pipeline.c @@ -171,7 +171,9 @@ anv_shader_compile_to_nir(struct anv_device *device, nir_shader_gather_info(nir, entry_point->impl); - uint32_t indirect_mask = (1 << nir_var_shader_in); + uint32_t indirect_mask = 0; + if (compiler->glsl_compiler_options[stage].EmitNoIndirectInput) + indirect_mask |= (1 << nir_var_shader_in); if (compiler->glsl_compiler_options[stage].EmitNoIndirectTemp) indirect_mask |= 1 << nir_var_local;