summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhigang Gong <zhigang.gong@linux.intel.com>2012-06-11 02:27:00 +0800
committerZhigang Gong <zhigang.gong@linux.intel.com>2012-06-11 16:34:18 +0800
commit503dc69c03421f2ea42089137c024eca2a137ff6 (patch)
tree26af97c63694be3832d62118e552bc24c5523b98
parenta0ae6978c712f5f8c325553d08d085693b9e6518 (diff)
glamor_getimage: should call miGetimage if failed to get sub-image.
Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
-rw-r--r--src/glamor_getimage.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/glamor_getimage.c b/src/glamor_getimage.c
index 655ed94..f446c83 100644
--- a/src/glamor_getimage.c
+++ b/src/glamor_getimage.c
@@ -45,6 +45,8 @@ _glamor_get_image(DrawablePtr drawable, int x, int y, int w, int h,
if (format != ZPixmap)
goto fall_back;
+ pixmap = glamor_get_drawable_pixmap(drawable);
+ glamor_get_drawable_deltas(drawable, pixmap, &x_off, &y_off);
if (!glamor_set_planemask(pixmap, planeMask)) {
glamor_fallback
@@ -78,7 +80,7 @@ fall_back:
y + y_off + drawable->y,
w, h, GLAMOR_ACCESS_RO);
} else
- fbGetImage(drawable, x, y, w, h, format, planeMask, d);
+ miGetImage(drawable, x, y, w, h, format, planeMask, d);
return TRUE;
}