diff options
author | Zack Rusin <zackr@vmware.com> | 2014-03-26 13:36:34 -0400 |
---|---|---|
committer | Zack Rusin <zackr@vmware.com> | 2014-03-26 15:58:59 -0400 |
commit | b1909b260f6c3855c8214319c602fc7adea7faf9 (patch) | |
tree | 3029d7063dd0310336cc60658d317ad1174f2c35 /src/gallium/auxiliary/draw | |
parent | a3c0fa2d228aeec9d9b3de55a4f086c5af5bdecb (diff) | |
download | external_mesa3d-b1909b260f6c3855c8214319c602fc7adea7faf9.zip external_mesa3d-b1909b260f6c3855c8214319c602fc7adea7faf9.tar.gz external_mesa3d-b1909b260f6c3855c8214319c602fc7adea7faf9.tar.bz2 |
draw/llvm: improve debugging output a bit
it's useful to know what the llvmbuildstore arguments are going to
be before executing it because it can crash and make sure to
print out the inputs only if we're not generating a gs because
it fetches inputs differently.
Signed-off-by: Zack Rusin <zackr@vmware.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Diffstat (limited to 'src/gallium/auxiliary/draw')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_llvm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/draw/draw_llvm.c b/src/gallium/auxiliary/draw/draw_llvm.c index 53d13f3..b9f8bb9 100644 --- a/src/gallium/auxiliary/draw/draw_llvm.c +++ b/src/gallium/auxiliary/draw/draw_llvm.c @@ -939,11 +939,11 @@ store_aos_array(struct gallivm_state *gallivm, LLVMValueRef id_ptr = draw_jit_header_id(gallivm, io_ptrs[i]); val = LLVMBuildExtractElement(builder, cliptmp, linear_inds[i], ""); val = adjust_mask(gallivm, val); - LLVMBuildStore(builder, val, id_ptr); #if DEBUG_STORE lp_build_printf(gallivm, "io = %p, index %d, clipmask = %x\n", io_ptrs[i], inds[i], val); #endif + LLVMBuildStore(builder, val, id_ptr); } } |