From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E84CFC2D0DB for ; Tue, 28 Jan 2020 17:31:05 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C30C8214AF for ; Tue, 28 Jan 2020 17:31:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C30C8214AF Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=intel-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4A0A16EEBA; Tue, 28 Jan 2020 17:31:05 +0000 (UTC) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by gabe.freedesktop.org (Postfix) with ESMTPS id E64B56EEBA for ; Tue, 28 Jan 2020 17:31:03 +0000 (UTC) X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Jan 2020 09:31:03 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,374,1574150400"; d="scan'208";a="309142235" Received: from stinkbox.fi.intel.com (HELO stinkbox) ([10.237.72.174]) by orsmga001.jf.intel.com with SMTP; 28 Jan 2020 09:31:00 -0800 Received: by stinkbox (sSMTP sendmail emulation); Tue, 28 Jan 2020 19:30:59 +0200 Date: Tue, 28 Jan 2020 19:30:59 +0200 From: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= To: Matt Atwood Message-ID: <20200128173059.GO13686@intel.com> References: <20200117091627.1697-1-matthew.s.atwood@intel.com> <20200128170538.GN13686@intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200128170538.GN13686@intel.com> X-Patchwork-Hint: comment User-Agent: Mutt/1.10.1 (2018-07-13) Subject: Re: [Intel-gfx] [PATCH] drm/i915/tgl: Add Wa_1606054188;tgl X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: intel-gfx@lists.freedesktop.org Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" On Tue, Jan 28, 2020 at 07:05:38PM +0200, Ville Syrj=E4l=E4 wrote: > On Fri, Jan 17, 2020 at 04:16:28AM -0500, Matt Atwood wrote: > > On Tiger Lake we do not support source keying in the pixel formats P010, > > P012, P016. > > = > > Bspec: 52890 > > Cc: Matt Roper > > Signed-off-by: Matt Atwood > > --- > > drivers/gpu/drm/i915/display/intel_sprite.c | 13 +++++++++++++ > > 1 file changed, 13 insertions(+) > > = > > diff --git a/drivers/gpu/drm/i915/display/intel_sprite.c b/drivers/gpu/= drm/i915/display/intel_sprite.c > > index fca77ec1e0dd..67176524e60f 100644 > > --- a/drivers/gpu/drm/i915/display/intel_sprite.c > > +++ b/drivers/gpu/drm/i915/display/intel_sprite.c > > @@ -2049,6 +2049,19 @@ static int skl_plane_check_fb(const struct intel= _crtc_state *crtc_state, > > unsigned int rotation =3D plane_state->hw.rotation; > > struct drm_format_name_buf format_name; > > = > > + /* Wa_1606054188;tgl > > + * > > + * TODO: Add format RGB64i when implemented > > + * > > + */ > > + if (IS_GEN(dev_priv, 12) && > > + (plane_state->ckey.flags & I915_SET_COLORKEY_SOURCE)) > > + if (fb->format->format & (DRM_FORMAT_P010 | DRM_FORMAT_P012 > > + | DRM_FORMAT_P016)) { Oh, and that | stuff is actually just nonsense. That's not a bitfield or anything like that. I'd just add a small intel_format_is_p01x() function etc. > = > if (a && b && c) > = > Needless parens. > = > Continuing | should go to the end. Also alignment is borked. > = > > + DRM_DEBUG_KMS("GEN12 does not support source color key planes in fo= rmats P01x\n"); > = > Feels a bit overly verbose: > "Source color keying not supported with P01x formats\n" > = > > + return -EINVAL; > > + } > > + > > if (!fb) > > return 0; > = > What Manasi said. In fact pls move the thing to the end of the function > because I have more color key checks queued up in a branch and IIRC > I put them to the very end of the function. > = > > = > > -- = > > 2.21.1 > > = > > _______________________________________________ > > Intel-gfx mailing list > > Intel-gfx@lists.freedesktop.org > > https://lists.freedesktop.org/mailman/listinfo/intel-gfx > = > -- = > Ville Syrj=E4l=E4 > Intel -- = Ville Syrj=E4l=E4 Intel _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx