anv/pipeline: Only lower input indirects if EmitNoIndirectInput is set
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 27 Jan 2016 05:45:21 +0000 (21:45 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 27 Jan 2016 05:45:21 +0000 (21:45 -0800)
src/vulkan/anv_pipeline.c

index f52b78628cc6f0e353478fecbe4edc55cd035e26..40f26d708ee560cec809a3bbcfcd94c240bd013b 100644 (file)
@@ -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;