mutter/cogl/driver/gl
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-gl.c Use GL_ARB_sampler_objects 2012-04-05 13:47:36 +01:00
cogl-texture-driver-gl.c Use GL_PACK_ALIGNMENT of 1 whenever possible 2012-04-05 13:51:56 +01:00