From patchwork Mon May 15 13:52:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ma=C3=ADra_Canal?= X-Patchwork-Id: 13241525 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 67600C7EE26 for ; Mon, 15 May 2023 13:52:37 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6C0FA10E077; Mon, 15 May 2023 13:52:36 +0000 (UTC) Received: from fanzine2.igalia.com (fanzine2.igalia.com [213.97.179.56]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8B93D10E077 for ; Mon, 15 May 2023 13:52:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=2o7BlJPC0mCLKXOG8WJdUqvpRveP+c2YhyOQkpN1D9E=; b=cEHojLeBrf2WZ1i0lB5wDLYRj2 anuADGrTxg7Ug6vf/27N0pbPrdPsxM0zqhZzNAoLFzvzkmtu5DNjFOfQ24BTMkj109ZLD9UPc6/Pi pLZA0dQwG8Kesfm41gbKLcwCQBK7XPOt7UwFSOmcjkXAB1YL1gj92QCPpYHqQMd3K3Adb2W9t9VhJ rRufflXN/T+nCI6O0tM06zwoEQxSHtdWmqHaAgEhsj73QZh6VwxXf05Uw/3yViwJlbNgmchdfKAp1 26h4KIHx1zGQY86Wxdk52CylCvQh9Ql2mSpnEiONDFQj40Sxpb9fz03CCUTBk2F8DQ3kIKmgsCw+w u32fPeJA==; Received: from gwsc.sc.usp.br ([143.107.225.16] helo=bowie.sc.usp.br) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim) id 1pyYcm-009tiB-Oe; Mon, 15 May 2023 15:52:29 +0200 From: =?utf-8?q?Ma=C3=ADra_Canal?= To: David Airlie , Daniel Vetter , Rodrigo Siqueira , Melissa Wen , Haneen Mohammed , Arthur Grillo Subject: [PATCH 0/3] drm/vkms: Minor Improvements Date: Mon, 15 May 2023 10:52:02 -0300 Message-Id: <20230515135204.115393-1-mcanal@igalia.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Ma=C3=ADra_Canal?= , dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This series addresses some minor improvements to the writeback functionality. The first patch intends to reduce the critical section of a spinlock by removing assignments that don't need to be protected by a lock. The second patch enables the support for ARGB8888 on the writeback. Finally, the third patch refactors the pixel conversion functions of the writeback functionality. This patch is a follow-up of a previous patchset [1], in which Melissa suggested to apply the same refactor to the writeback pixel conversion functions. [1] https://lore.kernel.org/dri-devel/20230418130525.128733-1-mcanal@igalia.com/T/ Best Regards, - Maíra Maíra Canal (3): drm/vkms: Reduce critical section drm/vkms: Enable ARGB8888 support for writeback drm/vkms: Isolate writeback pixel conversion functions drivers/gpu/drm/vkms/vkms_composer.c | 4 +- drivers/gpu/drm/vkms/vkms_drv.h | 4 +- drivers/gpu/drm/vkms/vkms_formats.c | 140 +++++++++++--------------- drivers/gpu/drm/vkms/vkms_formats.h | 2 +- drivers/gpu/drm/vkms/vkms_writeback.c | 9 +- 5 files changed, 68 insertions(+), 91 deletions(-) Reviewed-by: Arthur Grillo