i965: Handle ir_triop_csel in emit_bool_to_cond_code().
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 22 Aug 2014 19:19:49 +0000 (12:19 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 4 Sep 2014 00:12:03 +0000 (17:12 -0700)
commit8270b048cf23ee8a8d5377a3af62fce7086e9c61
treee9dab4ceadb05ad57e35e968fe2385b454d8ab96
parentf92fbd554f2e9e702a2bd650c9b2571a3f4f1ab8
i965: Handle ir_triop_csel in emit_bool_to_cond_code().

ir_triop_csel can return a boolean expression, so we need to handle it
here; we simply forgot when we added it.

Fixes Piglit's EXT_shader_integer_mix/{vs,fs}-mix-if-bool.

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