From 7bd24d951a69292b5a8090000541ece2142591ef Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Fri, 13 Apr 2018 15:18:26 -0400 Subject: [PATCH] glsl_to_tgsi: try harder to lower unsupported ir_binop_vector_extract MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This fixes some piglits. Cc: 18.0 Reviewed-by: Nicolai Hähnle --- src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp index 01a58d7d2c6..b321112cf88 100644 --- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp +++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp @@ -7124,6 +7124,11 @@ st_link_shader(struct gl_context *ctx, struct gl_shader_program *prog) } while (progress); } + /* Do this again to lower ir_binop_vector_extract introduced + * by optimization passes. + */ + do_vec_index_to_cond_assign(ir); + validate_ir_tree(ir); } -- 2.30.2