mesa: add common format-independent memcpy-based ReadPixels path
authorMarek Olšák <maraeo@gmail.com>
Thu, 14 Mar 2013 14:20:27 +0000 (15:20 +0100)
committerMarek Olšák <maraeo@gmail.com>
Sat, 23 Mar 2013 12:17:05 +0000 (13:17 +0100)
commitd702c67ba51f55c04be670c0ac618b687f7d2127
treeafe9d63089fec62b709f5df02684e2a1a7bae15f
parentf8855a42141cc76cf6954eee2af80e7dbc932c85
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 <brianp@vmware.com>
Tested-by: Brian Paul <brianp@vmware.com>
src/mesa/main/framebuffer.c
src/mesa/main/framebuffer.h
src/mesa/main/readpix.c
src/mesa/main/readpix.h