diff options
author | George Kyriazis <[email protected]> | 2018-01-19 15:47:10 -0600 |
---|---|---|
committer | George Kyriazis <[email protected]> | 2018-01-19 16:52:41 -0600 |
commit | c719f62621dd75c4509032ed0f57a8e353ff5beb (patch) | |
tree | f96041a7f22ebb633c6df244ec1a31af7162f9cf | |
parent | f1925020010a2e8e8cab073e59cedce7533d4478 (diff) |
swr/rast: Added ICLAMP builder function
Reviewed-by: Bruce Cherniak <[email protected]>
-rw-r--r-- | src/gallium/drivers/swr/rasterizer/jitter/builder_misc.cpp | 4 | ||||
-rw-r--r-- | src/gallium/drivers/swr/rasterizer/jitter/builder_misc.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/swr/rasterizer/jitter/builder_misc.cpp b/src/gallium/drivers/swr/rasterizer/jitter/builder_misc.cpp index f70c8dbad90..142007eb341 100644 --- a/src/gallium/drivers/swr/rasterizer/jitter/builder_misc.cpp +++ b/src/gallium/drivers/swr/rasterizer/jitter/builder_misc.cpp @@ -1545,13 +1545,13 @@ namespace SwrJit return result; } - Value *Builder::ICLAMP(Value* src, Value* low, Value* high) + Value *Builder::ICLAMP(Value* src, Value* low, Value* high, const llvm::Twine& name) { Value *lowCmp = ICMP_SLT(src, low); Value *ret = SELECT(lowCmp, low, src); Value *highCmp = ICMP_SGT(ret, high); - ret = SELECT(highCmp, high, ret); + ret = SELECT(highCmp, high, ret, name); return ret; } diff --git a/src/gallium/drivers/swr/rasterizer/jitter/builder_misc.h b/src/gallium/drivers/swr/rasterizer/jitter/builder_misc.h index 609e0b2b561..c7f7f1aea93 100644 --- a/src/gallium/drivers/swr/rasterizer/jitter/builder_misc.h +++ b/src/gallium/drivers/swr/rasterizer/jitter/builder_misc.h @@ -174,7 +174,7 @@ Value *VPCMPGTD(Value* a, Value* b) return S_EXT(vIndexMask,VectorType::get(mInt32Ty,JM()->mVWidth)); } -Value *ICLAMP(Value* src, Value* low, Value* high); +Value *ICLAMP(Value* src, Value* low, Value* high, const llvm::Twine& name = ""); Value *FCLAMP(Value* src, Value* low, Value* high); Value *FCLAMP(Value* src, float low, float high); |