draw llvm: iterate with the correct stop over the outputs

it's whatever the var step is (4 usually) not an unconditional 1
This commit is contained in:
Zack Rusin
2010-04-06 12:07:33 -04:00
parent aeaf2cf18f
commit de0647dbad
+1 -2
View File
@@ -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);