i965/gen7: Align all depth miplevels to 8 in the X direction.
authorEric Anholt <eric@anholt.net>
Mon, 18 Mar 2013 22:38:58 +0000 (15:38 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 20 Mar 2013 17:18:44 +0000 (10:18 -0700)
commit1f112ccf02adaf35317a356f40a71b16de637f97
treed400e9816684eaf5c0e526a62a34ba6089728d8e
parent529dbbfcf7a674f2d82eed5e88ce92615721d5f2
i965/gen7: Align all depth miplevels to 8 in the X direction.

On an INTEL_DEBUG=perf piglit run on IVB, reduces the instances of "HW
workaround: blit" (the printouts from the misaligned-depth workaround
blits) from 725 to 675.

It doesn't totally eliminate the workaround blit, because we still have
problems with Y offsets that we can't fix (since texturing can only align
miplevels up to 2 or 4, not 8).

No regressions on piglit/es3conform on IVB.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/intel/intel_tex_layout.c