largepixmap: Fix the selfcopy issue.
authorZhigang Gong <zhigang.gong@linux.intel.com>
Mon, 11 Jun 2012 05:05:48 +0000 (13:05 +0800)
committerEric Anholt <eric@anholt.net>
Wed, 18 Dec 2013 19:23:51 +0000 (11:23 -0800)
commit8ca16754f7e95e47423183bbd5f72966b937f6c8
treef907c65267412ddcbaaefd90ccec42929801f12a
parent5325c800f706f46085735d608f57d513da63cddf
largepixmap: Fix the selfcopy issue.

If the source and destination are the same pixmap/fbo, and we
need to split the copy to small pieces. Then we do need to
consider the sequence of the small pieces when the copy area
has overlaps. This commit take the reverse/upsidedown into
the clipping function, thus it can generate correct sequence
and avoid corruption self copying.

Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
glamor/glamor_copyarea.c
glamor/glamor_fill.c
glamor/glamor_largepixmap.c
glamor/glamor_pixmap.c
glamor/glamor_priv.h
glamor/glamor_tile.c