i965: Use proper texture alignment units for cubemaps on Gen5+.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 15 Aug 2011 19:04:37 +0000 (12:04 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 7 Sep 2011 14:49:55 +0000 (07:49 -0700)
commit477b74e85be8e468c63af9f2f3fe788e486764ce
tree11a0d355d43cfdda8e0e8e93568eaeb387bac5f5
parent8ceb235c9cbb9504e32479db54287ed9387df75a
i965: Use proper texture alignment units for cubemaps on Gen5+.

In particular, S3TC compressed textures need align_h == 4.

Fixes skybox errors in Quake 4 and FEAR.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=34628
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_tex_layout.c