From: Marek Olšák Date: Fri, 13 Apr 2018 19:18:26 +0000 (-0400) Subject: glsl_to_tgsi: try harder to lower unsupported ir_binop_vector_extract X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7bd24d951a69292b5a8090000541ece2142591ef;p=mesa.git glsl_to_tgsi: try harder to lower unsupported ir_binop_vector_extract This fixes some piglits. Cc: 18.0 Reviewed-by: Nicolai Hähnle --- 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); }