xserver-multidpi/glamor
Zhigang Gong 1f3f3baf14 glamor: Avoid 2D bitblit if possible.
It turns out that the use of fbo blit is one of the root cause
which lead to slow drawing, especially slow filling rects.

We guess there should be a performance bug in the mesa driver
or even in the kernel drm driver. Currently, the only thing
glamor can do is to avoid calling those functions.

We check whether the copy source and destination has overlapped
region, if it has, we have to call fbo blit function. If it has
not, we can load the source texture directly and draw it to the
target texture. We totally don't need the glCopyPixels here, so
remove it.

By apply this patch, the rendering time of firefox-planet-gnome
decrease to 10.4 seconds. At the same platform, uxa driver get 13
seconds. This is the first time we get better performance than
uxa driver.

Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
2011-09-26 16:47:00 +08:00
..
glu3 glamor: Silent compilation warnings due to some deprecated APIs. 2011-09-26 16:46:34 +08:00
glamor_copyarea.c glamor: Avoid 2D bitblit if possible. 2011-09-26 16:47:00 +08:00
glamor_copywindow.c glamor: Add CopyWindow implementation so it doesn't crash. 2011-09-26 16:46:32 +08:00
glamor_core.c glamor: Don't need to pad the tile image if pixmap is ni texture. 2011-09-26 16:46:36 +08:00
glamor_debug.h glamor: Don't always fallback everything when change window attr. 2011-09-26 16:46:35 +08:00
glamor_fill.c glamor: Implement delayed solid filling. 2011-09-26 16:47:00 +08:00
glamor_fillspans.c glamor : Add dynamic texture uploading feature. 2011-09-26 16:46:35 +08:00
glamor_getspans.c glamor: Implement delayed solid filling. 2011-09-26 16:47:00 +08:00
glamor_glyphs.c glamor: Remove one extra area copy in glamor_glyph. 2011-09-26 16:46:36 +08:00
glamor_picture.c glamor : Add dynamic texture uploading feature. 2011-09-26 16:46:35 +08:00
glamor_pixmap.c glamor: Implement delayed solid filling. 2011-09-26 16:47:00 +08:00
glamor_polyfillrect.c glamor : Add dynamic texture uploading feature. 2011-09-26 16:46:35 +08:00
glamor_polylines.c glamor: Fixed two unintialized warnings. 2011-09-26 16:46:36 +08:00
glamor_priv.h glamor: Implement delayed solid filling. 2011-09-26 16:47:00 +08:00
glamor_putimage.c glamor: Implement delayed solid filling. 2011-09-26 16:47:00 +08:00
glamor_render.c glamor: Implement delayed solid filling. 2011-09-26 16:47:00 +08:00
glamor_setspans.c glamor: Implement delayed solid filling. 2011-09-26 16:47:00 +08:00
glamor_tile.c glamor: Implement delayed solid filling. 2011-09-26 16:47:00 +08:00
glamor_triangles.c glamor: Add render triangles support. 2011-09-26 16:46:35 +08:00
glamor_utils.h glamor: Fixed a bug when computing the bounds of boxes. 2011-09-26 16:47:00 +08:00
glamor_window.c glamor: Don't always fallback everything when change window attr. 2011-09-26 16:46:35 +08:00
glamor.c glamor: Implement delayed solid filling. 2011-09-26 16:47:00 +08:00
glamor.h glamor : Add dynamic texture uploading feature. 2011-09-26 16:46:35 +08:00
Makefile.am glamor: Don't always fallback everything when change window attr. 2011-09-26 16:46:35 +08:00