st/mesa: use a single memcpy in st_ReadPixels when possible
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 14 Jun 2016 18:03:53 +0000 (20:03 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 22 Jun 2016 09:44:03 +0000 (11:44 +0200)
commit3948cd37973696dc319170877382676809659465
treea3183b910425b46e24dd1ae475045f0ebeea2774
parent36ed1b695e5a0ae5714b79cae3a089b5e7e8bd29
st/mesa: use a single memcpy in st_ReadPixels when possible

This avoids costly address recomputations, function overhead, and may trigger
large copy optimizations.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_cb_readpixels.c