From patchwork Wed Jan 9 17:49:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Noralf_Tr=C3=B8nnes?= X-Patchwork-Id: 10754691 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B4B7614DE for ; Wed, 9 Jan 2019 17:50:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A623A29097 for ; Wed, 9 Jan 2019 17:50:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 99B40290D4; Wed, 9 Jan 2019 17:50:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 00615290C6 for ; Wed, 9 Jan 2019 17:50:12 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7FF4F6ECB6; Wed, 9 Jan 2019 17:50:11 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from smtp.domeneshop.no (smtp.domeneshop.no [IPv6:2a01:5b40:0:3005::1]) by gabe.freedesktop.org (Postfix) with ESMTPS id C7E536ECB6 for ; Wed, 9 Jan 2019 17:50:10 +0000 (UTC) Received: from 211.81-166-168.customer.lyse.net ([81.166.168.211]:40190 helo=localhost.localdomain) by smtp.domeneshop.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.84_2) (envelope-from ) id 1ghHzU-0000G9-Rs; Wed, 09 Jan 2019 18:50:08 +0100 From: =?utf-8?q?Noralf_Tr=C3=B8nnes?= To: dri-devel@lists.freedesktop.org Subject: [PATCH 0/4] drm/tinydrm: Use damage helper for dirtyfb Date: Wed, 9 Jan 2019 18:49:52 +0100 Message-Id: <20190109174956.43052-1-noralf@tronnes.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: drawat@vmware.com, david@lechnology.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Hi, I was really pleased to see that the damage helper had landed. Now I can do framebuffer flushing solely through the display pipe functions. This prepares the ground for the removal of struct tinydrm_device in my next series. Note: The damage helper isn't in drm-misc-next yet, it will show up when -rc1 arrives there. Noralf. Noralf Trønnes (4): drm/gem-fb-helper: Add drm_gem_fb_create_with_dirty() drm/damage-helper: Add drm_atomic_helper_damage_merged() drm/tinydrm: Use struct drm_rect drm/tinydrm: Use damage helper for dirtyfb drivers/gpu/drm/drm_damage_helper.c | 43 ++++++ drivers/gpu/drm/drm_gem_framebuffer_helper.c | 47 +++++- drivers/gpu/drm/tinydrm/core/tinydrm-core.c | 21 +-- .../gpu/drm/tinydrm/core/tinydrm-helpers.c | 100 +------------ drivers/gpu/drm/tinydrm/core/tinydrm-pipe.c | 30 ---- drivers/gpu/drm/tinydrm/hx8357d.c | 2 +- drivers/gpu/drm/tinydrm/ili9225.c | 138 +++++++----------- drivers/gpu/drm/tinydrm/ili9341.c | 2 +- drivers/gpu/drm/tinydrm/mi0283qt.c | 2 +- drivers/gpu/drm/tinydrm/mipi-dbi.c | 87 +++++++---- drivers/gpu/drm/tinydrm/repaper.c | 42 +++--- drivers/gpu/drm/tinydrm/st7586.c | 73 ++++----- drivers/gpu/drm/tinydrm/st7735r.c | 2 +- include/drm/drm_damage_helper.h | 3 + include/drm/drm_gem_framebuffer_helper.h | 3 + include/drm/tinydrm/mipi-dbi.h | 5 +- include/drm/tinydrm/tinydrm-helpers.h | 20 +-- include/drm/tinydrm/tinydrm.h | 26 ---- 18 files changed, 281 insertions(+), 365 deletions(-) Acked-by: Sam Ravnborg