• Eric Anholt's avatar
    glamor: Fix accelerated rendering of GTK's ARGB vs xBGR composites. · e9240342
    Eric Anholt authored
    There is some complicated code to support tweaking the format as we
    upload from a SHM pixmap (aka the GTK icon cache), but if we weren't
    sourcing from a SHM pixmap we just forgot to check that the formats
    matched at all.
    We could potentially be a little more discerning here (xRGB source and
    ARGB mask would be fine, for example), but this will all change with
    texture views anyway, so just get the rendering working for 1.16
    Fixes the new rendercheck gtk_argb_xbgr test.
    v2: Squash in keithp's fix for checking that we have a non-NULL
        pixmap, and reword the comment even more.
    Signed-off-by: Eric Anholt's avatarEric Anholt <eric@anholt.net>
    Reviewed-by: Keith Packard's avatarKeith Packard <keithp@keithp.com>
glamor_render.c 70.4 KB