Skip to content
  • Roland Scheidegger's avatar
    llvmpipe: (trivial) minimally simplify mask construction · db7e786a
    Roland Scheidegger authored
    
    
    simd instruction sets usually have comparisons for equal, not unequal.
    So use a different comparison against the mask itself - which also means
    we don't need a all-zero as well as a all-one (for the pxor) reg.
    
    Also add code to avoid scalar expansion of i1 values which we definitely
    shouldn't do. There's problems with this though with llvm select
    interaction, so it's disabled (basically using llvm select instead of
    intrinsics may still produce atrocious code, even in cases where we
    figured it should not, albeit I think this could probably be fixed
    with some better selection of optimization passes, but I have zero
    idea there really).
    
    Reviewed-by: default avatarJose Fonseca <jfonseca@vmware.com>
    db7e786a