Fixed a bug at putImage.
fbPutImage wants the input drawable is the target drawable rather than the backing pixmap. This bug cause some XTS failures, now fix it. Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
This commit is contained in:
parent
27c4c0457d
commit
70b6341538
|
@ -403,7 +403,7 @@ _glamor_put_image(DrawablePtr drawable, GCPtr gc, int depth, int x, int y,
|
||||||
glamor_fallback("to %p (%c)\n",
|
glamor_fallback("to %p (%c)\n",
|
||||||
drawable, glamor_get_drawable_location(drawable));
|
drawable, glamor_get_drawable_location(drawable));
|
||||||
if (glamor_prepare_access(&pixmap->drawable, GLAMOR_ACCESS_RW)) {
|
if (glamor_prepare_access(&pixmap->drawable, GLAMOR_ACCESS_RW)) {
|
||||||
fbPutImage(&pixmap->drawable, gc, depth, x, y, w, h,
|
fbPutImage(drawable, gc, depth, x, y, w, h,
|
||||||
left_pad, image_format, bits);
|
left_pad, image_format, bits);
|
||||||
glamor_finish_access(&pixmap->drawable, GLAMOR_ACCESS_RW);
|
glamor_finish_access(&pixmap->drawable, GLAMOR_ACCESS_RW);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue