From: Eric Anholt Date: Wed, 27 May 2009 00:44:56 +0000 (-0700) Subject: drm/i915: Fix tiling pitch handling on 8xx. X-Git-Tag: v2.6.30-rc8~22^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e76a16deb8785317a23cca7204331af053e0fb4e;p=pandora-kernel.git drm/i915: Fix tiling pitch handling on 8xx. The pitch field is an exponent on pre-965, so we were rejecting buffers on 8xx that we shouldn't have. 915 got lucky in that the largest legal value happened to match (8KB / 512 = 0x10), but 8xx has a smaller tile width. Additionally, we programmed that bad value into the register on 8xx, so the only pitch that would work correctly was 4096 (512-1023 pixels), while others would probably give bad rendering or hangs. Signed-off-by: Eric Anholt fd.o bug #20473. --- Reading git-diff-tree failed