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=-11.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,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 5DBE3C2D0E4 for ; Tue, 17 Nov 2020 15:09:12 +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 E70B324248 for ; Tue, 17 Nov 2020 15:09:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E70B324248 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 32F2A6E0F5; Tue, 17 Nov 2020 15:09:11 +0000 (UTC) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8604D6E0F5 for ; Tue, 17 Nov 2020 15:09:09 +0000 (UTC) IronPort-SDR: VVpEzM1/85+sa+jca2PdeWOxIKIzlP1kbBHBqB7lHgBtimgD3jvX5DBcw97L57UlSjqh8oweaI nqEvdIYYuqYg== X-IronPort-AV: E=McAfee;i="6000,8403,9808"; a="170156127" X-IronPort-AV: E=Sophos;i="5.77,485,1596524400"; d="scan'208";a="170156127" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Nov 2020 07:09:09 -0800 IronPort-SDR: iUXPQt83ZgHbFIeGNKvPFG7RNkov5EC0OItooZ1tf0U4UkwIg4ny5AfAaQDb07c0347DTHisD4 WajWuSbpABGA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,485,1596524400"; d="scan'208";a="310239784" Received: from stinkbox.fi.intel.com (HELO stinkbox) ([10.237.72.174]) by fmsmga008.fm.intel.com with SMTP; 17 Nov 2020 07:09:07 -0800 Received: by stinkbox (sSMTP sendmail emulation); Tue, 17 Nov 2020 17:09:06 +0200 Date: Tue, 17 Nov 2020 17:09:06 +0200 From: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= To: "Navare, Manasi" Message-ID: <20201117150906.GB6112@intel.com> References: <20201113220358.24794-1-ville.syrjala@linux.intel.com> <20201113220358.24794-22-ville.syrjala@linux.intel.com> <20201117003343.GB29332@labuser-Z97X-UD5H> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20201117003343.GB29332@labuser-Z97X-UD5H> X-Patchwork-Hint: comment User-Agent: Mutt/1.10.1 (2018-07-13) Subject: Re: [Intel-gfx] [PATCH 21/23] drm/i915: Fix cursor src/dst rectangle with bigjoiner 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 Mon, Nov 16, 2020 at 04:33:50PM -0800, Navare, Manasi wrote: > On Sat, Nov 14, 2020 at 12:03:56AM +0200, Ville Syrjala wrote: > > From: Ville Syrj=E4l=E4 > > = > > We can't call drm_plane_state_src() this late for the slave plane since > > it would consult the wrong uapi state. We've alreayd done the correct > > uapi->hw copy earlier, so let's just preserve the unclipped src/dst > > rects using a temp copy across the intel_atomic_plane_check_clipping() > > call. > > = > > Signed-off-by: Ville Syrj=E4l=E4 > > --- > > drivers/gpu/drm/i915/display/intel_display.c | 6 ++++-- > > 1 file changed, 4 insertions(+), 2 deletions(-) > > = > > diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu= /drm/i915/display/intel_display.c > > index 19e9c3795265..7607bcd9b7fe 100644 > > --- a/drivers/gpu/drm/i915/display/intel_display.c > > +++ b/drivers/gpu/drm/i915/display/intel_display.c > > @@ -11651,6 +11651,8 @@ static int intel_check_cursor(struct intel_crtc= _state *crtc_state, > > { > > const struct drm_framebuffer *fb =3D plane_state->hw.fb; > > struct drm_i915_private *i915 =3D to_i915(plane_state->uapi.plane->de= v); > > + const struct drm_rect src =3D plane_state->uapi.src; > > + const struct drm_rect dst =3D plane_state->uapi.dst; > > int ret; > > = > > if (fb && fb->modifier !=3D DRM_FORMAT_MOD_LINEAR) { > > @@ -11666,8 +11668,8 @@ static int intel_check_cursor(struct intel_crtc= _state *crtc_state, > > return ret; > > = > > /* Use the unclipped src/dst rectangles, which we program to hw */ > > - plane_state->uapi.src =3D drm_plane_state_src(&plane_state->uapi); > > - plane_state->uapi.dst =3D drm_plane_state_dest(&plane_state->uapi); > > + plane_state->uapi.src =3D src; > > + plane_state->uapi.dst =3D dst; > = > We get this for both slave and master? No slave condition needed? Planes don't know/care about bigjoiner at this stage of the computation anymore. The only bigjoiner thing for planes is the add_affected_planes()+uapi->hw state copy. -- = Ville Syrj=E4l=E4 Intel _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx