From ec2824cd867d3b782588be1f3b1d5d802eb381ab Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 19 Oct 2010 09:14:17 -0600 Subject: [PATCH] gallivm: fix incorrect type for zero vector in emit_kilp() http://bugs.freedesktop.org/show_bug.cgi?id=30974 --- src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c index 2bc90579a2a..3c318cc8c80 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c @@ -1030,7 +1030,8 @@ emit_kilp(struct lp_build_tgsi_soa_context *bld, mask = LLVMBuildNot(bld->base.builder, bld->exec_mask.exec_mask, "kilp"); } else { - mask = bld->base.zero; + LLVMValueRef zero = LLVMConstNull(bld->base.int_vec_type); + mask = zero; } lp_build_mask_update(bld->mask, mask); -- 2.30.2