intel: Fix software copying of miptree faces for weird formats.
authorEric Anholt <eric@anholt.net>
Wed, 31 Oct 2012 21:42:39 +0000 (14:42 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 1 Mar 2013 19:50:03 +0000 (11:50 -0800)
commit973ddc897d48548fe66f739d703d2e3808de04d1
tree7657f1e34078f2466ae56549db74c79fdff2a513
parent6d6bd2ac7ccf4e78f857cc114c04a840ba6785dd
intel: Fix software copying of miptree faces for weird formats.

Now that we have W-tiled S8, we can't just region_map and poke at bits --
there has to be some swizzling.  Rely on intel_miptree_map to get that job
done.  This should also get the highest performance path we know of for the
mapping (interesting if I get around to finishing movntdqa some day).

v2: Fix stale name of the bit in a comment.

Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/intel/intel_mipmap_tree.c
src/mesa/drivers/dri/intel/intel_regions.c
src/mesa/drivers/dri/intel/intel_regions.h