summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJames Benton <jbenton@vmware.com>2012-05-30 14:36:44 +0100
committerJosé Fonseca <jfonseca@vmware.com>2012-11-27 16:23:04 +0000
commit978df710f22562ae766b1fe60e8ebf40d20a6e6b (patch)
tree302c82281e077d24e64db0eeb199346f07daa645 /src
parent9bc9895c4a608e475f241d2c16dc88e40ea702d7 (diff)
downloadexternal_mesa3d-978df710f22562ae766b1fe60e8ebf40d20a6e6b.zip
external_mesa3d-978df710f22562ae766b1fe60e8ebf40d20a6e6b.tar.gz
external_mesa3d-978df710f22562ae766b1fe60e8ebf40d20a6e6b.tar.bz2
gallivm: Fix bug in lp_build_one which would incorrectly return a vector for length 1.
Signed-off-by: José Fonseca <jfonseca@vmware.com>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_const.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_const.c b/src/gallium/auxiliary/gallivm/lp_bld_const.c
index 003901a..24ed23a 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_const.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_const.c
@@ -269,7 +269,7 @@ lp_build_one(struct gallivm_state *gallivm, struct lp_type type)
else {
/* special case' -- 1.0 for normalized types is more easily attained if
* we start with a vector consisting of all bits set */
- LLVMTypeRef vec_type = LLVMVectorType(elem_type, type.length);
+ LLVMTypeRef vec_type = lp_build_vec_type(gallivm, type);
LLVMValueRef vec = LLVMConstAllOnes(vec_type);
#if 0