anv/pipeline: Use the right mask for lower_indirect_derefs

This commit is contained in:
Jason Ekstrand 2016-04-14 15:12:41 -07:00
parent 34b5db17d9
commit e61c812f76
1 changed files with 3 additions and 3 deletions

View File

@ -174,11 +174,11 @@ anv_shader_compile_to_nir(struct anv_device *device,
nir_shader_gather_info(nir, entry_point->impl);
uint32_t indirect_mask = 0;
nir_variable_mode indirect_mask = 0;
if (compiler->glsl_compiler_options[stage].EmitNoIndirectInput)
indirect_mask |= (1 << nir_var_shader_in);
indirect_mask |= nir_var_shader_in;
if (compiler->glsl_compiler_options[stage].EmitNoIndirectTemp)
indirect_mask |= 1 << nir_var_local;
indirect_mask |= nir_var_local;
nir_lower_indirect_derefs(nir, indirect_mask);