i965: Handle ir_triop_csel in emit_if_gen6().
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 4 Sep 2014 07:18:43 +0000 (00:18 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 8 Sep 2014 22:43:49 +0000 (15:43 -0700)
commit6272e60ca394a8da178d3352831a48f4c429a3bc
treedf3f503136f9028c7290fb8c1e1854b223a7951c
parent12fb74fe895fe9954df127ca0ec6e4422fffb156
i965: Handle ir_triop_csel in emit_if_gen6().

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

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

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