diff options
author | Dave Airlie <[email protected]> | 2020-05-13 09:30:44 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2020-06-11 06:05:40 +1000 |
commit | 7b7c02d161df2f09fa06b8b0b42caf869a326dc9 (patch) | |
tree | 47b19cb7ebce915a0a0580bd32da4507ad0b876f /src/gallium/drivers/llvmpipe | |
parent | 333ee94285ac453b9d75ce93b01bc26e48bf96d7 (diff) |
gallivm: add support for a cache object
This plumbs the cache object into the gallivm API, nothing uses
it yet.
Reviewed-by: Roland Scheidegger <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5049>
Diffstat (limited to 'src/gallium/drivers/llvmpipe')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_state_cs.c | 2 | ||||
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_state_fs.c | 2 | ||||
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_state_setup.c | 2 | ||||
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_test_arit.c | 2 | ||||
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_test_blend.c | 2 | ||||
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_test_conv.c | 2 | ||||
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_test_format.c | 4 | ||||
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_test_printf.c | 2 |
8 files changed, 9 insertions, 9 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_state_cs.c b/src/gallium/drivers/llvmpipe/lp_state_cs.c index 97c479ef455..9270761acd6 100644 --- a/src/gallium/drivers/llvmpipe/lp_state_cs.c +++ b/src/gallium/drivers/llvmpipe/lp_state_cs.c @@ -688,7 +688,7 @@ generate_variant(struct llvmpipe_context *lp, snprintf(module_name, sizeof(module_name), "cs%u_variant%u", shader->no, shader->variants_created); - variant->gallivm = gallivm_create(module_name, lp->context); + variant->gallivm = gallivm_create(module_name, lp->context, NULL); if (!variant->gallivm) { FREE(variant); return NULL; diff --git a/src/gallium/drivers/llvmpipe/lp_state_fs.c b/src/gallium/drivers/llvmpipe/lp_state_fs.c index d7b77d51eb1..4bd201de581 100644 --- a/src/gallium/drivers/llvmpipe/lp_state_fs.c +++ b/src/gallium/drivers/llvmpipe/lp_state_fs.c @@ -3270,7 +3270,7 @@ generate_variant(struct llvmpipe_context *lp, snprintf(module_name, sizeof(module_name), "fs%u_variant%u", shader->no, shader->variants_created); - variant->gallivm = gallivm_create(module_name, lp->context); + variant->gallivm = gallivm_create(module_name, lp->context, NULL); if (!variant->gallivm) { FREE(variant); return NULL; diff --git a/src/gallium/drivers/llvmpipe/lp_state_setup.c b/src/gallium/drivers/llvmpipe/lp_state_setup.c index 8e46013a028..a2f70681c00 100644 --- a/src/gallium/drivers/llvmpipe/lp_state_setup.c +++ b/src/gallium/drivers/llvmpipe/lp_state_setup.c @@ -730,7 +730,7 @@ generate_setup_variant(struct lp_setup_variant_key *key, snprintf(func_name, sizeof(func_name), "setup_variant_%u", variant->no); - variant->gallivm = gallivm = gallivm_create(func_name, lp->context); + variant->gallivm = gallivm = gallivm_create(func_name, lp->context, NULL); if (!variant->gallivm) { goto fail; } diff --git a/src/gallium/drivers/llvmpipe/lp_test_arit.c b/src/gallium/drivers/llvmpipe/lp_test_arit.c index be8cb0afb48..873dcf37fac 100644 --- a/src/gallium/drivers/llvmpipe/lp_test_arit.c +++ b/src/gallium/drivers/llvmpipe/lp_test_arit.c @@ -417,7 +417,7 @@ test_unary(unsigned verbose, FILE *fp, const struct unary_test_t *test, unsigned } context = LLVMContextCreate(); - gallivm = gallivm_create("test_module", context); + gallivm = gallivm_create("test_module", context, NULL); test_func = build_unary_test_func(gallivm, test, length, test_name); diff --git a/src/gallium/drivers/llvmpipe/lp_test_blend.c b/src/gallium/drivers/llvmpipe/lp_test_blend.c index 98d6bbe50d4..a549b0a22ff 100644 --- a/src/gallium/drivers/llvmpipe/lp_test_blend.c +++ b/src/gallium/drivers/llvmpipe/lp_test_blend.c @@ -452,7 +452,7 @@ test_one(unsigned verbose, dump_blend_type(stdout, blend, type); context = LLVMContextCreate(); - gallivm = gallivm_create("test_module", context); + gallivm = gallivm_create("test_module", context, NULL); func = add_blend_test(gallivm, blend, type); diff --git a/src/gallium/drivers/llvmpipe/lp_test_conv.c b/src/gallium/drivers/llvmpipe/lp_test_conv.c index a4f313a0bb3..9f928973be9 100644 --- a/src/gallium/drivers/llvmpipe/lp_test_conv.c +++ b/src/gallium/drivers/llvmpipe/lp_test_conv.c @@ -221,7 +221,7 @@ test_one(unsigned verbose, } context = LLVMContextCreate(); - gallivm = gallivm_create("test_module", context); + gallivm = gallivm_create("test_module", context, NULL); func = add_conv_test(gallivm, src_type, num_srcs, dst_type, num_dsts); diff --git a/src/gallium/drivers/llvmpipe/lp_test_format.c b/src/gallium/drivers/llvmpipe/lp_test_format.c index 9877a219c48..f18db724bb9 100644 --- a/src/gallium/drivers/llvmpipe/lp_test_format.c +++ b/src/gallium/drivers/llvmpipe/lp_test_format.c @@ -150,7 +150,7 @@ test_format_float(unsigned verbose, FILE *fp, unsigned i, j, k, l; context = LLVMContextCreate(); - gallivm = gallivm_create("test_module_float", context); + gallivm = gallivm_create("test_module_float", context, NULL); fetch = add_fetch_rgba_test(gallivm, verbose, desc, lp_float32_vec4_type(), use_cache); @@ -251,7 +251,7 @@ test_format_unorm8(unsigned verbose, FILE *fp, unsigned i, j, k, l; context = LLVMContextCreate(); - gallivm = gallivm_create("test_module_unorm8", context); + gallivm = gallivm_create("test_module_unorm8", context, NULL); fetch = add_fetch_rgba_test(gallivm, verbose, desc, lp_unorm8_vec4_type(), use_cache); diff --git a/src/gallium/drivers/llvmpipe/lp_test_printf.c b/src/gallium/drivers/llvmpipe/lp_test_printf.c index 3d3dc5838dc..85ce1cda695 100644 --- a/src/gallium/drivers/llvmpipe/lp_test_printf.c +++ b/src/gallium/drivers/llvmpipe/lp_test_printf.c @@ -96,7 +96,7 @@ test_printf(unsigned verbose, FILE *fp, boolean success = TRUE; context = LLVMContextCreate(); - gallivm = gallivm_create("test_module", context); + gallivm = gallivm_create("test_module", context, NULL); test = add_printf_test(gallivm); |