diff options
author | Michel Dänzer <[email protected]> | 2014-09-25 12:23:02 +0900 |
---|---|---|
committer | Michel Dänzer <[email protected]> | 2014-09-26 11:35:52 +0900 |
commit | 4a38b154fd02061d8989f8973fbc10740300bf8b (patch) | |
tree | ba31bf1d48230c6f33455af1d4490f7ea53c558a /src/gallium/auxiliary/draw | |
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 <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/draw')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_context.c | 2 | ||||
-rw-r--r-- | src/gallium/auxiliary/draw/draw_llvm.c | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/gallium/auxiliary/draw/draw_context.c b/src/gallium/auxiliary/draw/draw_context.c index 001446f8e5a..85f8e26eb33 100644 --- a/src/gallium/auxiliary/draw/draw_context.c +++ b/src/gallium/auxiliary/draw/draw_context.c @@ -93,8 +93,6 @@ draw_create_context(struct pipe_context *pipe, boolean try_llvm) #if HAVE_LLVM if (try_llvm && draw_get_option_use_llvm()) { draw->llvm = draw_llvm_create(draw); - if (!draw->llvm) - goto err_destroy; } #endif diff --git a/src/gallium/auxiliary/draw/draw_llvm.c b/src/gallium/auxiliary/draw/draw_llvm.c index e8e837a9785..504f3efab2e 100644 --- a/src/gallium/auxiliary/draw/draw_llvm.c +++ b/src/gallium/auxiliary/draw/draw_llvm.c @@ -484,12 +484,13 @@ draw_llvm_create(struct draw_context *draw) { struct draw_llvm *llvm; + if (!lp_build_init()) + return NULL; + llvm = CALLOC_STRUCT( draw_llvm ); if (!llvm) return NULL; - lp_build_init(); - llvm->draw = draw; llvm->nr_variants = 0; |