Mesa (master): llvmpipe: Add missing LLVMGetGlobalContext() arg in lp_test_format.c.

Vinson Lee vlee at kemper.freedesktop.org
Wed Oct 1 04:55:36 UTC 2014


Module: Mesa
Branch: master
Commit: 6a238ac0b7436c26cc236740d68cdc3eab3aea89
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=6a238ac0b7436c26cc236740d68cdc3eab3aea89

Author: Vinson Lee <vlee at freedesktop.org>
Date:   Tue Sep 30 21:52:13 2014 -0700

llvmpipe: Add missing LLVMGetGlobalContext() arg in lp_test_format.c.

Fix build error introduced with commit
eedbce9c63a3f385908bdc8a69e8be98dd3522ff.

lp_test_format.c: In function ‘test_format_unorm8’:
lp_test_format.c:226:4: error: too few arguments to function ‘gallivm_create’
    gallivm = gallivm_create("test_module_unorm8");
    ^
In file included from ../../../../src/gallium/auxiliary/gallivm/lp_bld_format.h:38:0,
                 from lp_test_format.c:42:
../../../../src/gallium/auxiliary/gallivm/lp_bld_init.h:58:1: note: declared here
 gallivm_create(const char *name, LLVMContextRef context);
 ^

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=84538
Signed-off-by: Vinson Lee <vlee at freedesktop.org>

---

 src/gallium/drivers/llvmpipe/lp_test_format.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/llvmpipe/lp_test_format.c b/src/gallium/drivers/llvmpipe/lp_test_format.c
index 8a81151..cdacb1b 100644
--- a/src/gallium/drivers/llvmpipe/lp_test_format.c
+++ b/src/gallium/drivers/llvmpipe/lp_test_format.c
@@ -223,7 +223,7 @@ test_format_unorm8(unsigned verbose, FILE *fp,
    boolean success = TRUE;
    unsigned i, j, k, l;
 
-   gallivm = gallivm_create("test_module_unorm8");
+   gallivm = gallivm_create("test_module_unorm8", LLVMGetGlobalContext());
 
    fetch = add_fetch_rgba_test(gallivm, verbose, desc, lp_unorm8_vec4_type());
 




More information about the mesa-commit mailing list