~pali/glamor/trunk

Viewing all changes in revision 306.

  • Committer: Alex Deucher
  • Author(s): Eric Anholt
  • Date: 2014-06-09 17:52:58 UTC
  • Revision ID: git-v1:ecf6ce02d673780583efc338b6501c15fae18169
glamor: Fix accelerated rendering of GTK's ARGB vs xBGR composites.

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
release.

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 <eric@anholt.net>
Reviewed-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: