[Mesa-dev] [PATCH 3/7] swr/rast: Add constant initializer for uint64_t

George Kyriazis george.kyriazis at intel.com
Fri May 4 18:40:55 UTC 2018


---
 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 619a67b..231fa94 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 a51aad0..d7732ef 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.7.4



More information about the mesa-dev mailing list