st/mesa: make sure to create a "clean" bool when doing i2b
authorIlia Mirkin <imirkin@alum.mit.edu>
Thu, 7 May 2015 03:29:33 +0000 (23:29 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Mon, 11 May 2015 19:52:17 +0000 (15:52 -0400)
commit2b5355c8ab383d86bb6332dd29c417a6a1bc52bd
treef1db8bb5bb9b55a344fccde36e48551c4f7982a8
parent9c4dc98b298c74015f2a7c21571bccf0a5b6cc98
st/mesa: make sure to create a "clean" bool when doing i2b

i2b has to work for all integers, not just 1. INEG would not necessarily
result with all bits set, which is something that other operations can
rely on by e.g. using AND (or INEG for b2i).

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Cc: mesa-stable@lists.freedesktop.org
src/mesa/state_tracker/st_glsl_to_tgsi.cpp