lima: use imul for calculations with intrinsic src
authorVasily Khoruzhick <anarsoul@gmail.com>
Thu, 23 Jan 2020 04:30:31 +0000 (20:30 -0800)
committerMarge Bot <eric+marge@anholt.net>
Thu, 23 Jan 2020 21:16:22 +0000 (21:16 +0000)
commitbeab31b9bb58913ea8abf61765d7788f5cb2f04e
tree8b42f81de6c1de5ebcb91ce5ef84a8a412c5694e
parent3c754900b5f689b821cbb1162b821ce12bcaf23e
lima: use imul for calculations with intrinsic src

It's source is supposed to be int, so we have to use integer
multiplication otherwise we'll get undefined result.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Erico Nunes <nunes.erico@gmail.com>
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3529>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3529>
src/gallium/drivers/lima/ir/lima_nir_lower_uniform_to_scalar.c