glsl: Return ir_variable from compare_index_block
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 15 Sep 2017 01:20:14 +0000 (18:20 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 2 Oct 2017 21:46:01 +0000 (14:46 -0700)
commit1f4fcdb2cabcc2cc8cdce87b5d233f3639cf378e
treeda47acd832ee82d60861873ba37a756080ca284f
parent4d009455f3e52ce2555ecbe1f346bebe76477885
glsl: Return ir_variable from compare_index_block

This is basically a wash now, but it simplifies later patches that
convert to using ir_builder.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Reviewed-by: Thomas Helland <thomashelland90@gmail.com>
src/compiler/glsl/ir_optimization.h
src/compiler/glsl/lower_variable_index_to_cond_assign.cpp
src/compiler/glsl/lower_vec_index_to_cond_assign.cpp