Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp371714rwn; Thu, 8 Sep 2022 03:00:53 -0700 (PDT) X-Google-Smtp-Source: AA6agR5EdZHruIAu+qKLsPnDHObdxaGRRKzBBhUVKi67fvdr+mgm8vab+uUFtttgYXwuJ/SLzLEo X-Received: by 2002:a17:907:8a14:b0:731:2198:627b with SMTP id sc20-20020a1709078a1400b007312198627bmr5586233ejc.635.1662631253032; Thu, 08 Sep 2022 03:00:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662631253; cv=none; d=google.com; s=arc-20160816; b=AmkX3gPBAZp5CFomV2wgyr8X6agAMoVhUuA2pmSJThkPPUypSztm2cakUlfbwNfadD L9SSjZMmd/1t3/xV5yoDif/txd1VOele0l9ry0AF42HsXb0QKEeU9ocG7G+bKZhP5wkh sA4MBaLRDxCS98qxaLHA7gAdIM2DpV7alXeqm0I8R7tgEh1XUIOjhn5/aCBsar+5qhpN 9x3P7VtVyCLzZgL6X6qFvBhHn2NT+d8oNUHGZQ+lO5DcMQq1MIp416FvQyHnFPZl+ATP QPX7i1y7M7EJBn3wLG4EK0qYHOWxm7VOtP2ZD3W/jERTEprZMYsnjNTr9L+Rew4FIosi tX9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=RtmXUyYM5wDG05NyTAj5v6qd8+MYp8/YqW7fq/oIS9s=; b=OzgbGWg7CHZ0jZhv0xhlWkqUE4kFrVlAUt0d40R3iRmiGLhfe6KPshlYeOvj0q61HG Tf+ibYhgY0m6aidXmrzAP9DUeXAAyKzhB+JjGFiDJoWY0MHQsPLalbnxA5yESrCv9bP6 wA4/jDeipq4aFFwi6II4RmEo9pKPY7YG6HfW5ab1CW4WrxQLSWQQANJNTYLGvCNGfUUs UKiw+62c2aLa0uyccA6L8hEl/gxU0SEbWY40PtIe2J1ZIeoQA76Ti7lcqc8BBi4DhQv8 s+ZqoZ9djVNepI5VwGHWebUPkWIrSStncdldkF1KA04g9dyLLmcpXTRfctuEj9POcCDr Bj5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="sP/Z0Q6O"; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n22-20020a1709065e1600b007307fa2da78si1512421eju.450.2022.09.08.03.00.27; Thu, 08 Sep 2022 03:00:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="sP/Z0Q6O"; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231429AbiIHJvg (ORCPT + 99 others); Thu, 8 Sep 2022 05:51:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231319AbiIHJvW (ORCPT ); Thu, 8 Sep 2022 05:51:22 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1FE1812951A for ; Thu, 8 Sep 2022 02:51:21 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 4D37533852; Thu, 8 Sep 2022 09:51:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1662630679; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RtmXUyYM5wDG05NyTAj5v6qd8+MYp8/YqW7fq/oIS9s=; b=sP/Z0Q6Oah5VeTPZEI/Hu4OPLWr3NdgMuLiorl0dDHvBs2wawQXM23ioxsPmXYmXgaXy1k 5Cu1bhTtFolvFhNR9s9iVV3GWqlDmPFkfQjtQ59fU4/JoIrHSAFNLhoWQ5NsAoMBr3et7K LlP2bfo2ycr2kg2RIY48qI9Lr+ppVLs= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1662630679; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RtmXUyYM5wDG05NyTAj5v6qd8+MYp8/YqW7fq/oIS9s=; b=W5qxp11i/ewtMpv4sOs42R+g4HM/UE7hvQN4W3LS9JG6yZXKDkGzeoFEzOHgHlXq+c43i1 0MA7Z33xVafHPTCg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 1E45C13A6D; Thu, 8 Sep 2022 09:51:19 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id AG6aBhe7GWNrUgAAMHmgww (envelope-from ); Thu, 08 Sep 2022 09:51:19 +0000 From: Takashi Iwai To: Thomas Zimmermann Cc: Daniel Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 03/12] drm/udl: Enable damage clipping Date: Thu, 8 Sep 2022 11:51:06 +0200 Message-Id: <20220908095115.23396-4-tiwai@suse.de> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220908095115.23396-1-tiwai@suse.de> References: <20220908095115.23396-1-tiwai@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Thomas Zimmermann Call drm_plane_enable_fb_damage_clips() and give userspace a chance of minimizing the updated display area. Signed-off-by: Thomas Zimmermann Signed-off-by: Takashi Iwai --- drivers/gpu/drm/udl/udl_modeset.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/udl/udl_modeset.c b/drivers/gpu/drm/udl/udl_modeset.c index 34ce5b43c5db..b2377b706482 100644 --- a/drivers/gpu/drm/udl/udl_modeset.c +++ b/drivers/gpu/drm/udl/udl_modeset.c @@ -480,6 +480,7 @@ int udl_modeset_init(struct drm_device *dev) format_count, NULL, connector); if (ret) return ret; + drm_plane_enable_fb_damage_clips(&udl->display_pipe.plane); drm_mode_config_reset(dev); -- 2.35.3