gallivm: fix find lsb
authorDave Airlie <airlied@redhat.com>
Mon, 20 Jan 2020 04:56:36 +0000 (14:56 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 23 Jan 2020 03:48:16 +0000 (13:48 +1000)
commit48ab21109cf2eb114ea0b0a298e4c58954323ff6
tree4163753e0306ca36602ab8e4fdb7b05c18e7ab25
parent1e433c398ebeacd28cd565569eae0caba2638d18
gallivm: fix find lsb

the GLSL return value is different than the llvm intrinsic.

Fixes arb gpu shader5 tests

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3528>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3528>
src/gallium/auxiliary/gallivm/lp_bld_bitarit.c