nir/serialize: cast swizzle before shifting
authorKarol Herbst <kherbst@redhat.com>
Wed, 11 Dec 2019 15:01:15 +0000 (16:01 +0100)
committerKarol Herbst <karolherbst@gmail.com>
Sat, 21 Dec 2019 11:00:16 +0000 (11:00 +0000)
commitc83b1a4560284153e78bbd836556340356dc30fb
tree641c33b7621e30e04159ca39012e191ef433a579
parente6b2af56cb037e3174d049478e0ad7c7715780e4
nir/serialize: cast swizzle before shifting

fixes undefined behaviour with enabled vec16

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/compiler/nir/nir_serialize.c