diff options
author | Zack Rusin <zackr@vmware.com> | 2010-03-30 21:09:51 -0400 |
---|---|---|
committer | Zack Rusin <zackr@vmware.com> | 2010-03-30 21:09:51 -0400 |
commit | 93e342574f5fc95789028dbe7cf637257562e9bb (patch) | |
tree | f3158a6ad13280ddc201e83cb28a91492076fbdd /src/gallium/auxiliary/draw | |
parent | b0f946e90069f34e69a0492caa7a2867ae184e9a (diff) |
draw llvm: fix a warning
Diffstat (limited to 'src/gallium/auxiliary/draw')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_llvm.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/draw/draw_llvm.c b/src/gallium/auxiliary/draw/draw_llvm.c index 1127d5417e..6347acb0b9 100644 --- a/src/gallium/auxiliary/draw/draw_llvm.c +++ b/src/gallium/auxiliary/draw/draw_llvm.c @@ -391,6 +391,7 @@ draw_llvm_generate(struct draw_llvm *llvm) LLVMValueRef inputs[PIPE_MAX_SHADER_INPUTS][NUM_CHANNELS]; LLVMValueRef aos_attribs[PIPE_MAX_SHADER_INPUTS][NUM_CHANNELS]; LLVMValueRef io = LLVMBuildGEP(builder, io_ptr, &lp_loop.counter, 1, ""); + const LLVMValueRef (*ptr_aos)[NUM_CHANNELS]; for (i = 0; i < NUM_CHANNELS; ++i) { LLVMValueRef true_index = LLVMBuildAdd( @@ -408,17 +409,17 @@ draw_llvm_generate(struct draw_llvm *llvm) convert_to_soa(builder, aos_attribs, inputs, draw->pt.nr_vertex_elements); + ptr_aos = (const LLVMValueRef (*)[NUM_CHANNELS]) inputs; generate_vs(llvm, builder, outputs, - inputs, + ptr_aos, context_ptr, io); LLVMDumpModule(llvm->module); } lp_build_loop_end(builder, end, step, &lp_loop); - LLVMBuildRetVoid(builder); LLVMDisposeBuilder(builder); |