diff options
author | José Fonseca <[email protected]> | 2011-07-04 12:31:30 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2011-07-04 12:31:30 +0100 |
commit | f67de2ed468ecbd09085746130a27bd2c2da911d (patch) | |
tree | 4592ebf213c2769e07655075ce05821c820efec0 /src/gallium/auxiliary/draw/draw_llvm.c | |
parent | 424b1210d951c206e7c2fb8f2778acbd384eb247 (diff) |
draw: Fix fetch_max calculation.
It should be
max_index = start + count - 1
instead of
max_index = count - 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, 2 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/draw/draw_llvm.c b/src/gallium/auxiliary/draw/draw_llvm.c index f33c9078c9c..8bb87440497 100644 --- a/src/gallium/auxiliary/draw/draw_llvm.c +++ b/src/gallium/auxiliary/draw/draw_llvm.c @@ -1235,7 +1235,8 @@ draw_llvm_generate(struct draw_llvm *llvm, struct draw_llvm_variant *variant) draw_llvm_variant_key_samplers(&variant->key), context_ptr); - fetch_max = LLVMBuildSub(builder, count, + /* fetch_max = start + count - 1 */ + fetch_max = LLVMBuildSub(builder, end, lp_build_const_int32(gallivm, 1), "fetch_max"); |