OSDN Git Service

llvmpipe/ppc: fix if/ifdef confusion in backport.
authorDave Airlie <airlied@redhat.com>
Wed, 20 Nov 2019 19:53:03 +0000 (05:53 +1000)
committerDylan Baker <dylan@pnwbakers.com>
Wed, 27 Nov 2019 00:43:04 +0000 (16:43 -0800)
Fixes: 32aba91c07f (llvmpipe: use ppc64le/ppc64 Large code model for JIT-compiled shaders)
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
src/gallium/auxiliary/gallivm/lp_bld_misc.cpp

index ee27f34..89d3fb9 100644 (file)
@@ -469,7 +469,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