Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3795280rwb; Tue, 16 Aug 2022 08:54:12 -0700 (PDT) X-Google-Smtp-Source: AA6agR7c9tZCjCw3uyT7NIRV9+tMZ00PswbO1dlxiLl3+VJLPlHl/XT5XFqsXxscE7BLESJ5bHax X-Received: by 2002:a17:907:a218:b0:731:5e2c:c28a with SMTP id qp24-20020a170907a21800b007315e2cc28amr13856618ejc.472.1660665252099; Tue, 16 Aug 2022 08:54:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660665252; cv=none; d=google.com; s=arc-20160816; b=s85NpQrLt+IX+q9jZtoIfz5FU4ohleqKSbTxSWhFEbIX/2fyHXkgsZFLL3U90/1SPC oCvLBd9/57/c2KkcOGVmyX88xG8Gc9H6GMsVrd8wUu8MzNmBrhKXtS5HC9mmG7+I11pQ 1rPSChybgu0YimTxmHsPDUfBd9KCXa9rgLsB3mcWyFj1ZIi9MV8GqhIy0VtQoCt9l/xH NaeIrCFK0DdAv3zxkoN06Rs+ECvIIiJfZPNY/ypzspB3abFVbOQRllIaYiEYWT0G3eR6 8yyRVLQEpn8ZHU5R0/7H45lVjUZbG4F/JKzFVGd/rXLyF+uwCmgpGTJyG/fBwr6Lkn5V 4NEA== 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=L5WCqMNscgVx3GK+5GaZpRGmaBwPsjyf1bX/K1XLELVrNDOk6fTFUPTQ9TFOil1kWz ty8XK0zMI7MP1mJb6dF9yn9FR/hX28EetM7AMADGH2EXySTLaGbUuIB6OwXG0GNqCcI4 I8ydOyiZWWnK8Hr7wcD4G9YSCOIhXTQBTNEHH1Mz6gOu+L66648D34UNg2VQTdaZXRQ5 gbu4uy1FoeZ0r5aC7mlBMVrj0BMUyCh0VNanwW5t0kHtMW8ha3a0BmbDlTz7gvtWFwwk 2E3deFlg7ykdDKs1uACf22HpeLJPZNPgvRMYZzozKQpuVk2gM+kJS2wGOR82BgxHk/dr G3nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=JG17ll6B; 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 hs7-20020a1709073e8700b006fe98e19840si12274271ejc.733.2022.08.16.08.53.46; Tue, 16 Aug 2022 08:54:12 -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=JG17ll6B; 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 S235747AbiHPPih (ORCPT + 99 others); Tue, 16 Aug 2022 11:38:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235616AbiHPPiF (ORCPT ); Tue, 16 Aug 2022 11:38:05 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31D1D832C9 for ; Tue, 16 Aug 2022 08:37:03 -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 B2FC53447D; Tue, 16 Aug 2022 15:37:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1660664221; 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=JG17ll6BKuFE9hr0n20eFMEvFWSibaXe3JbUEGaYTtFOFC/7jGWEx9RBnn2jDBgn8P7v+R uWOv6qeDsuygNZ8o82XNE9lwbUrplduSidwIohNQ0zq9UEZYE4iA0VqpBqCr/4KzaFOlrp QzwuCNJ25WwjeMUSMz1XwqWrH9DEcuU= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1660664221; 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=BadSQu/rfCPmy5DcjKCPhLuVrRXs34xpknAglG++9ZxYSavyGxEYFBd4wGfjP9TUxPmbu8 EcgISNrb1eOei0DA== 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 6BB66139B7; Tue, 16 Aug 2022 15:37:01 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id cCpMGZ25+2LKJAAAMHmgww (envelope-from ); Tue, 16 Aug 2022 15:37:01 +0000 From: Takashi Iwai To: Thomas Zimmermann Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 03/12] drm/udl: Enable damage clipping Date: Tue, 16 Aug 2022 17:36:46 +0200 Message-Id: <20220816153655.27526-4-tiwai@suse.de> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220816153655.27526-1-tiwai@suse.de> References: <20220816153655.27526-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