ac/nir: Cast sources of integer ops to int.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 23 Aug 2017 20:28:06 +0000 (22:28 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Thu, 24 Aug 2017 17:20:47 +0000 (19:20 +0200)
commit43595db30274f714e2b1f6120c2f5ec4c41614fe
treed1865ae7a8096dd46ecf9286ca565f273c5e7c0e
parent9e454408335d7b4b465ea17590f06426dffe0211
ac/nir: Cast sources of integer ops to int.

The int32->float semantic conversion got dropped in a testcase,
because the src was already float. On closer inspection I decided
to add a few more casts for integer op operands to be safe too.

Cc: 17.2 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/common/ac_nir_to_llvm.c