Advertisement
Guest User

Untitled

a guest
Jan 25th, 2016
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.62 KB | None | 0 0
  1. diff --git a/drivers/gpu/drm/i915/i915_gem_fence.c b/drivers/gpu/drm/i915/i915_gem_fence.c
  2. index 598198543dcd..4f530345ad8c 100644
  3. --- a/drivers/gpu/drm/i915/i915_gem_fence.c
  4. +++ b/drivers/gpu/drm/i915/i915_gem_fence.c
  5. @@ -642,7 +642,7 @@ i915_gem_detect_bit_6_swizzle(struct drm_device *dev)
  6.         }
  7.  
  8.         /* check for L-shaped memory aka modified enhanced addressing */
  9. -       if (IS_GEN4(dev) &&
  10. +       if ((IS_GEN3(dev) || IS_GEN4(dev)) &&
  11.             !(I915_READ(DCC2) & DCC2_MODIFIED_ENHANCED_DISABLE)) {
  12.             swizzle_x = I915_BIT_6_SWIZZLE_UNKNOWN;
  13.             swizzle_y = I915_BIT_6_SWIZZLE_UNKNOWN;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement