drm/i915: Respect GM965/GM45 bit-17-instead-of-bit-11 option for swizzling.
authorEric Anholt <eric@anholt.net>
Tue, 25 Nov 2008 22:02:05 +0000 (14:02 -0800)
committerDave Airlie <airlied@redhat.com>
Thu, 4 Dec 2008 01:21:41 +0000 (11:21 +1000)
commita7f014f2de04893f95cfe40fe35f15c8dae4b36e
treed68e3746e42691d910321594d6e302557382765d
parentfeaf3848a813a106f163013af6fcf6c4bfec92d9
drm/i915: Respect GM965/GM45 bit-17-instead-of-bit-11 option for swizzling.

This fixes readpixels and buffer corruption when swapped out and in by
disabling tiling on them.

Now that we know that the bit 17 mode isn't just a mistake of older chipsets,
we'll need to work on a clever fix so that we can get the performance of
tiling on these chipsets, but that will require intrusive changes targeted
at the next kernel release, not this one.

Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/i915/i915_gem_tiling.c
drivers/gpu/drm/i915/i915_reg.h