diff options
author | Marek Olšák <[email protected]> | 2013-03-14 15:20:27 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2013-03-23 13:17:05 +0100 |
commit | d702c67ba51f55c04be670c0ac618b687f7d2127 (patch) | |
tree | afe9d63089fec62b709f5df02684e2a1a7bae15f /src/mesa/main/readpix.h | |
parent | f8855a42141cc76cf6954eee2af80e7dbc932c85 (diff) |
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 <[email protected]>
Tested-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/main/readpix.h')
-rw-r--r-- | src/mesa/main/readpix.h | 4 |
1 files changed, 4 insertions, 0 deletions
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, |