Skip to content
Snippets Groups Projects
Commit ff81869f authored by Dave Airlie's avatar Dave Airlie Committed by Emil Velikov
Browse files

gallivm: use #ifdef not #if for PIPE_ARCH_BIG_ENDIAN


This fixes the build on ppc/s390.

Reviewed-by: default avatarRoland Scheidegger <sroland@vmware.com>
Cc: "17.0" <mesa-stable@lists.freedesktop.org>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
(cherry picked from commit ef71b867)
parent 9cb06660
No related branches found
No related tags found
No related merge requests found
...@@ -527,7 +527,7 @@ lp_build_gather(struct gallivm_state *gallivm, ...@@ -527,7 +527,7 @@ lp_build_gather(struct gallivm_state *gallivm,
if (vec_zext) { if (vec_zext) {
res = LLVMBuildZExt(gallivm->builder, res, res_t, ""); res = LLVMBuildZExt(gallivm->builder, res, res_t, "");
if (vector_justify) { if (vector_justify) {
#if PIPE_ARCH_BIG_ENDIAN #ifdef PIPE_ARCH_BIG_ENDIAN
unsigned sv = dst_type.width - src_width; unsigned sv = dst_type.width - src_width;
res = LLVMBuildShl(gallivm->builder, res, res = LLVMBuildShl(gallivm->builder, res,
lp_build_const_int_vec(gallivm, res_type, sv), ""); lp_build_const_int_vec(gallivm, res_type, sv), "");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment