diff options
author | Brian Paul <brianp@vmware.com> | 2010-10-19 09:14:17 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2010-10-19 09:14:19 -0600 |
commit | ec2824cd867d3b782588be1f3b1d5d802eb381ab (patch) | |
tree | 7c7bafe316d13cad9509e7f6fe9fd2b5d5979dd0 /src/gallium/auxiliary/gallivm | |
parent | 988b246c471c9c7ece1082682853e3744b702dd2 (diff) |
gallivm: fix incorrect type for zero vector in emit_kilp()
http://bugs.freedesktop.org/show_bug.cgi?id=30974
Diffstat (limited to 'src/gallium/auxiliary/gallivm')
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c index 2bc90579a2..3c318cc8c8 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); |