From d702c67ba51f55c04be670c0ac618b687f7d2127 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Thu, 14 Mar 2013 15:20:27 +0100 Subject: mesa: add common format-independent memcpy-based ReadPixels path I'll need the _mesa_readpixels_needs_slow_path function for the blit-based version, but it's also useful to have this memcpy-based path in one place and not scattered across several functions. v2: add "const" to function parameters Reviewed-by: Brian Paul Tested-by: Brian Paul --- src/mesa/main/readpix.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/mesa/main/readpix.h') diff --git a/src/mesa/main/readpix.h b/src/mesa/main/readpix.h index 5a5f73f5295..7491c22ff57 100644 --- a/src/mesa/main/readpix.h +++ b/src/mesa/main/readpix.h @@ -33,6 +33,10 @@ struct gl_context; struct gl_pixelstore_attrib; +extern GLboolean +_mesa_readpixels_needs_slow_path(const struct gl_context *ctx, GLenum format, + GLenum type, GLboolean uses_blit); + extern void _mesa_readpixels(struct gl_context *ctx, GLint x, GLint y, GLsizei width, GLsizei height, -- cgit v1.2.3