From patchwork Fri Jul 15 13:49:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Hogander, Jouni" X-Patchwork-Id: 12920149 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id EF853C433EF for ; Sat, 16 Jul 2022 14:37:43 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3D17E10F139; Sat, 16 Jul 2022 14:35:32 +0000 (UTC) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by gabe.freedesktop.org (Postfix) with ESMTPS id 14DB810E166; Fri, 15 Jul 2022 14:54:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1657896865; x=1689432865; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=NBk5N2wxwZXDYKlrDAYaoH2PoT0/jMtOTMknCzNvqEI=; b=lQIDsup3HAGPgXnV0DFvHWkPZ/xGaEfkMaJiPSkFuI+jlEON7/Cre1ii zMomAtvKHUjhd2QU2MF0kBW9ijretkktAnV96TAbimFEYhFfkhomVaCKM 4ngZL/Gr3n8oeRrfMOU9hN4Iyjc5NRJ8H4VNl/ABl/POlCpFbR2FyGibQ C9ZUbDpUFqjdEZSZBdCxdU4DVAZeEXjeZl0jPnDXB6TgbZbstuxIXIjQm J+fmhju8cEJ9VuOpsDjmHfjxluKoYd8uEf6NUs5xx7R2TA8pCVq9Qf/l9 LD/n0B9U8FAm2uSQFY4cAIT83aR/YRRBVDhMvAqhkTvcnpz2fTPYGG5bD A==; X-IronPort-AV: E=McAfee;i="6400,9594,10408"; a="285822261" X-IronPort-AV: E=Sophos;i="5.92,274,1650956400"; d="scan'208";a="285822261" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jul 2022 06:51:14 -0700 X-IronPort-AV: E=Sophos;i="5.92,274,1650956400"; d="scan'208";a="654340370" Received: from jgrajkow-mobl1.ger.corp.intel.com (HELO jhogande-mobl1.ger.corp.intel.com) ([10.252.38.223]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jul 2022 06:51:11 -0700 From: =?utf-8?q?Jouni_H=C3=B6gander?= To: dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org Subject: [PATCH 0/3] Fixes for damage clips handling Date: Fri, 15 Jul 2022 16:49:55 +0300 Message-Id: <20220715134958.2605746-1-jouni.hogander@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jani Nikula , Daniel Vetter , =?utf-8?q?Jos=C3=A9_Roberto_de_Souz?= =?utf-8?q?a?= , Mika Kahola , =?utf-8?q?Jouni_H=C3=B6gander?= Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Currently damage clips handling is broken for planes when using big framebuffer + offset in case kms driver adjusts drm_plane_state.src coords. This is because damage clips are using coords relative to original coords from user-space. This patchset is fixing this by using original coords from user-space instead of drm_plane_state.src when iterating damage_clips. Cc: Daniel Vetter Cc: Maarten Lankhorst Cc: Jani Nikula Cc: Ville Syrjälä Cc: José Roberto de Souza Cc: Mika Kahola Jouni Högander (3): drm: Use original src rect while initializing damage iterator drm/i915/display: Use original src in psr2 sel fetch area calculation drm/i915/display: Use drm helper instead of own loop for damage clips drivers/gpu/drm/drm_damage_helper.c | 11 +++++++---- drivers/gpu/drm/i915/display/intel_psr.c | 20 +++++++------------- 2 files changed, 14 insertions(+), 17 deletions(-)