i965: Fix 3D texture layout by more literally copying from the spec.
authorEric Anholt <eric@anholt.net>
Tue, 8 Oct 2013 07:19:23 +0000 (00:19 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 9 Oct 2013 18:28:19 +0000 (11:28 -0700)
commit8da15d75442c94adc1bc087fe164a1fa13c3c0f3
treef020eb0d5bca142a3ea6d1ef165027048dc582c0
parentbfe6e5dda5fcf65a3941ed4cca5eea755421979a
i965: Fix 3D texture layout by more literally copying from the spec.

Fixes 3 texelFetch tests in piglit all.tests on ivb, and cubemap npot on gm45.

v2: Don't forget the gen4 DL=6 cubemap behavior.

Cc: "9.1 9.2" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com> (v1)
src/mesa/drivers/dri/i965/brw_tex_layout.c