From: Zack Rusin Date: Fri, 2 Aug 2013 05:43:43 +0000 (-0400) Subject: draw/llvm: add some extra debugging output X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=da1a74f6735ef41cbd4d565434c67ac1a99a240c;p=mesa.git draw/llvm: add some extra debugging output when dumping shader outputs it's nice to have the integer values of the outputs, in particular because some values are integers. Signed-off-by: Zack Rusin Reviewed-by: Roland Scheidegger Reviewed-by: Jose Fonseca --- diff --git a/src/gallium/auxiliary/draw/draw_llvm.c b/src/gallium/auxiliary/draw/draw_llvm.c index c195a2b4def..cf71a5d6bdf 100644 --- a/src/gallium/auxiliary/draw/draw_llvm.c +++ b/src/gallium/auxiliary/draw/draw_llvm.c @@ -977,6 +977,12 @@ convert_to_aos(struct gallivm_state *gallivm, LLVMConstInt(LLVMInt32TypeInContext(gallivm->context), chan, 0)); lp_build_print_value(gallivm, "val = ", out); + { + LLVMValueRef iv = + LLVMBuildBitCast(builder, out, lp_build_int_vec_type(gallivm, soa_type), ""); + + lp_build_print_value(gallivm, " ival = ", iv); + } #endif soa[chan] = out; }