Mesa (master): gallivm: use #ifdef not #if for PIPE_ARCH_BIG_ENDIAN
Dave Airlie
airlied at kemper.freedesktop.org
Thu Jan 19 06:01:07 UTC 2017
Module: Mesa
Branch: master
Commit: ef71b867ee152d8161a8c7320e89843801236249
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ef71b867ee152d8161a8c7320e89843801236249
Author: Dave Airlie <airlied at redhat.com>
Date: Thu Jan 19 14:39:10 2017 +1000
gallivm: use #ifdef not #if for PIPE_ARCH_BIG_ENDIAN
This fixes the build on ppc/s390.
Reviewed-by: Roland Scheidegger <sroland at vmware.com>
Cc: "17.0" <mesa-stable at lists.freedesktop.org>
Signed-off-by: Dave Airlie <airlied at redhat.com>
---
src/gallium/auxiliary/gallivm/lp_bld_gather.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_gather.c b/src/gallium/auxiliary/gallivm/lp_bld_gather.c
index 2d1fb65..ccd0376 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_gather.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_gather.c
@@ -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), "");
More information about the mesa-commit
mailing list