draw: Fix fetch_max calculation.

It should be

 max_index = start + count - 1

instead of

 max_index = count - 1
This commit is contained in:
José Fonseca 2011-07-04 12:31:30 +01:00
parent 424b1210d9
commit f67de2ed46
1 changed files with 2 additions and 1 deletions

View File

@ -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");