gallium/u_blit: don't do two copies for non-2D textures
authorMarek Olšák <maraeo@gmail.com>
Sun, 8 Jul 2012 14:02:41 +0000 (16:02 +0200)
committerMarek Olšák <maraeo@gmail.com>
Thu, 12 Jul 2012 00:08:30 +0000 (02:08 +0200)
commit3f13b5da1510bff8ceaf6718e4b21936d3180376
treed7656bf15c19e0a8f30c2272da014da701194257
parent2dca61bcb357d70be2bb4f2d28321dfc5fc10c69
gallium/u_blit: don't do two copies for non-2D textures

Because u_blit couldn't sample a 1D, 3D, CUBE and ARRAY texture, we created
a 2D texture holding a copy of one slice of the source texture (even for 1D).

Let's just do it right.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
src/gallium/auxiliary/util/u_blit.c