From: George Kyriazis Date: Fri, 27 Apr 2018 00:29:40 +0000 (-0500) Subject: swr/rast: Add constant initializer for uint64_t X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dcaca3c7b34f4b9c150860cde19c8f21d13bf51f;p=mesa.git swr/rast: Add constant initializer for uint64_t Reviewed-by: Bruce Cherniak --- 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);