Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp4013321rwb; Tue, 6 Sep 2022 00:44:56 -0700 (PDT) X-Google-Smtp-Source: AA6agR7ykevkJWb6huzhhGlZTyRTqMftU3k5M1pIIYh9YrCHwD4+1rf3oy/I5eqco/j5Ke/widLF X-Received: by 2002:a17:902:904b:b0:172:cd04:a3d3 with SMTP id w11-20020a170902904b00b00172cd04a3d3mr53750411plz.173.1662450296016; Tue, 06 Sep 2022 00:44:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662450296; cv=none; d=google.com; s=arc-20160816; b=S2oKg6q1wvRBZrhKz/A969dTgkKu5SHVtd/zDWI4oUdktNLznVx0gKF50+wJBL+x40 XwlEwqfVfK7OH0n41lvEBCVrmTPVcI+BXn55/GjkJ5CBq8BkmbzDOjjmuw5BGbC6w+tP adJ2YFhBXLKZVXv/wS/SW6CDnv3D1nPzOB4fWXrfbk6FSsaNvhUdabt+WNosf/OOdUr7 quEhjXp9BcJx5as8s6U1uOy46x/k6HTPMDb/PyoENtjnMBXTrwQ5yaRpcbZBEnQYVtkG xUeF9RgVFJ9PMqmbadYnltkR1e+ZRUJ74boJPlVEcki/mN50CZSMQkLd4W1LzgJ8jzQ4 erEg== 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=gNfCdwnnFn6WP3zSQvQR767pRHdkMgh+nnbzkBNqUUA=; b=O+RTjHD0+3cnpIYuk9yH0qj3wjSGY/i65uZKgKVL+S9A2TnUuz9hUGtM3FgreU3VI8 vlthcsJY/KS1Ny6uguy+Jn+XJbEYbbX021Uyz/JO75oPQw7L93ros0+WM7jPwUFrm9H5 OniwWKNmVIpUmFqRiS61d9cHZB9piObpR8TnUY2M1bCQBNOrFCcbqBcTtwVXfNjBwkW5 06GUXkRu//JLpkgYRnL7Hu4tR/lIGi6qLLwIqkt5HzdyipdCXZQH/ZIrDEenubxuGVID eORgoTH70lZKxD0ajIwqtFquYt/IKAgjMlMOYBP6Q2S4hIIHESZuc745FKpGpVXzH+vk 0kuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=iTxlH9VV; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=QHw9qUnZ; 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 t12-20020a170902e1cc00b00176c5805be5si2401406pla.207.2022.09.06.00.44.44; Tue, 06 Sep 2022 00:44:56 -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=iTxlH9VV; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=QHw9qUnZ; 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 S238780AbiIFHkK (ORCPT + 99 others); Tue, 6 Sep 2022 03:40:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233543AbiIFHj5 (ORCPT ); Tue, 6 Sep 2022 03:39:57 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49C0E1F622 for ; Tue, 6 Sep 2022 00:39:56 -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 04F243377F; Tue, 6 Sep 2022 07:39:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1662449995; 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=gNfCdwnnFn6WP3zSQvQR767pRHdkMgh+nnbzkBNqUUA=; b=iTxlH9VVsAqbAANWh7+bHsBy38XFBkJdp/d48WBUKIRb9qBB1qzdieN71OwBUlJbA7jO10 CHE8xaxEsr8q/uCY1PyXFF+mamFGUb4HQ2NASXfHxa6sl5u1/iZw6DmL2ojekm36WuF4X2 tk37hRXMI+CQOG+46qtf27LvZMn/mT8= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1662449995; 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=gNfCdwnnFn6WP3zSQvQR767pRHdkMgh+nnbzkBNqUUA=; b=QHw9qUnZZr4TJNNMeyEioK4ybxccXXTx/0qj1wRPE7zK5Bef6iZa82CvEaWmpukyGjzaJC E8Bs9MzPTOaNquAg== 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 CDBF813A7A; Tue, 6 Sep 2022 07:39:54 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id eFkqMUr5FmPeOgAAMHmgww (envelope-from ); Tue, 06 Sep 2022 07:39:54 +0000 From: Takashi Iwai To: Thomas Zimmermann Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 03/11] drm/udl: Enable damage clipping Date: Tue, 6 Sep 2022 09:39:43 +0200 Message-Id: <20220906073951.2085-4-tiwai@suse.de> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220906073951.2085-1-tiwai@suse.de> References: <20220906073951.2085-1-tiwai@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 df987644fb5d..187aba2d7825 100644 --- a/drivers/gpu/drm/udl/udl_modeset.c +++ b/drivers/gpu/drm/udl/udl_modeset.c @@ -484,6 +484,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