mesa/st: only convert AND(a, NOT(b)) into MAD when not using native integers
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 3 Aug 2014 05:27:32 +0000 (01:27 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sun, 3 Aug 2014 14:05:53 +0000 (10:05 -0400)
commit7b3d0a9a1eb11bf70390ad116ed662a47f06183e
tree81108329cd41668e2331723a54da859842a3a2fe
parent152006e149501a803aed0e705eb9b4d2f400ab35
mesa/st: only convert AND(a, NOT(b)) into MAD when not using native integers

Native integers imply a somewhat different handling of booleans. Instead
of being 1.0/0.0 floats, they are 0 (true) / -1 (false) integers. As such
the original optimization no longer applies.

Reported-by: Glenn Kennard <glenn.kennard@gmail.com>
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Cc: "10.2" <mesa-stable@lists.freedesktop.org>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp