diff options
author | George Kyriazis <[email protected]> | 2018-04-26 19:29:40 -0500 |
---|---|---|
committer | George Kyriazis <[email protected]> | 2018-05-11 11:22:17 -0500 |
commit | dcaca3c7b34f4b9c150860cde19c8f21d13bf51f (patch) | |
tree | baa06530c8bd10ba47624a79c1ee2733f4659971 /src/gallium/drivers/swr | |
parent | 70f0a28b83d9977e106f80cfd033e0796bc43f2f (diff) |
swr/rast: Add constant initializer for uint64_t
Reviewed-by: Bruce Cherniak <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr')
-rw-r--r-- | src/gallium/drivers/swr/rasterizer/jitter/builder_misc.cpp | 5 | ||||
-rw-r--r-- | src/gallium/drivers/swr/rasterizer/jitter/builder_misc.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/swr/rasterizer/jitter/builder_misc.cpp b/src/gallium/drivers/swr/rasterizer/jitter/builder_misc.cpp index 619a67beba8..231fa94d00c 100644 --- a/src/gallium/drivers/swr/rasterizer/jitter/builder_misc.cpp +++ b/src/gallium/drivers/swr/rasterizer/jitter/builder_misc.cpp @@ -182,6 +182,11 @@ namespace SwrJit return ConstantInt::get(IRB()->getInt32Ty(), i); } + Constant *Builder::C(uint64_t i) + { + return ConstantInt::get(IRB()->getInt64Ty(), i); + } + Constant *Builder::C(float i) { return ConstantFP::get(IRB()->getFloatTy(), i); diff --git a/src/gallium/drivers/swr/rasterizer/jitter/builder_misc.h b/src/gallium/drivers/swr/rasterizer/jitter/builder_misc.h index a51aad05a06..d7732ef8c2a 100644 --- a/src/gallium/drivers/swr/rasterizer/jitter/builder_misc.h +++ b/src/gallium/drivers/swr/rasterizer/jitter/builder_misc.h @@ -34,6 +34,7 @@ Constant *C(char i); Constant *C(uint8_t i); Constant *C(int i); Constant *C(int64_t i); +Constant *C(uint64_t i); Constant *C(uint16_t i); Constant *C(uint32_t i); Constant *C(float i); |