[Mesa-dev] [PATCH 06/20] swr/rast: Shader debugging work

George Kyriazis george.kyriazis at intel.com
Fri Jan 19 21:47:01 UTC 2018


- Move debug .ll files to JIT_CACHE_DIR
- Don't link against jitter SRGBLut table, add global data to shader that needs it.
---
 src/gallium/drivers/swr/rasterizer/jitter/builder_misc.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/gallium/drivers/swr/rasterizer/jitter/builder_misc.h b/src/gallium/drivers/swr/rasterizer/jitter/builder_misc.h
index 16ff693..7eb65f3 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);
-- 
2.7.4



More information about the mesa-dev mailing list