Mesa (staging/19.2): llvmpipe/ppc: fix if/ifdef confusion in backport.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Nov 20 19:56:37 UTC 2019


Module: Mesa
Branch: staging/19.2
Commit: 33969e4e1bb985c7eab46ea0bf41c543eb4b4c59
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=33969e4e1bb985c7eab46ea0bf41c543eb4b4c59

Author: Dave Airlie <airlied at redhat.com>
Date:   Thu Nov 21 05:53:03 2019 +1000

llvmpipe/ppc: fix if/ifdef confusion in backport.

Fixes: 32aba91c07f (llvmpipe: use ppc64le/ppc64 Large code model for JIT-compiled shaders)
Reviewed-by: Dylan Baker <dylan at pnwbakers.com>

---

 src/gallium/auxiliary/gallivm/lp_bld_misc.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
index 1a47bab7e47..e05c9064990 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
+++ b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
@@ -705,7 +705,7 @@ lp_build_create_jit_compiler_for_module(LLVMExecutionEngineRef *OutJIT,
     */
    builder.setCodeModel(CodeModel::Large);
 
-#if PIPE_ARCH_LITTLE_ENDIAN
+#ifdef PIPE_ARCH_LITTLE_ENDIAN
    /*
     * Versions of LLVM prior to 4.0 lacked a table entry for "POWER8NVL",
     * resulting in (big-endian) "generic" being returned on




More information about the mesa-commit mailing list