[Bug 90725] Display chunks with xorg intel driver with Accel & when using swap space

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun May 31 01:03:28 PDT 2015


https://bugs.freedesktop.org/show_bug.cgi?id=90725

--- Comment #22 from Chris Wilson <chris at chris-wilson.co.uk> ---
So, setting swizzle unknown is not a good test. Probably, something like

diff --git a/drivers/gpu/drm/i915/i915_gem_tiling.c
b/drivers/gpu/drm/i915/i915_gem_tiling.c
index af23a5a7b870..a192a9e83aa8 100644
--- a/drivers/gpu/drm/i915/i915_gem_tiling.c
+++ b/drivers/gpu/drm/i915/i915_gem_tiling.c
@@ -214,13 +214,10 @@ i915_gem_detect_bit_6_swizzle(struct drm_device *dev)
                 * the table above, or from the 1-ch value being less than
                 * the minimum size of a rank.
                 */
-               if (I915_READ16(C0DRB3) != I915_READ16(C1DRB3)) {
-                       swizzle_x = I915_BIT_6_SWIZZLE_NONE;
-                       swizzle_y = I915_BIT_6_SWIZZLE_NONE;
-               } else {
-                       swizzle_x = I915_BIT_6_SWIZZLE_9_10;
-                       swizzle_y = I915_BIT_6_SWIZZLE_9;
-               }
+               swizzle_x = I915_BIT_6_SWIZZLE_9_10;
+               swizzle_y = I915_BIT_6_SWIZZLE_9;
+               if (I915_READ16(C0DRB3) != I915_READ16(C1DRB3))
+                       dev_priv->quirks |= QUIRK_PIN_SWIZZLED_PAGES;
        }

        dev_priv->mm.bit_6_swizzle_x = swizzle_x;

is better for testing.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are on the CC list for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/intel-gfx-bugs/attachments/20150531/e20f80e7/attachment.html>


More information about the intel-gfx-bugs mailing list