anv/pipeline: Lower indirect temporaries and inputs

This commit is contained in:
Jason Ekstrand
2016-01-05 13:42:00 -08:00
parent bff45dc44e
commit ec899f6b42
+6
View File
@@ -143,6 +143,12 @@ 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);
if (compiler->glsl_compiler_options[stage].EmitNoIndirectTemp)
indirect_mask |= 1 << nir_var_local;
nir_lower_indirect_derefs(nir, indirect_mask);
return nir;
}