Mesa (master): gallivm: Support pointers in lp_build_print_value().
Jose Fonseca
jrfonseca at kemper.freedesktop.org
Thu May 16 14:14:15 UTC 2013
Module: Mesa
Branch: master
Commit: cb9913cdab763ac21ea6659f93e9564db9df47e8
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=cb9913cdab763ac21ea6659f93e9564db9df47e8
Author: José Fonseca <jfonseca at vmware.com>
Date: Thu May 16 13:12:11 2013 +0100
gallivm: Support pointers in lp_build_print_value().
Trivial.
---
src/gallium/auxiliary/gallivm/lp_bld_printf.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_printf.c b/src/gallium/auxiliary/gallivm/lp_bld_printf.c
index 7a6bbd9..1324da2 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_printf.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_printf.c
@@ -111,6 +111,8 @@ lp_build_print_value(struct gallivm_state *gallivm,
} else {
type_fmt[2] = 'i';
}
+ } else if (type_kind == LLVMPointerTypeKind) {
+ type_fmt[2] = 'p';
} else {
/* Unsupported type */
assert(0);
More information about the mesa-commit
mailing list