projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
radeonsi: move handling of DBG_NO_OPT_VARIANT into si_shader_selector_key
[mesa.git]
/
src
/
gallium
/
drivers
/
llvmpipe
/
lp_test_conv.c
diff --git
a/src/gallium/drivers/llvmpipe/lp_test_conv.c
b/src/gallium/drivers/llvmpipe/lp_test_conv.c
index a30f35c8149295f54c4db5a1520f25cebfe58d39..6e58a031515fac37978e6421fafa8399807e8eb3 100644
(file)
--- a/
src/gallium/drivers/llvmpipe/lp_test_conv.c
+++ b/
src/gallium/drivers/llvmpipe/lp_test_conv.c
@@
-140,7
+140,7
@@
add_conv_test(struct gallivm_state *gallivm,
LLVMBuildStore(builder, dst[i], ptr);
}
LLVMBuildStore(builder, dst[i], ptr);
}
- LLVMBuildRetVoid(builder);
;
+ LLVMBuildRetVoid(builder);
gallivm_verify_function(gallivm, func);
gallivm_verify_function(gallivm, func);
@@
-155,6
+155,7
@@
test_one(unsigned verbose,
struct lp_type src_type,
struct lp_type dst_type)
{
struct lp_type src_type,
struct lp_type dst_type)
{
+ LLVMContextRef context;
struct gallivm_state *gallivm;
LLVMValueRef func = NULL;
conv_test_ptr_t conv_test_ptr;
struct gallivm_state *gallivm;
LLVMValueRef func = NULL;
conv_test_ptr_t conv_test_ptr;
@@
-211,7
+212,8
@@
test_one(unsigned verbose,
eps = MAX2(lp_const_eps(src_type), lp_const_eps(dst_type));
eps = MAX2(lp_const_eps(src_type), lp_const_eps(dst_type));
- gallivm = gallivm_create("test_module", LLVMGetGlobalContext());
+ context = LLVMContextCreate();
+ gallivm = gallivm_create("test_module", context);
func = add_conv_test(gallivm, src_type, num_srcs, dst_type, num_dsts);
func = add_conv_test(gallivm, src_type, num_srcs, dst_type, num_dsts);
@@
-322,6
+324,7
@@
test_one(unsigned verbose,
write_tsv_row(fp, src_type, dst_type, cycles_avg, success);
gallivm_destroy(gallivm);
write_tsv_row(fp, src_type, dst_type, cycles_avg, success);
gallivm_destroy(gallivm);
+ LLVMContextDispose(context);
return success;
}
return success;
}