i965/gen7: Fix miptree layout for cube surfaces.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 22 May 2011 05:51:42 +0000 (22:51 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sun, 22 May 2011 22:01:16 +0000 (15:01 -0700)
commitd0c6d24a9ebe31b3a805e8f5845fc7e6fa552a98
tree3b1332cf6f7e2edc415cf33a2e78199e3e4530a2
parentb522eb0717986bc7d8ca46ac1dd93a865e211345
i965/gen7: Fix miptree layout for cube surfaces.

Volume 1a section 8.20.4.7.3 gives new equations which multiply by 12
instead of 11.

Fixes 8 piglit tests:
- fbo-cubemap
- texCube
- glsl-fs-texturecube
- glsl-fs-texturecube-2
- glsl-fs-texturecube-2-bias
- glsl-fs-texturecube-bias
- arb_seamless_cubemap
- cubemap

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_tex_layout.c