nir: Allow nir_format conversions to work on 32-bit values
authorIcecream95 <ixn@keemail.me>
Wed, 26 Feb 2020 06:29:03 +0000 (19:29 +1300)
committerMarge Bot <eric+marge@anholt.net>
Fri, 28 Feb 2020 11:52:40 +0000 (11:52 +0000)
commit574b03eebfba1a4b9de1a497857f0bbdca76ef19
treee423af9c2e45dae5606a450e7bbb128733d5a308
parentcf69b9635a7fca9b865fe673073f1baff83bf759
nir: Allow nir_format conversions to work on 32-bit values

The constant has to changed to unsigned long long, as shifting a
32-bit value by 32 is undefined behaviour.

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3943>
src/compiler/nir/nir_format_convert.h