st/glsl->tgsi: fix u64 to bool comparisons.
authorDave Airlie <airlied@redhat.com>
Thu, 14 Sep 2017 04:03:19 +0000 (05:03 +0100)
committerDave Airlie <airlied@redhat.com>
Thu, 14 Sep 2017 23:49:50 +0000 (09:49 +1000)
commita7a7bf21bdf0cf8e59f8c8e17c2580a363be7055
tree6ed22699d036fb8311dd4109e7f7563a91f19933
parent62f2670cbaa8ce22972c21511f0f83e79344b84d
st/glsl->tgsi: fix u64 to bool comparisons.

Otherwise we end up using a 32-bit comparison which didn't end well.

Timothy caught this while playing around with some opt passes.

Fixes: 278580729a (st/glsl_to_tgsi: add support for 64-bit integers)
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp