mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
ir_to_mesa: Don't do lowering passes on an errored-out shader.
This commit is contained in:
parent
b29d31cd67
commit
4802fd905a
1 changed files with 6 additions and 6 deletions
|
|
@ -2185,13 +2185,13 @@ _mesa_glsl_compile_shader(GLcontext *ctx, struct gl_shader *shader)
|
|||
if (!state->error && !state->translation_unit.is_empty())
|
||||
_mesa_ast_to_hir(shader->ir, state);
|
||||
|
||||
/* Lowering */
|
||||
do_mat_op_to_vec(shader->ir);
|
||||
do_mod_to_fract(shader->ir);
|
||||
do_div_to_mul_rcp(shader->ir);
|
||||
|
||||
/* Optimization passes */
|
||||
if (!state->error && !shader->ir->is_empty()) {
|
||||
/* Lowering */
|
||||
do_mat_op_to_vec(shader->ir);
|
||||
do_mod_to_fract(shader->ir);
|
||||
do_div_to_mul_rcp(shader->ir);
|
||||
|
||||
/* Optimization passes */
|
||||
bool progress;
|
||||
do {
|
||||
progress = false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue