All the smear(), setzero() and undef() APIs are now templated on the return type.
Modified ISPC's internal mangling to pass these through unchanged. Tried hard to make sure this is not going to introduce an ABI change.
This commit is contained in:
2
stmt.cpp
2
stmt.cpp
@@ -2207,7 +2207,7 @@ ForeachUniqueStmt::EmitCode(FunctionEmitContext *ctx) const {
|
||||
// lane's value of the varying expression is the same as the value
|
||||
// we've selected to process this time through--i.e.:
|
||||
// oldMask & (smear(element) == exprValue)
|
||||
llvm::Value *uniqueSmear = ctx->SmearUniform(uniqueValue, "unique_semar");
|
||||
llvm::Value *uniqueSmear = ctx->SmearUniform(uniqueValue, "unique_smear");
|
||||
llvm::Value *matchingLanes = NULL;
|
||||
if (uniqueValue->getType()->isFloatingPointTy())
|
||||
matchingLanes =
|
||||
|
||||
Reference in New Issue
Block a user