gallivm/nir: fix const loading on big endian systems
authorDave Airlie <airlied@redhat.com>
Sun, 28 Jun 2020 21:40:13 +0000 (07:40 +1000)
committerDave Airlie <airlied@redhat.com>
Sun, 28 Jun 2020 22:51:18 +0000 (08:51 +1000)
commit237d72841805a6964b8ebef17c044020e34b1141
tree0b84637ec5f2dc8de10b0f43ebd98c2041c91a3c
parent7d31bc9a34ccc4b8570c4145379177c007922504
gallivm/nir: fix const loading on big endian systems

The code was expecting the lower 32-bits of the 64-bit to be
what it wanted, don't be implicit, pull the value from the union.

This should fix rendering on big endian systems since NIR was
introduced.

Fixes: 44a6b0107b37 ("gallivm: add nir->llvm translation (v2)")
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5677>
src/gallium/auxiliary/gallivm/lp_bld_nir.c