diff options
author | Zack Rusin <[email protected]> | 2013-07-02 21:52:55 -0400 |
---|---|---|
committer | Zack Rusin <[email protected]> | 2013-07-03 09:06:24 -0400 |
commit | 09820902d74eec1eed054388f6999cd66227b6b1 (patch) | |
tree | 611bacf7555717673603cf3f68c00764261ffc94 /src/gallium/auxiliary/draw | |
parent | 764afc48cf8a762f8c48209ba724103d421f0ac1 (diff) |
draw/llvm: index overflows if it's greater than elt max
The comparison, incorrectly, was greater-than-or-equal to
elt max.
Signed-off-by: Zack Rusin <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Roland Scheidegger <[email protected]>
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 f9bcadc6cfa..79e7a9b6d12 100644 --- a/src/gallium/auxiliary/draw/draw_llvm.c +++ b/src/gallium/auxiliary/draw/draw_llvm.c @@ -1671,7 +1671,7 @@ draw_llvm_generate(struct draw_llvm *llvm, struct draw_llvm_variant *variant, gallivm, lp_build_vec_type(gallivm, lp_type_int(32)), ""); struct lp_build_if_state if_ctx; - index_overflowed = LLVMBuildICmp(builder, LLVMIntUGE, + index_overflowed = LLVMBuildICmp(builder, LLVMIntUGT, true_index, fetch_elt_max, "index_overflowed"); |