sna: Allow inplace copies for wedged CopyArea

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-07-17 19:29:32 +01:00
parent 217eeadf81
commit d4fa4d5494
1 changed files with 2 additions and 1 deletions

View File

@ -4584,7 +4584,8 @@ sna_copy_area(DrawablePtr src, DrawablePtr dst, GCPtr gc,
if (!sna_gc_move_to_cpu(gc, dst, &region))
goto out;
if (!sna_drawable_move_region_to_cpu(dst, &region, MOVE_READ | MOVE_WRITE))
if (!sna_drawable_move_region_to_cpu(dst, &region,
drawable_gc_flags(dst, gc, false)))
goto out_gc;
RegionTranslate(&region,