diff options
author | Keith Whitwell <[email protected]> | 2010-10-06 19:10:30 +0100 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2010-10-09 11:44:45 +0100 |
commit | c79f162367b99d9438bd1589ecfdeba69baa9d3d (patch) | |
tree | 2b9c71e15dc7f05a42111f3fa397d71d05801c36 /src/gallium/auxiliary/gallivm | |
parent | d2cf757f44f4ee5554243f3279483a25886d9927 (diff) |
gallivm: prefer blendvb for integer arguments
Diffstat (limited to 'src/gallium/auxiliary/gallivm')
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_logic.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_logic.c b/src/gallium/auxiliary/gallivm/lp_bld_logic.c index ce5d0214b43..026b60ac36e 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_logic.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_logic.c @@ -462,10 +462,12 @@ lp_build_select(struct lp_build_context *bld, LLVMTypeRef arg_type; LLVMValueRef args[3]; - if (type.width == 64) { + if (type.floating && + type.width == 64) { intrinsic = "llvm.x86.sse41.blendvpd"; arg_type = LLVMVectorType(LLVMDoubleType(), 2); - } else if (type.width == 32) { + } else if (type.floating && + type.width == 32) { intrinsic = "llvm.x86.sse41.blendvps"; arg_type = LLVMVectorType(LLVMFloatType(), 4); } else { |