瀏覽代碼

draw: Fix fetch_max calculation.

It should be

 max_index = start + count - 1

instead of

 max_index = count - 1
tags/mesa-8.0-rc1
José Fonseca 14 年之前
父節點
當前提交
f67de2ed46
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2
    1
      src/gallium/auxiliary/draw/draw_llvm.c

+ 2
- 1
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");


Loading…
取消
儲存