glamor_getimage: should call miGetimage if failed to get sub-image.

Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
This commit is contained in:
Zhigang Gong 2012-06-11 02:27:00 +08:00 committed by Eric Anholt
parent 56d6e7a85f
commit 48916a23a9

View File

@ -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;
}