mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 23:40:12 +01:00
nir/glsl: Use lower_outputs_to_temporaries instead of relying on GLSL IR
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
parent
1dbe4af9c9
commit
b828f7a27b
2 changed files with 2 additions and 3 deletions
|
|
@ -138,6 +138,8 @@ glsl_to_nir(struct gl_shader *sh, const nir_shader_compiler_options *options)
|
|||
v2.run(sh->ir);
|
||||
visit_exec_list(sh->ir, &v1);
|
||||
|
||||
nir_lower_outputs_to_temporaries(shader);
|
||||
|
||||
return shader;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -322,9 +322,6 @@ process_glsl_ir(gl_shader_stage stage,
|
|||
options, ctx->Const.NativeIntegers) || progress;
|
||||
} while (progress);
|
||||
|
||||
if (options->NirOptions != NULL)
|
||||
lower_output_reads(stage, shader->ir);
|
||||
|
||||
validate_ir_tree(shader->ir);
|
||||
|
||||
/* Now that we've finished altering the linked IR, reparent any live IR back
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue