projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7458928
)
gallivm: use our util_snprintf
author
Zack Rusin
<zackr@vmware.com>
Sat, 15 May 2010 05:24:00 +0000
(
01:24
-0400)
committer
Zack Rusin
<zackr@vmware.com>
Sat, 15 May 2010 05:24:00 +0000
(
01:24
-0400)
src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
index 3dfa6cf25cf1c38c3425f5aa846e5825cb2d398c..6e1e41fdeed468aaab40d3adafa6cc4b13b00947 100644
(file)
--- a/
src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
+++ b/
src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
@@
-42,6
+42,7
@@
#include "util/u_debug.h"
#include "util/u_math.h"
#include "util/u_memory.h"
+#include "util/u_string.h"
#include "tgsi/tgsi_dump.h"
#include "tgsi/tgsi_info.h"
#include "tgsi/tgsi_parse.h"
@@
-303,7
+304,7
@@
static LLVMValueRef lp_get_function(struct lp_build_tgsi_soa_context *bld,
int i;
char func_name[32];
- snprintf(func_name, 31, "func%d", label);
+
util_
snprintf(func_name, 31, "func%d", label);
arg_types[0] = LLVMPointerType(vec_type, 0); /* inputs */
arg_types[1] = LLVMPointerType(vec_type, 0); /* outpus */