diff options
author | Zack Rusin <zackr@vmware.com> | 2010-04-06 12:07:33 -0400 |
---|---|---|
committer | Zack Rusin <zackr@vmware.com> | 2010-04-06 12:07:33 -0400 |
commit | de0647dbad96db222b5643d03b3f61b093e7ef76 (patch) | |
tree | b4c70ac1de7ae939233fed1b026a3789e3f29629 /src/gallium/auxiliary/draw/draw_llvm.c | |
parent | aeaf2cf18fc74f2d65fcadfad8c19f244ccd4206 (diff) |
draw llvm: iterate with the correct stop over the outputs
it's whatever the var step is (4 usually) not an unconditional 1
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_llvm.c')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_llvm.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/draw/draw_llvm.c b/src/gallium/auxiliary/draw/draw_llvm.c index eac5e917d5..021662e75e 100644 --- a/src/gallium/auxiliary/draw/draw_llvm.c +++ b/src/gallium/auxiliary/draw/draw_llvm.c @@ -634,8 +634,7 @@ draw_llvm_generate(struct draw_llvm *llvm) draw->vs.vertex_shader->info.num_outputs, max_vertices); - io_itr = LLVMBuildAdd(builder, io_itr, - LLVMConstInt(LLVMInt32Type(), 1, 0), ""); + io_itr = LLVMBuildAdd(builder, io_itr, step, ""); } lp_build_loop_end_cond(builder, end, step, LLVMIntUGE, &lp_loop); |