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:
parent
9bc9895c4a
commit
978df710f2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue