st/mesa: make generic CopyPixels path work with MSAA visuals
authorMarek Olšák <maraeo@gmail.com>
Fri, 31 May 2013 18:26:39 +0000 (20:26 +0200)
committerMarek Olšák <maraeo@gmail.com>
Thu, 13 Jun 2013 01:54:14 +0000 (03:54 +0200)
commit526ebfa278554f167ba02377a3da672551d58b25
tree954af41bd41d527f858a66292c7f4448c74eae51
parent9ef44e6eb791192894cbaa6fd302b2d4fc9c2571
st/mesa: make generic CopyPixels path work with MSAA visuals

We have to use pipe->blit, not resource_copy_region, so that the read buffer
is resolved if it's multisampled. I also removed the CPU-based copying,
which just did format conversion (obsoleted by the blit).

Also, the layer/slice/face of the read buffer is taken into account (this was
ignored).

Last but not least, the format choosing is improved to take float and integer
read buffers into account.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/state_tracker/st_cb_drawpixels.c