Skip to content
  • Emma Anholt's avatar
    glamor: Replace "finish access" shader with texture swizzling. · 0b4c0c75
    Emma Anholt authored and Adam Jackson's avatar Adam Jackson committed
    
    
    For pictures without alpha, and for most other formats for GLES2, we
    would make a temporary FBO, make another temporary texture, upload our
    GLAMOR_MEMORY pixmap to the texture, then run the "finish access" shader
    across it to swizzle its values around into the temporary FBO (which we
    would use for a single Render operation and then throw away).
    
    We can simplify everything by using GL_ARB_texture_swizzle (or its
    GLES3 counterpart).  It's just not worth the complexity to try to
    improve the performance of this already low-performance path (SHM
    pixmaps + Render) on GLES2.
    
    Reviewed-by: default avatarAdam Jackson <ajax@redhat.com>
    Signed-off-by: default avatarEric Anholt <eric@anholt.net>
    0b4c0c75