Revert "i965: use nir_lower_indirect_derefs() for GLSL"
This reverts commit 9404439a75
. I didn't
intend to push it and it breaks clip and cull distance.
This commit is contained in:
@@ -177,6 +177,16 @@ anv_shader_compile_to_nir(struct anv_device *device,
|
||||
|
||||
nir_shader_gather_info(nir, entry_point->impl);
|
||||
|
||||
nir_variable_mode indirect_mask = 0;
|
||||
if (compiler->glsl_compiler_options[stage].EmitNoIndirectInput)
|
||||
indirect_mask |= nir_var_shader_in;
|
||||
if (compiler->glsl_compiler_options[stage].EmitNoIndirectOutput)
|
||||
indirect_mask |= nir_var_shader_out;
|
||||
if (compiler->glsl_compiler_options[stage].EmitNoIndirectTemp)
|
||||
indirect_mask |= nir_var_local;
|
||||
|
||||
nir_lower_indirect_derefs(nir, indirect_mask);
|
||||
|
||||
return nir;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user