Remove the access mode from private pixmap structure.

Change the finish_access to pass in the access mode, and remove
the access mode from the pixmap structure. This element should
not be a pixmap's property.

Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
This commit is contained in:
Zhigang Gong 2011-12-11 02:26:15 +08:00 • committed by Eric Anholt
commit 92fd83872f
13 changed files with 29 additions and 30 deletions

View file

@ -422,9 +422,9 @@ _glamor_copy_n_to_n(DrawablePtr src,
dx, dy, reverse, upsidedown, bitplane,
closure);
if (dst != src)
glamor_finish_access(src);
glamor_finish_access(src, GLAMOR_ACCESS_RO);
}
glamor_finish_access(dst);
glamor_finish_access(dst, GLAMOR_ACCESS_RW);
}
done: