From: George Kyriazis Date: Fri, 19 Jan 2018 21:47:01 +0000 (-0600) Subject: swr/rast: Shader debugging work X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e9e7f3ce0a757184ff224a94f61a72c71e78d7f9;p=mesa.git 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 --- 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);