mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
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>
This commit is contained in:
parent
36096af026
commit
da1a74f673
1 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue