From 5d98592e04da5e683280aeb24b44937ad47366cf Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Mon, 11 Dec 2023 12:37:49 +1100 Subject: [PATCH] mesa/st: drop additional validate_ir_tree() call MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is not needed. validate_ir_tree() is called at the end of the glsl ir linker and the IR is not modified again after so we can drop this. Reviewed-by: Marek Olšák Part-of: --- src/mesa/state_tracker/st_glsl_to_nir.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/mesa/state_tracker/st_glsl_to_nir.cpp b/src/mesa/state_tracker/st_glsl_to_nir.cpp index d691ac96253..bba2e0a7f9e 100644 --- a/src/mesa/state_tracker/st_glsl_to_nir.cpp +++ b/src/mesa/state_tracker/st_glsl_to_nir.cpp @@ -523,8 +523,6 @@ st_link_glsl_to_nir(struct gl_context *ctx, if (shader_program->data->spirv) { prog->nir = _mesa_spirv_to_nir(ctx, shader_program, shader->Stage, options); } else { - validate_ir_tree(shader->ir); - if (ctx->_Shader->Flags & GLSL_DUMP) { _mesa_log("\n"); _mesa_log("GLSL IR for linked %s program %d:\n",