projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
424b121
)
draw: Fix fetch_max calculation.
author
José Fonseca
<jfonseca@vmware.com>
Mon, 4 Jul 2011 11:31:30 +0000
(12:31 +0100)
committer
José Fonseca
<jfonseca@vmware.com>
Mon, 4 Jul 2011 11:31:30 +0000
(12:31 +0100)
It should be
max_index = start + count - 1
instead of
max_index = count - 1
src/gallium/auxiliary/draw/draw_llvm.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/draw/draw_llvm.c
b/src/gallium/auxiliary/draw/draw_llvm.c
index f33c9078c9c7ded93ca8cfac2926f01c8120e6e7..8bb87440497b8916a2ce4a5c1b85bfc6b6ac0aa6 100644
(file)
--- 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");