[4/6] drm/vmwgfx: Use drm_atomic_helper_buffer_damage_iter_init() for buffer damage
Message ID | 20231109172449.1599262-5-javierm@redhat.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b129:0:b0:403:3b70:6f57 with SMTP id q9csp589277vqs; Thu, 9 Nov 2023 09:27:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IGXw1DXr49ug03BKd08UsmtKfjOjy4XlzXmheYSKMZelx+/gK10xS4UOLHgCLYnsx/dE312 X-Received: by 2002:a05:6e02:1a09:b0:359:4ba2:c905 with SMTP id s9-20020a056e021a0900b003594ba2c905mr5690798ild.32.1699550840484; Thu, 09 Nov 2023 09:27:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699550840; cv=none; d=google.com; s=arc-20160816; b=yJEFnW++uv1tSXyOHcCt/VF0hBgOODpEcS6m5HGfDq3oSAoRoksY0DXbowQaDKZ+Ky cwoJ+Xl7u9Hl1LCg53k45MY2YHnW8a7FjLHQATO0+d21vqEYbyYY0aqC2B3Xpg+wNDOn F4vF3AmcS55sz/YwujOA6XRxKK7Fw4SSHP1u7DAXkcLOfBaeITksyiKBuCO0q2zp2CvE vZj1bctMGpJYsQeWcaj5YMpWjQjc/qOVGR7kWi2s00YYwCAIogiFLGTgJLz5HAwVeZri ZwKEYo62HZain3mVeh+4TdM5zjBP5/3VYgisbePXOegFx3obCL+13RZf9t+aZWrgJ9QB wLeA== 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; bh=7sDHSqMuo7yUORgn5WByoTm7yhsDzWS7QFyd4p9GXpM=; fh=q06x4YG3DZlnBZnE8als0mMSEFT1Jb2ERfRbzdL+2VI=; b=WTksWgBuWRhsV4RtE3UJBfUEebQ4Fgv0rmsNvkoZeTI6gmPKGKy/6F4mDD+3PDNvRx 4qG/UoiKmTZkddB6iijCs8kilKYuKOFEX8BcmKHZ2aAigGFuWNUVkIf78LK79nuWtoOa NfQ8hMsLeocYeVJlUs9yEtHefsvPkj6osn5RTxYwr8t3q0QbTVLDU+Pyx+cu5KobRtO/ bYIzsYSmr6QBaydV3pkt1LvAv/IKWSWA6Rx29nXglqBPrLJHXUr1IYV9RYnKFmG4kwf8 XYnBdRdeNjAQqBbM0iIRS2J9qC8CJA44n8TBAAamq4kngrfHOwmO6MyA2LQ1m7h4jgu5 4g4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gWvE5NG1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id k20-20020a056a00135400b006bd20945b23si16512658pfu.37.2023.11.09.09.27.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Nov 2023 09:27:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gWvE5NG1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id ADE75823585F; Thu, 9 Nov 2023 09:26:15 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344590AbjKIR0B (ORCPT <rfc822;lhua1029@gmail.com> + 31 others); Thu, 9 Nov 2023 12:26:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344550AbjKIR0A (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 9 Nov 2023 12:26:00 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7D2835BD for <linux-kernel@vger.kernel.org>; Thu, 9 Nov 2023 09:25:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1699550718; h=from:from:reply-to:subject:subject: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=7sDHSqMuo7yUORgn5WByoTm7yhsDzWS7QFyd4p9GXpM=; b=gWvE5NG129QJ6Oit0WT325wdq/TCrLsRFmtdEYG5nG568XM5h4FHAo5PQ4Dl7NsUMZZjha t3WdnG+haBmQpW6gVQgNs6E2SMUjy0g+pHhinraY8bP6oldZsYi8WFZfAESt30pbgKaIaH /XF7zX25ZTe4WmvGK0Mz0f/akXv5Ryw= Received: from mail-lf1-f70.google.com (mail-lf1-f70.google.com [209.85.167.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-583-yIkP4aZEMuGzMNw-xdDCAg-1; Thu, 09 Nov 2023 12:25:16 -0500 X-MC-Unique: yIkP4aZEMuGzMNw-xdDCAg-1 Received: by mail-lf1-f70.google.com with SMTP id 2adb3069b0e04-507d2e150c2so1103390e87.3 for <linux-kernel@vger.kernel.org>; Thu, 09 Nov 2023 09:25:16 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699550714; x=1700155514; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7sDHSqMuo7yUORgn5WByoTm7yhsDzWS7QFyd4p9GXpM=; b=rAYrrF803IHYRk9HJmkmvM5Q5mGyWAom1IwrUrd8WL+wRRzsBPjelrQWnLOKdwZZmo BH1rFywNSpzOZc5J/kURICwBJQVtvvTParg4dKBEQWehpK0VkgsWNZtKGU+s7j/hRNsN whThczLRhH5+C6ZLvb1eFQN1kCcHUZf48eOWwODTwmZXi1UFruTmC6izmpOjJUs/hHUG ykNSOurLASBVXXibNZkh0Bkvfd6o7LwRBbq1lDkAh6VF88EwqwWS1/AtxymE3t5T7pQP RwnHWxcLOENBoPZVR8AJhwVGYzoIXzBdxs0OMPaL3sJg6ZmhCsFCnKrXYFlZ7oFPDnZh vpUQ== X-Gm-Message-State: AOJu0YwSxNeJsf+9TIDKQjhxdNqsXNUDqm6F8zBnhhEvoXYkKBb6QXR+ qxICub6y/VdesJ0tkEWxGblnAI0QHAl0RdufOXvrPtPA39w4y8xPR3fogW/fvLN0OcrDTrf2tzE vkv1l0/7pkPh2vTACKQ42A14io0exrDdilnhYaQQvrWxC1Yo23KxkApdPodMEmp80EO1TWrMnZ0 lqkl8GzIQ= X-Received: by 2002:ac2:5e9e:0:b0:507:a6a5:a87b with SMTP id b30-20020ac25e9e000000b00507a6a5a87bmr1916881lfq.51.1699550714324; Thu, 09 Nov 2023 09:25:14 -0800 (PST) X-Received: by 2002:ac2:5e9e:0:b0:507:a6a5:a87b with SMTP id b30-20020ac25e9e000000b00507a6a5a87bmr1916854lfq.51.1699550714038; Thu, 09 Nov 2023 09:25:14 -0800 (PST) Received: from localhost (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id c1-20020adfed81000000b0032fab28e9c9sm119847wro.73.2023.11.09.09.25.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Nov 2023 09:25:13 -0800 (PST) From: Javier Martinez Canillas <javierm@redhat.com> To: linux-kernel@vger.kernel.org Cc: Simon Ser <contact@emersion.fr>, Sima Vetter <daniel.vetter@ffwll.ch>, Pekka Paalanen <pekka.paalanen@collabora.com>, Maxime Ripard <mripard@kernel.org>, Bilal Elmoussaoui <belmouss@redhat.com>, Erico Nunes <nunes.erico@gmail.com>, Javier Martinez Canillas <javierm@redhat.com>, Daniel Vetter <daniel@ffwll.ch>, David Airlie <airlied@gmail.com>, Maarten Lankhorst <maarten.lankhorst@linux.intel.com>, Thomas Zimmermann <tzimmermann@suse.de>, VMware Graphics Reviewers <linux-graphics-maintainer@vmware.com>, Zack Rusin <zackr@vmware.com>, dri-devel@lists.freedesktop.org Subject: [PATCH 4/6] drm/vmwgfx: Use drm_atomic_helper_buffer_damage_iter_init() for buffer damage Date: Thu, 9 Nov 2023 18:24:38 +0100 Message-ID: <20231109172449.1599262-5-javierm@redhat.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231109172449.1599262-1-javierm@redhat.com> References: <20231109172449.1599262-1-javierm@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 09 Nov 2023 09:26:16 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782108222241015089 X-GMAIL-MSGID: 1782108222241015089 |
Series |
drm: Allow the damage helpers to handle buffer damage
|
|
Commit Message
Javier Martinez Canillas
Nov. 9, 2023, 5:24 p.m. UTC
The driver does per-buffer uploads. It needs to use the damage helper that
handles buffer damages, rather than the helper that handles frame damages.
Suggested-by: Sima Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
---
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c index 1489ad73c103..91cda125784e 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c @@ -2912,7 +2912,7 @@ int vmw_du_helper_plane_update(struct vmw_du_update_plane *update) * Iterate in advance to check if really need plane update and find the * number of clips that actually are in plane src for fifo allocation. */ - drm_atomic_helper_damage_iter_init(&iter, old_state, state); + drm_atomic_helper_buffer_damage_iter_init(&iter, old_state, state); drm_atomic_for_each_plane_damage(&iter, &clip) num_hits++;