From e9e7f3ce0a757184ff224a94f61a72c71e78d7f9 Mon Sep 17 00:00:00 2001 From: George Kyriazis Date: Fri, 19 Jan 2018 15:47:01 -0600 Subject: [PATCH] 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 --- 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 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 &constList) return ConstantVector::get(vConsts); } +template +Constant *CA(LLVMContext& ctx, ArrayRef constList) +{ + return ConstantDataArray::get(ctx, constList); +} + Constant *PRED(bool pred); Value *VIMMED1(int i); -- 2.30.2