mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
gallivm: use #ifdef not #if for PIPE_ARCH_BIG_ENDIAN
This fixes the build on ppc/s390. Reviewed-by: Roland Scheidegger <sroland@vmware.com> Cc: "17.0" <mesa-stable@lists.freedesktop.org> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
3fe8d04a6d
commit
ef71b867ee
1 changed files with 1 additions and 1 deletions
|
|
@ -527,7 +527,7 @@ lp_build_gather(struct gallivm_state *gallivm,
|
|||
if (vec_zext) {
|
||||
res = LLVMBuildZExt(gallivm->builder, res, res_t, "");
|
||||
if (vector_justify) {
|
||||
#if PIPE_ARCH_BIG_ENDIAN
|
||||
#ifdef PIPE_ARCH_BIG_ENDIAN
|
||||
unsigned sv = dst_type.width - src_width;
|
||||
res = LLVMBuildShl(gallivm->builder, res,
|
||||
lp_build_const_int_vec(gallivm, res_type, sv), "");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue