Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp721527rdb; Fri, 2 Feb 2024 01:46:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IGQHT2E5lDEJxEJlcWyFAI0bXO2EPrQXcSnOVoG/XowuIXhZxjpcznDoYOzd2ugyYOiOgg9 X-Received: by 2002:a05:6402:3409:b0:55f:ff8c:7707 with SMTP id k9-20020a056402340900b0055fff8c7707mr385232edc.31.1706867164215; Fri, 02 Feb 2024 01:46:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706867164; cv=pass; d=google.com; s=arc-20160816; b=JC2popZ0yMs5EkF0dJMctUB27t2l4PmQ8mJlDloYJJY61qrf6h9WHn+cGzw0Sb2Xvj JMxnqstMbetbcyQptl/1Xw2zVS6ciSBXAK9Z8bkFY2JgIcaeyadfimDwF4eJNiGrzwvo 4pLLXgpzw73th8UdzVgyGjveblDE4JNbDWzdIN9GWUxYcwWDHc1gaf3vO5KD2KjL5Ns5 2wrnRCTpYyR+Rn/tfB6YfYtgfwMxu6yBsIourDZDpLocA4IAN3WcOmkPgIuH0WL3jimI YJdWAVy2mnMWpVTn/uJw0d2THIIrGH3v5ynd92rh6kDrwDeE3M+Vb9FuunVgXJ+NXSpD ZCMg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=B65Ve0OU568B4D9kTmLoLRABlAGY2QMty8zi+Hdb1kc=; fh=ysZrjKMJW9RdBGfTb2bgR58+4QLnB3aEqubb2F/eFfQ=; b=dPga6RW2xArZmrg5qGs/fjzI64RRuEjPMSr0h2xCl7ttPspcT3zj5dKxo12+SEziwk /YG6QP/Pbc5Rf10YbOLzzbSDPRXwz7UNZSFhGis0cW+7K/HIZ/sjz1CljlAXLxzq62B4 h59qugWyWppLRg8dKLKPqDmYzPeKvnc3lh3NcSCcdElOSVo+X3j0HMy7kd9zt43tZIXi UH+HQNoZJpOUPwqD+Nf9lZKHUYLMNpxoKy+khaVceR5RUQ2FnyGxGx+2PUxGC9DCejIx 1HgKpnzZV7DO6oyIKCshAEIvFnLefeuc2SvZaa/WJ+Cc3VUo1BCTKGg0j29+UD9xFyPy gnYA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=SzgNX3uT; arc=pass (i=1 spf=pass spfdomain=igalia.com dkim=pass dkdomain=igalia.com); spf=pass (google.com: domain of linux-kernel+bounces-49605-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49605-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCXiiuJUKE/9WycGX80dWSnED+lY8YqMLUlTY6yoqZdMz/pkuqAedHxD6NEYyS7ccIYMQ53/JPbRt/SzQ/RU4Uf9aqp2MuaZ7PR0nWfcZg== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id w25-20020a056402129900b0055fe6439e95si601827edv.177.2024.02.02.01.46.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 01:46:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-49605-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=SzgNX3uT; arc=pass (i=1 spf=pass spfdomain=igalia.com dkim=pass dkdomain=igalia.com); spf=pass (google.com: domain of linux-kernel+bounces-49605-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49605-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id C39C01F24950 for ; Fri, 2 Feb 2024 09:46:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 81BB15FEFD; Fri, 2 Feb 2024 09:40:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=igalia.com header.i=@igalia.com header.b="SzgNX3uT" Received: from fanzine2.igalia.com (fanzine2.igalia.com [213.97.179.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ABDDB60273 for ; Fri, 2 Feb 2024 09:40:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.97.179.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706866851; cv=none; b=bTUIKgATE8xNemFBejea0o92AqUlHIgnTEZoP3JWHoQRGo9GVKxSOl73hdPCvYmWbLVp/+4YDl/H1ie3J2XYMsktPuDoMigXzj3HQXbj86+Z3HVektV/H5q+oS4CIKFR4xmdfFqj0o2S6ZtY7Q7TdK3LSoDuHnvkjcP5afR7IQI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706866851; c=relaxed/simple; bh=ky8m3+NULdYpbDNNAVvwPKA9GBPMytd+qTwefaAXxn8=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=ZjuQyzPUnCwZf2VHw+xZeQrV7HfduxDAvBhRtjJwgaoeKWvgdQXQTHCDpeF0XQXiA35xCF06Ou/fWBKBoBcZz7ar9T0lsoiIYYfSCIqA2nxKPKadB1XJE7v/qUslxRxioDDY2xQoxRugcrYQTA61dX56QZpzx476TiBmGQ6M7mk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=igalia.com; spf=pass smtp.mailfrom=igalia.com; dkim=pass (2048-bit key) header.d=igalia.com header.i=@igalia.com header.b=SzgNX3uT; arc=none smtp.client-ip=213.97.179.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=igalia.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=igalia.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=B65Ve0OU568B4D9kTmLoLRABlAGY2QMty8zi+Hdb1kc=; b=SzgNX3uTzQNPML6JnVjMzw6Nh3 IN248C9GVhR+1lCzV8SNpWn57Ga00zhK+3za52pqLgyXkCvn+4Mhf9f3LmdDFWucwqTqiEBIxxcU6 PUrPX7V4cLEzlvdvw+ucGFIOKt+7oenZ6DCdkSj9EcoLKdqXkkia5OTeqKawA76u2KObk+Vbl661O gB1CCZZYhL2W6L6K5FwlGjpnZwKpI1JQOCMh2J5mOF7BHvUkiOPvo2zuGMTiE/MPB0GyUWNCOWCi7 gzaS7NJ7LSpU1pX7Q00ciPdhH1lcbbVHN+Tl1pQjahZzZ6LE2VP7l8p56+pR4NVm6ZsZqdGKfBLRn /ysbZ7zg==; Received: from [179.234.233.159] (helo=[192.168.1.212]) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_128_GCM:128) (Exim) id 1rVq2A-00Cu6p-0x; Fri, 02 Feb 2024 10:40:30 +0100 Message-ID: Date: Fri, 2 Feb 2024 06:40:22 -0300 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 0/2] Better support for complex pixel formats To: Rodrigo Siqueira , Melissa Wen , =?UTF-8?Q?Ma=C3=ADra_Canal?= , Haneen Mohammed , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , marcheu@google.com, seanpaul@google.com, nicolejadeyee@google.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, miquel.raynal@bootlin.com References: <20240201-yuv-v1-0-3ca376f27632@bootlin.com> Content-Language: en-US From: =?UTF-8?Q?Ma=C3=ADra_Canal?= Autocrypt: addr=mcanal@igalia.com; keydata= xjMEZIsaeRYJKwYBBAHaRw8BAQdAGU6aY8oojw61KS5rGGMrlcilFqR6p6ID45IZ6ovX0h3N H01haXJhIENhbmFsIDxtY2FuYWxAaWdhbGlhLmNvbT7CjwQTFggANxYhBDMCqFtIvFKVRJZQ hDSPnHLaGFVuBQJkixp5BQkFo5qAAhsDBAsJCAcFFQgJCgsFFgIDAQAACgkQNI+cctoYVW5u GAEAwpaC5rI3wD8zqETKwGVoXd6+AbmGfZuVD40xepy7z/8BAM5w95/oyPsHUqOsg/xUTlNp rlbhA+WWoaOXA3XgR+wCzjgEZIsaeRIKKwYBBAGXVQEFAQEHQGoOK0jgh0IorMAacx6WUUWb s3RLiJYWUU6iNrk5wWUbAwEIB8J+BBgWCAAmFiEEMwKoW0i8UpVEllCENI+cctoYVW4FAmSL GnkFCQWjmoACGwwACgkQNI+cctoYVW6cqwD/Q9R98msvkhgRvi18fzUPFDwwogn+F+gQJJ6o pwpgFkAA/R2zOfla3IT6G3SBoV5ucdpdCpnIXFpQLbmfHK7dXsAC In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 2/2/24 05:15, Louis Chauvet wrote: > Le 01/02/24 - 19:07, Maira Canal a écrit : >> Hi Louis, >> >> Thanks for your patches! Could you please rebase them on top of >> drm-misc-next? It would make it easier for me to review and test the >> patches. >> >> Best Regards, >> - Maíra > > Hi Maíra, > > Do you want me to rebase the whole YUV [1] series or should I extract and > make my two patches independent? Please, make this two patches independent. Best Regards, - Maíra > > [1]: https://lore.kernel.org/dri-devel/20240110-vkms-yuv-v2-0-952fcaa5a193@riseup.net/ > > Best regards, > Louis Chauvet > >> On 2/1/24 14:31, Louis Chauvet wrote: >>> This patchset aims to solve issues I found in [1], and at the same time >>> simplify the composition algorithm. >>> >>> I sent more igt-gpu-tools test [2] to cover more things and detect the >>> issues in [1]. >>> >>> This patchset is based on [1]. >>> >>> Patch 1/2: This patch is a no-op, but make the code more readable >>> regarding the pixel_read functions. >>> >>> Patch 2/2: This patch is more complex. My main target was to solve issues >>> I found in [1], but as it was very complex to do it "in place", I choose >>> to rework the composition function. >>> The main two advantages are: >>> - It's now possible to create conversion function for packed & grouped >>> pixels. Some pixel formats need absolute x/y position and not only an >>> offset in the buffer to extract the correct value. This part also solve >>> the issues I found in [1]. >>> - The rotation management is now way easier to understand, there is no >>> more switch case in different places and instead of copy/pasting rotation >>> formula I used drm_rect_* helpers. >>> >>> [1]: https://lore.kernel.org/dri-devel/20240110-vkms-yuv-v2-0-952fcaa5a193@riseup.net/ >>> [2]: https://lore.kernel.org/igt-dev/20240201-kms_tests-v1-0-bc34c5d28b3f@bootlin.com/T/#t >>> >>> Signed-off-by: Louis Chauvet >>> --- >>> Louis Chauvet (2): >>> drm/vkms: Create a type to check a function pointer validity >>> drm/vkms: Use a simpler composition function >>> >>> drivers/gpu/drm/vkms/vkms_composer.c | 97 ++++++++----- >>> drivers/gpu/drm/vkms/vkms_drv.h | 32 ++++- >>> drivers/gpu/drm/vkms/vkms_formats.c | 254 ++++++++++++++++++----------------- >>> drivers/gpu/drm/vkms/vkms_formats.h | 2 +- >>> drivers/gpu/drm/vkms/vkms_plane.c | 13 +- >>> 5 files changed, 236 insertions(+), 162 deletions(-) >>> --- >>> base-commit: 5d189d57bb335a87ec38ea26fe43a5f3ed31ced7 >>> change-id: 20240201-yuv-1337d90d9576 >>> >>> Best regards,