mutter/cogl/driver/gles
Neil Roberts ec5009fa23 Use GL_PACK_ALIGNMENT of 1 whenever possible
The Intel driver currently has an optimisation when calling
glReadPixels into a PBO so that it will use a blit instead of the Mesa
fallback path. However this only works if the GL_PACK_ALIGNMENT is
exactly 1, even if this would be equivalent to a higher alignment
value because the bpp*width is already aligned. To make it more likely
to hit this fast path, we now detect this situation and explicitly use
an alignment of 1. To make this work the texture driver needs to be
passed down the bpp*width as well as the rowstride when configuring
the alignment.

Reviewed-by: Robert Bragg <robert@linux.intel.com>
2012-04-05 13:51:56 +01:00
..
cogl-gles.c gles2: Support the GL_EXT_unpack_subimage extension 2012-03-23 13:51:08 +00:00
cogl-texture-driver-gles.c Use GL_PACK_ALIGNMENT of 1 whenever possible 2012-04-05 13:51:56 +01:00