diff options
author | Zack Rusin <zackr@vmware.com> | 2010-04-06 00:13:20 -0400 |
---|---|---|
committer | Zack Rusin <zackr@vmware.com> | 2010-04-06 00:13:20 -0400 |
commit | 9dd70e7b85ddbc73bd976c4dab81476aa36c557e (patch) | |
tree | 6fa7b12033f424c346d4db26eec1b7ad9a201d29 /src/gallium/auxiliary/gallivm/lp_bld_flow.h | |
parent | 1b0bab167cd541f70c32249ca3e70da88b8c93c5 (diff) |
draw llvm: fix loop iteration and vertex header offsets
the loop was doing a NE comparison which we could have skipped if the prim
was triangles (3 verts) and our step was 4 verts. also fix offsets in conversion
to aos.
Diffstat (limited to 'src/gallium/auxiliary/gallivm/lp_bld_flow.h')
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_flow.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_flow.h b/src/gallium/auxiliary/gallivm/lp_bld_flow.h index c2b50e1b60..745838570c 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_flow.h +++ b/src/gallium/auxiliary/gallivm/lp_bld_flow.h @@ -124,6 +124,13 @@ lp_build_loop_end(LLVMBuilderRef builder, LLVMValueRef step, struct lp_build_loop_state *state); +void +lp_build_loop_end_cond(LLVMBuilderRef builder, + LLVMValueRef end, + LLVMValueRef step, + int cond, /* LLVM condition */ + struct lp_build_loop_state *state); + |