public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Chia-I Wu <olv@lunarg.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] Revert "drm/i915: enable HiZ Raw Stall Optimization on IVB"
Date: Tue, 4 Mar 2014 17:06:22 +0200	[thread overview]
Message-ID: <20140304150622.GJ3852@intel.com> (raw)
In-Reply-To: <CAPaKu7RS8ptGXPjHYQtr0qzf+=k=bH=hHUDVNX93KV4V=pA3tA@mail.gmail.com>

On Tue, Mar 04, 2014 at 10:38:58PM +0800, Chia-I Wu wrote:
> On Tue, Mar 4, 2014 at 5:41 PM, Chris Wilson <chris@chris-wilson.co.uk> wrote:
> > This reverts commit 116f2b6da868dec7539103574d0421cd6221e931.
> >
> > This optimization causes widespread corruption in games, and even in
> > glxgears, on my ivb:gt1. The corruption appears like z-fighting of
> > overlapping polygons in the HiZ buffer.
> >
> > The observation ties in very closely with the description of the
> > optimization disabled by default on IVB:
> >
> > "The Hierarchical Z RAW Stall Optimization allows non-overlapping
> > polygons in the same 8x4 pixel/sample area to be processed without
> > stalling waiting for the earlier ones to write to Hierarchical Z
> > buffer."
> >
> > No reason is given for why it is disabled by default, usually for such
> > optimizations it is that it is incomplete. However, there is no
> > indication whether this a gt1 only issue either. Before considering
> > reenabling this optimization, I would first suggest reproducing the
> > corruption in piglit.
> I wonder if Haswell GT1 is affected too (that's in another commit).  I
> do not own a GT1 for either GEN to verify the issue or to create a
> sensible piglit test.

I'm seeing corruption on IVB GT2 as well. I might be more blind than
Chris or it's less subtle on GT2 since it took me a while to spot it.
Seems to be easiest to spot in Epic citadel when you go inside the
temple. I can't spot the same corruption on HSW GT3.

> 
> >
> > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=75623
> > Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> > Cc: Chia-I Wu <olv@lunarg.com>
> > Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
> > ---
> >  drivers/gpu/drm/i915/intel_pm.c | 8 +++++---
> >  1 file changed, 5 insertions(+), 3 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
> > index b016d9bcd7c1..6b4d1a89e9bc 100644
> > --- a/drivers/gpu/drm/i915/intel_pm.c
> > +++ b/drivers/gpu/drm/i915/intel_pm.c
> > @@ -4908,9 +4908,11 @@ static void ivybridge_init_clock_gating(struct drm_device *dev)
> >
> >         gen7_setup_fixed_func_scheduler(dev_priv);
> >
> > -       /* enable HiZ Raw Stall Optimization */
> > -       I915_WRITE(CACHE_MODE_0_GEN7,
> > -                  _MASKED_BIT_DISABLE(HIZ_RAW_STALL_OPT_DISABLE));
> > +       if (0) { /* causes HiZ corruption on ivb:gt1 */
> > +               /* enable HiZ Raw Stall Optimization */
> > +               I915_WRITE(CACHE_MODE_0_GEN7,
> > +                          _MASKED_BIT_DISABLE(HIZ_RAW_STALL_OPT_DISABLE));
> > +       }
> >
> >         /* WaDisable4x2SubspanOptimization:ivb */
> >         I915_WRITE(CACHE_MODE_1,
> > --
> > 1.9.0
> >
> 
> 
> 
> -- 
> olv@LunarG.com

-- 
Ville Syrjälä
Intel OTC

  reply	other threads:[~2014-03-04 15:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-04  9:41 [PATCH] Revert "drm/i915: enable HiZ Raw Stall Optimization on IVB" Chris Wilson
2014-03-04 14:38 ` Chia-I Wu
2014-03-04 15:06   ` Ville Syrjälä [this message]
2014-03-04 18:38     ` Daniel Vetter
2014-03-12 11:56       ` Chia-I Wu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140304150622.GJ3852@intel.com \
    --to=ville.syrjala@linux.intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=olv@lunarg.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox