• Dave Airlie's avatar
    glamor: Add support for CA rendering in a single pass. · e7308b6c
    Dave Airlie authored
    It's been on the list to add dual source blending support to avoid the
    two pass componentAlpha code.  Radeon has done this for a while in
    EXA, so let's add support to bring glamor up to using it.
    
    This adds dual blend to both render and composite glyphs paths.
    
    Initial results show close to doubling of speed of x11perf -rgb10text.
    
    v2: Fix breakage of all of CA acceleration for systems without
        GL_ARB_blend_func_extended.  Add CA support for all the ops we
        support in non-CA mode when blend_func_extended is present.  Clean
        up some comments and formatting.  (changes by anholt)
    Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
    Signed-off-by: Eric Anholt's avatarEric Anholt <eric@anholt.net>
    e7308b6c
glamor_program.h 5.68 KB