From dcaca3c7b34f4b9c150860cde19c8f21d13bf51f Mon Sep 17 00:00:00 2001 From: George Kyriazis Date: Thu, 26 Apr 2018 19:29:40 -0500 Subject: [PATCH] swr/rast: Add constant initializer for uint64_t Reviewed-by: Bruce Cherniak --- src/gallium/drivers/swr/rasterizer/jitter/builder_misc.cpp | 5 +++++ src/gallium/drivers/swr/rasterizer/jitter/builder_misc.h | 1 + 2 files changed, 6 insertions(+) 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); -- 2.30.2