st/mesa: fix up result_src.type when doing i2u/u2i conversions
authorIlia Mirkin <imirkin@alum.mit.edu>
Tue, 16 Feb 2016 07:12:29 +0000 (02:12 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Wed, 17 Feb 2016 18:30:33 +0000 (13:30 -0500)
commit49c67926c7a74440ef91674fa0a4595bfa179dd5
treee8cc70a89f3b6cea058ce828ae506bb8cd00a8f8
parent5e52df21982eca6188c57f147ff6cc7361b3a61a
st/mesa: fix up result_src.type when doing i2u/u2i conversions

Even though it's a no-op, it's important to keep track of the type so
that we can pick the properly-signed op later on.

This fixes dEQP-GLES3.functional.shaders.precision.uint.highp_div_fragment,
which ended up using IDIV instead of UDIV.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Cc: mesa-stable@lists.freedesktop.org
src/mesa/state_tracker/st_glsl_to_tgsi.cpp