diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2014-09-25 12:23:02 +0900 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2014-09-26 11:35:52 +0900 |
commit | 4a38b154fd02061d8989f8973fbc10740300bf8b (patch) | |
tree | ba31bf1d48230c6f33455af1d4490f7ea53c558a /src/gallium/drivers/llvmpipe/lp_test_main.c | |
parent | cdc4de121564a47cbdac760622b6dc7112e548aa (diff) |
gallivm: More fallout from disabling with LLVM 3.6
The draw module would still try to use gallivm, causing many piglit tests
to fail with an assertion failure. llvmpipe might have been similarly
affected.
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_test_main.c')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_test_main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_test_main.c b/src/gallium/drivers/llvmpipe/lp_test_main.c index 8a896becf53..c7b6d65fa30 100644 --- a/src/gallium/drivers/llvmpipe/lp_test_main.c +++ b/src/gallium/drivers/llvmpipe/lp_test_main.c @@ -376,6 +376,9 @@ int main(int argc, char **argv) fpstate = util_fpstate_get(); util_fpstate_set_denorms_to_zero(fpstate); + if (!lp_build_init()) + return 1; + for(i = 1; i < argc; ++i) { if(strcmp(argv[i], "-v") == 0) ++verbose; @@ -387,8 +390,6 @@ int main(int argc, char **argv) n = atoi(argv[i]); } - lp_build_init(); - #ifdef DEBUG if (verbose >= 2) { gallivm_debug |= GALLIVM_DEBUG_IR; |