gallivm: add fp64 support. (v2.1)
[mesa.git] / src / gallium / auxiliary / gallivm / lp_bld_logic.c
index 80b53e5c3f896c517d63c5635aa373d4bde317eb..f724cfa46eae54a4a74e9e66895add17e6814cb2 100644 (file)
@@ -81,7 +81,7 @@ lp_build_compare_ext(struct gallivm_state *gallivm,
                      boolean ordered)
 {
    LLVMBuilderRef builder = gallivm->builder;
-   LLVMTypeRef int_vec_type = lp_build_int_vec_type(gallivm, type);
+   LLVMTypeRef int_vec_type = lp_build_int_vec_type(gallivm, lp_type_int_vec(32, 32 * type.length));
    LLVMValueRef zeros = LLVMConstNull(int_vec_type);
    LLVMValueRef ones = LLVMConstAllOnes(int_vec_type);
    LLVMValueRef cond;