summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gallium/auxiliary/draw/draw_llvm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_llvm.c b/src/gallium/auxiliary/draw/draw_llvm.c
index 01659fe76a1..296c8fdef41 100644
--- a/src/gallium/auxiliary/draw/draw_llvm.c
+++ b/src/gallium/auxiliary/draw/draw_llvm.c
@@ -1251,12 +1251,14 @@ draw_llvm_generate(struct draw_llvm *llvm, struct draw_llvm_variant *variant,
fetch_count = LLVMGetParam(variant_func, 4);
lp_build_name(fetch_elts, "fetch_elts");
lp_build_name(fetch_count, "fetch_count");
+ start = count = NULL;
}
else {
start = LLVMGetParam(variant_func, 3);
count = LLVMGetParam(variant_func, 4);
lp_build_name(start, "start");
lp_build_name(count, "count");
+ fetch_elts = fetch_count = NULL;
}
/*