gallivm: Fix saturated signed psub/padd intrinsics on llvm 8
authorRoland Scheidegger <sroland@vmware.com>
Thu, 17 Oct 2019 02:14:28 +0000 (04:14 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Thu, 17 Oct 2019 15:42:16 +0000 (17:42 +0200)
commit045f05a2f68c301c850a38a511c8e254080fce9a
tree0d635a56e90a1e4f13e69e115392b6de97301e4e
parentc644644c651b5e852a2d7da3a89fbef1fa09669b
gallivm: Fix saturated signed psub/padd intrinsics on llvm 8

LLVM 8 did remove both the signed and unsigned sse2/avx intrinsics in
the end, and provide arch-independent llvm intrinsics instead.
Fixes a crash when using snorm framebuffers (tested with piglit
arb_color_buffer_float-render GL_RGBA8_SNORM -auto).

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
CC: <mesa-stable@lists.freedesktop.org>
src/gallium/auxiliary/gallivm/lp_bld_arit.c