r600g: upsample and downsample MSAA resources for transfers
authorMarek Olšák <maraeo@gmail.com>
Wed, 29 May 2013 18:12:27 +0000 (20:12 +0200)
committerMarek Olšák <maraeo@gmail.com>
Thu, 13 Jun 2013 01:54:13 +0000 (03:54 +0200)
commit4d59258856a3601fb7fbb4c4d80f64491f0cb5c7
tree96517f8de61cc65988a8de19d0db840e69e9d8bc
parent72a086b8b2a58044be1a66dc09d9cb8b0d3da719
r600g: upsample and downsample MSAA resources for transfers

We did downsample (=resolve) MSAA resources to make ReadPixels work with MSAA
GLX visuals, which was enough for read-only color-only transfers.

This commit makes write color transfers and depth-stencil transfers work
in a similar manner. It does downsampling in transfer_map and upsampling
in transfer_unmap.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/drivers/r600/r600_texture.c