From: George Kyriazis Date: Fri, 19 Jan 2018 21:47:01 +0000 (-0600) Subject: swr/rast: Shader debugging work X-Git-Tag: upstream/18.1.0~2510 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e9e7f3ce0a757184ff224a94f61a72c71e78d7f9;p=platform%2Fupstream%2Fmesa.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 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 &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);