diff options
author | Eric Anholt <eric@anholt.net> | 2012-01-04 16:10:14 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2012-01-06 09:48:55 -0800 |
commit | fb5252a3518dadd51e88e87382e6510998e9e2f4 (patch) | |
tree | 6e69445880895f0e2e9f322ec95ab77430070c78 /src/mesa/swrast/swrast.h | |
parent | cedbfc0050af7391b6c8ed54abaa60898208f99d (diff) | |
download | external_mesa3d-fb5252a3518dadd51e88e87382e6510998e9e2f4.zip external_mesa3d-fb5252a3518dadd51e88e87382e6510998e9e2f4.tar.gz external_mesa3d-fb5252a3518dadd51e88e87382e6510998e9e2f4.tar.bz2 |
swrast: Use the fast copypixels code to implement fast glBlitFramebuffer().
They were meaning to do the same thing of memcpying rows, so just
write the code once.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'src/mesa/swrast/swrast.h')
-rw-r--r-- | src/mesa/swrast/swrast.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/swrast/swrast.h b/src/mesa/swrast/swrast.h index dd40551..468d22f 100644 --- a/src/mesa/swrast/swrast.h +++ b/src/mesa/swrast/swrast.h @@ -110,6 +110,11 @@ _swrast_CopyPixels( struct gl_context *ctx, GLsizei width, GLsizei height, GLenum type ); +extern GLboolean +swrast_fast_copy_pixels(struct gl_context *ctx, + GLint srcX, GLint srcY, GLsizei width, GLsizei height, + GLint dstX, GLint dstY, GLenum type); + extern void _swrast_DrawPixels( struct gl_context *ctx, GLint x, GLint y, |