From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Vetter Subject: Re: [PATCH] drm/i915: fixup fb bpp computation in pipe_config_set_bpp Date: Thu, 28 Mar 2013 16:55:55 +0100 Message-ID: <20130328155555.GP2228@phenom.ffwll.local> References: <20130328151303.GO4469@intel.com> <1364485088-12684-1-git-send-email-daniel.vetter@ffwll.ch> <20130328154506.GQ4469@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mail-ea0-f170.google.com (mail-ea0-f170.google.com [209.85.215.170]) by gabe.freedesktop.org (Postfix) with ESMTP id 67E93E60B9 for ; Thu, 28 Mar 2013 08:53:05 -0700 (PDT) Received: by mail-ea0-f170.google.com with SMTP id a15so3937008eae.1 for ; Thu, 28 Mar 2013 08:53:04 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20130328154506.GQ4469@intel.com> 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: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= Cc: Daniel Vetter , Intel Graphics Development List-Id: intel-gfx@lists.freedesktop.org On Thu, Mar 28, 2013 at 05:45:06PM +0200, Ville Syrj=E4l=E4 wrote: > On Thu, Mar 28, 2013 at 04:38:08PM +0100, Daniel Vetter wrote: > > Ville pointed out that my assumption that no unsupported pixel format > > can get past the pipe config computation stage to the platform > > update_plane callbacks is wrong. The reason is that this function > > still checks the old fb->depth value instead of the new pixel_format. > > = > > While checking with all the other places that use this I've noticed > > that intel_framebuffer_init already has all the platform checks we > > need, so replace those checks with a WARN_ON. > > = > > Since fb->depth isn't set for YUV pixel formats and since we already > > can't create an fb with an rgb layout not support on the running > > platform I /think/ this patch doesn't fix any bug. > > = > > But it surely looks better! > > = > > v2: BGR formats are also only gen4+, so add the corresponding WARN_ON, > > too (Ville). > > = > > Cc: Ville Syrj=E4l=E4 > > Signed-off-by: Daniel Vetter > = > Reviewed-by: Ville Syrj=E4l=E4 Both patches merged to dinq, thanks for the review. -Daniel -- = Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch