Commit 8970030d authored by Keith Packard's avatar Keith Packard Committed by Adam Jackson

glamor: Switch XY bitmap putimage function for small images

Use the glamor_put_image_xy_gl for small images as that is quite a bit
faster.
Signed-off-by: Keith Packard's avatarKeith Packard <keithp@keithp.com>
parent 0a50fa4f
Pipeline #128291 passed with stages
in 6 minutes and 9 seconds
......@@ -306,8 +306,13 @@ glamor_put_image(DrawablePtr drawable, GCPtr gc, int depth, int x, int y,
return;
break;
case XYBitmap:
if (glamor_put_image_xybitmap_gl(drawable, gc, x, y, w, h, leftPad, bits))
return;
if (w * h >= 100 * 100) {
if (glamor_put_image_xybitmap_gl(drawable, gc, x, y, w, h, leftPad, bits))
return;
} else {
if (glamor_put_image_xy_gl(drawable, gc, depth, x, y, w, h, leftPad, format, bits))
return;
}
break;
}
glamor_put_image_bail(drawable, gc, depth, x, y, w, h, leftPad, format, bits);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment