summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorZack Rusin <zackr@vmware.com>2013-08-02 01:43:43 -0400
committerZack Rusin <zackr@vmware.com>2013-08-02 20:11:18 -0400
commitda1a74f6735ef41cbd4d565434c67ac1a99a240c (patch)
tree9d5a1a967f936b911011562f62199f6628a08838 /src/gallium/auxiliary
parent36096af02603a72855fee1c4a48a0a60baba7c32 (diff)
downloadexternal_mesa3d-da1a74f6735ef41cbd4d565434c67ac1a99a240c.zip
external_mesa3d-da1a74f6735ef41cbd4d565434c67ac1a99a240c.tar.gz
external_mesa3d-da1a74f6735ef41cbd4d565434c67ac1a99a240c.tar.bz2
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 <zackr@vmware.com> Reviewed-by: Roland Scheidegger <sroland@vmware.com> Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/draw/draw_llvm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_llvm.c b/src/gallium/auxiliary/draw/draw_llvm.c
index c195a2b..cf71a5d 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;
}