mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
swr/rast: LLVM 6 fix
for getting masked gather intrinsic (also compatible with LLVM 4) Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
This commit is contained in:
parent
a92cc09c7a
commit
a16f8e0554
1 changed files with 1 additions and 1 deletions
|
|
@ -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 });
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue