r600g: fix copying between NPOT mipmapped compressed textures
authorMarek Olšák <maraeo@gmail.com>
Thu, 16 Aug 2012 17:05:22 +0000 (19:05 +0200)
committerMarek Olšák <maraeo@gmail.com>
Thu, 16 Aug 2012 18:44:54 +0000 (20:44 +0200)
commit6fd9218bb44b8719da60ce325d4f41c4a611e871
treef19f16d39f75ed72442a4ce95cc6fa79780476ad
parentb8e9cf5d965ce09227cd9875c4381c73f237f196
r600g: fix copying between NPOT mipmapped compressed textures

We aligned the dimensions to the blocksize, then divided by it
(in r600_blit.c), then minified, which was wrong.

The minification must be done first, not last.
This fixes piglit/fbo-generatemipmap-formats with S3TC and maybe
a bunch of other tests too. Tested on RV730.
src/gallium/drivers/r600/r600_texture.c