i965: Fix cube map layouts on Ironlake.
authorEric Anholt <eric@anholt.net>
Thu, 29 Apr 2010 00:17:54 +0000 (17:17 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 29 Apr 2010 15:34:15 +0000 (08:34 -0700)
commit7d8f0fc28239c8023d2d44cbd4c979aa86c31873
treedc787901d42b5deff7dbadf690f2f87a5cba6b42
parentd05c35914df1c382b90def7e7425d7f2fa4737dc
i965: Fix cube map layouts on Ironlake.

We were doubling up the offsets for the mipmap levels for CPU access.
Instead of reimplementing i945_miptree_layout_2d with 6 cube images
separated by qpitch, share that function and provide the level offsets
later.

Fixes piglit cubemap and fbo-cubemap.
src/mesa/drivers/dri/i915/i915_tex_layout.c
src/mesa/drivers/dri/i965/brw_tex_layout.c
src/mesa/drivers/dri/intel/intel_tex_layout.c
src/mesa/drivers/dri/intel/intel_tex_layout.h