i965: Add cases for ir_binop_vector_extract that assert.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 17 May 2013 17:33:40 +0000 (10:33 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 20 May 2013 17:19:30 +0000 (10:19 -0700)
commite1e887679786cf3882e83b2a194f046b34a71f05
tree0b75be06b79182ca6f570478647398b7af1a93c9
parentf6beb4c6b647b0d5077c7abd6c99cdaba6e0c112
i965: Add cases for ir_binop_vector_extract that assert.

do_vec_index_to_swizzle() should remove any vector extract operations
with a constant index.  It's unconditionally called from
do_common_optimization().

do_vec_index_to_cond_assign() should remove the rest, and it is
unconditionally called from brw_link_shader().  This means that we
should never see ir_binop_vector_extract in the backend.

Silences compiler warnings.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_fs_channel_expressions.cpp
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp