gallivm: Fix bug in lp_build_one which would incorrectly return a vector for length 1.

Signed-off-by: José Fonseca <jfonseca@vmware.com>
This commit is contained in:
James Benton 2012-05-30 14:36:44 +01:00 committed by José Fonseca
parent 9bc9895c4a
commit 978df710f2
1 changed files with 1 additions and 1 deletions

View File

@ -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