summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorGeorge Kyriazis <[email protected]>2018-01-19 15:47:01 -0600
committerGeorge Kyriazis <[email protected]>2018-01-19 16:52:34 -0600
commite9e7f3ce0a757184ff224a94f61a72c71e78d7f9 (patch)
tree233f67f77424d8367e2d0e3172fab42b84a858ea /src/gallium/drivers
parent34bbcb5052c57148a22a6a48a6538f983d62fbae (diff)
swr/rast: Shader debugging work
- Move debug .ll files to JIT_CACHE_DIR - Don't link against jitter SRGBLut table, add global data to shader that needs it. Reviewed-by: Bruce Cherniak <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/swr/rasterizer/jitter/builder_misc.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/swr/rasterizer/jitter/builder_misc.h b/src/gallium/drivers/swr/rasterizer/jitter/builder_misc.h
index 16ff693c6e4..7eb65f36880 100644
--- a/src/gallium/drivers/swr/rasterizer/jitter/builder_misc.h
+++ b/src/gallium/drivers/swr/rasterizer/jitter/builder_misc.h
@@ -49,6 +49,12 @@ Constant *C(const std::initializer_list<Ty> &constList)
return ConstantVector::get(vConsts);
}
+template<typename Ty>
+Constant *CA(LLVMContext& ctx, ArrayRef<Ty> constList)
+{
+ return ConstantDataArray::get(ctx, constList);
+}
+
Constant *PRED(bool pred);
Value *VIMMED1(int i);