[Mesa-dev] [PATCH v2 08/45] swr/rast: LLVM 6 fix

George Kyriazis george.kyriazis at intel.com
Wed Apr 18 01:31:48 UTC 2018


for getting masked gather intrinsic (also compatible with LLVM 4)
---
 src/gallium/drivers/swr/rasterizer/jitter/builder_mem.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/swr/rasterizer/jitter/builder_mem.cpp b/src/gallium/drivers/swr/rasterizer/jitter/builder_mem.cpp
index 278113e..cc0f897 100644
--- a/src/gallium/drivers/swr/rasterizer/jitter/builder_mem.cpp
+++ b/src/gallium/drivers/swr/rasterizer/jitter/builder_mem.cpp
@@ -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 });
     }
-- 
2.7.4



More information about the mesa-dev mailing list