From: Chris Wilson Subject: Re: [PATCH] drm/i915: enable IPS for bpp <= 24 Date: Thu, 25 Jul 2013 18:17:59 +0100 Message-ID: <20130725171759.GF6493@cantiga.alporthouse.com> References: <1374772010-3115-1-git-send-email-jbarnes@virtuousgeek.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from fireflyinternet.com (s16502780.onlinehome-server.info [87.106.93.118]) by gabe.freedesktop.org (Postfix) with ESMTP id B53BCE6222 for ; Thu, 25 Jul 2013 10:18:09 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1374772010-3115-1-git-send-email-jbarnes@virtuousgeek.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Jesse Barnes Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Thu, Jul 25, 2013 at 10:06:50AM -0700, Jesse Barnes wrote: > Art confirms that this should work fine. Since most panels are 18bpp > with dithering from 24bpp, the existing code wouldn't be enabled in most > cases. > > Signed-off-by: Jesse Barnes > --- > drivers/gpu/drm/i915/intel_display.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c > index 12ea1a9..7cf475b 100644 > --- a/drivers/gpu/drm/i915/intel_display.c > +++ b/drivers/gpu/drm/i915/intel_display.c > @@ -4091,7 +4091,7 @@ static void hsw_compute_ips_config(struct intel_crtc *crtc, > { > pipe_config->ips_enabled = i915_enable_ips && > hsw_crtc_supports_ips(crtc) && > - pipe_config->pipe_bpp == 24; > + pipe_config->pipe_bpp <= 24; Don't you want to check that the incoming fb is depth 24? -Chris -- Chris Wilson, Intel Open Source Technology Centre