swr/rast: LLVM 6 fix
authorGeorge Kyriazis <george.kyriazis@intel.com>
Tue, 13 Mar 2018 01:34:19 +0000 (20:34 -0500)
committerGeorge Kyriazis <george.kyriazis@intel.com>
Wed, 18 Apr 2018 15:51:38 +0000 (10:51 -0500)
for getting masked gather intrinsic (also compatible with LLVM 4)

Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
src/gallium/drivers/swr/rasterizer/jitter/builder_mem.cpp

index 278113e44fbf9cd55a69f1ad5bce2cec3d8b78c4..cc0f897e48668ce6e5fd5e511b3c952b92b1bc7c 100644 (file)
@@ -390,7 +390,7 @@ namespace SwrJit
     /// @param pVecPassthru - SIMD wide vector of values to load when lane is inactive
     Value* Builder::GATHER_PTR(Value* pVecSrcPtr, Value* pVecMask, Value* pVecPassthru)
     {
-        Function* pMaskedGather = llvm::Intrinsic::getDeclaration(JM()->mpCurrentModule, Intrinsic::masked_gather, { pVecPassthru->getType() });
+        Function* pMaskedGather = llvm::Intrinsic::getDeclaration(JM()->mpCurrentModule, Intrinsic::masked_gather, { pVecPassthru->getType(), pVecSrcPtr->getType() });
 
         return CALL(pMaskedGather, { pVecSrcPtr, C(0), pVecMask, pVecPassthru });
     }