Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3248210pxb; Mon, 18 Oct 2021 11:07:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwv61cwAQ3zQXAMQxDW9QkB70+vZvJ4JPJ5YlqZuQYnFZ/SpY/vMvZsl8l95doS91ok7AL8 X-Received: by 2002:a17:90a:12:: with SMTP id 18mr489279pja.104.1634580446523; Mon, 18 Oct 2021 11:07:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634580446; cv=none; d=google.com; s=arc-20160816; b=sbiFElg61AvB83B2J+emztfDl0MBt0sgpQyX6neLckXQnidQcId8ZCyvyzQwcofBH7 1sNboB7tDJsjCEqX7vFETTtmlB+XUta8IONSh+CgxhtZ4C74yFzxM6KxygstdJq6I7KA Jci0kNWfjtztZNrVjR5uDps0c71DZ8VPeS4sg4bm9/T2dc3h2HyjU22Ou/k9ZWzeb0wK Kprae5rJsIsX5q4sqp/ig3qKRe23E9D5WyOJmg+hFtyWH2TnrDfcwQgDl1b4TgWxbPBF PNTLecO1XVhVfMFFa1LdfIKhZySFzg9Wy5wFKpJ9wompIhPt+gS5gKEIiNPitOcuOckq loeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=7rsgdN3VduQajPPoeQmc0fDRx+p/oE/XICMQOKXr/tk=; b=BF6WT1qTYRQ5t0MmDaGIwP7agvVs2bgNLSLnawTKvkLKCZjuDjyyr2KGp51sGWtfAQ lo3+pjtckzqoyn78pKSvox2JWrXm78pA1+3lfqx/Y63lZOSFU0NWDvR8Li1wz4eHDP9y MYoBZTx6G9uVCJuO868spmNnJ7LZWt1l5QIiEBPeCb7KLS4uFCdlu56RMeNa7tCa/mXr YvxPmoHP47HxZhrJrFN+eJHDXKxfh3m+v9Vc9d3Ilh04ju/VHw3N000aQVY1Ltl6Kvwi 65mo1gApZlbompNn6BGhQGG1DQ15mNjfOM/8G/k56CP6ynImfJGVe77Z/FVWT4DgA9oz 2vqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=TC888OHB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id me4si210806pjb.34.2021.10.18.11.07.12; Mon, 18 Oct 2021 11:07:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=TC888OHB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231811AbhJRSIM (ORCPT + 99 others); Mon, 18 Oct 2021 14:08:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230057AbhJRSIM (ORCPT ); Mon, 18 Oct 2021 14:08:12 -0400 Received: from mail-vk1-xa2f.google.com (mail-vk1-xa2f.google.com [IPv6:2607:f8b0:4864:20::a2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97A89C06161C for ; Mon, 18 Oct 2021 11:06:00 -0700 (PDT) Received: by mail-vk1-xa2f.google.com with SMTP id x207so9062919vke.2 for ; Mon, 18 Oct 2021 11:06:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=7rsgdN3VduQajPPoeQmc0fDRx+p/oE/XICMQOKXr/tk=; b=TC888OHBgaGtnkb+WMRqmEZYH8SnoLHnLVWZykP9DKGJt9+KJWGRShlbdPfslJ104W IQnalU6wgKqRyicT/KsU/i7y5wa+TOckEzEmyipZl6YG7ebAox8strzC208B7/jZEWw9 gjGBDZQrOrAHLVeL8yvGkw5+BiPKjHVYDgtoVl/mtcJGjE7hsrCdt57RqVRZ6SRo+4dS tuFM0hg/cNBhFvCG55zjb5XyayzDYhl0RqlhwTyrko6X+I9h293F7TCqd9zWSEZNY/Re u6WZ1YzNOqZoNcMTeElvDMYm0KXMRKVmKeWkfAu2gWSE4BXjskwoBiT8+5FEsu8uQrWm w+mA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=7rsgdN3VduQajPPoeQmc0fDRx+p/oE/XICMQOKXr/tk=; b=f6jVcjOUZ/4cNGsd+5+L4lgmPcZnEippwuBt+OMKEaM3va62w0q6ir/Zb1/sOJLMnC xNNCOL2ooOfI6ts6UXOqoVXBDmyn05SNhT21/LYnpWF7EtJo7wR5ru54il5Rcr+vzrGF vciSrmpTdXdgf8qbY6dd9DaxMN0KHOhSA2OTCk8gxqib9LYEuCt/Q8KnMKAaDiIw95b5 1BTXvPlAlGptTBzfq8OjnMtMxLxBJb803hvPKtJfz5omHrgOfABVuPq3xtD6Z0JwF3+K a2KGK2dkMC++lnZ8s1PXcHDsZnKi1tfqJ3YdjuDAQSVXQ7q25BQvddp0vcXaK5/uF5s0 E8Cw== X-Gm-Message-State: AOAM533QLGe8rt2lv837eD6IfqxxmL3/1L2ouQW87vRZixRv64btHZ9G ENYoHbAzDO0N64nM2OkvD9GrrWESYY0= X-Received: by 2002:a1f:b417:: with SMTP id d23mr26227711vkf.8.1634580359679; Mon, 18 Oct 2021 11:05:59 -0700 (PDT) Received: from ?IPv6:2804:431:c7f4:b20b:2ce0:3c04:a56a:40cc? ([2804:431:c7f4:b20b:2ce0:3c04:a56a:40cc]) by smtp.gmail.com with ESMTPSA id 71sm9154484uao.13.2021.10.18.11.05.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 18 Oct 2021 11:05:59 -0700 (PDT) Subject: Re: [PATCH 0/6] Refactor the vkms to accept new formats To: Pekka Paalanen Cc: rodrigosiqueiramelo@gmail.com, melissa.srw@gmail.com, hamohammed.sa@gmail.com, daniel@ffwll.ch, airlied@linux.ie, contact@emersion.fr, leandro.ribeiro@collabora.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, lkcamp@lists.libreplanetbr.org References: <20211005201637.58563-1-igormtorrente@gmail.com> <20211018105333.5f1bf9fe@eldfell> From: Igor Matheus Andrade Torrente Message-ID: <2202889c-b865-124f-1035-35fd66d10a0c@gmail.com> Date: Mon, 18 Oct 2021 15:05:56 -0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20211018105333.5f1bf9fe@eldfell> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi pq, On 10/18/21 4:53 AM, Pekka Paalanen wrote: > On Tue, 5 Oct 2021 17:16:31 -0300 > Igor Matheus Andrade Torrente wrote: > >> XRGB to ARGB behavior >> ================= >> During the development, I decided to always fill the alpha channel of >> the output pixel whenever the conversion from a format without an alpha >> channel to ARGB16161616 is necessary. Therefore, I ignore the value >> received from the XRGB and overwrite the value with 0xFFFF. >> >> My question is, is this behavior acceptable? > > Hi, > > that is the expected behaviour. X channel values must never affect > anything on screen, hence they must never affect other channels' > values. You are free to completely ignore X channel values, and if your > output buffer has X channel, then you are free to write (or not write, > unless for security reasons) whatever into it. > Great!! And thanks!!! > > Thanks, > pq > >> >> [1] https://lists.freedesktop.org/archives/igt-dev/2021-October/036125.html >> >> Igor Matheus Andrade Torrente (6): >> drm: vkms: Replace the deprecated drm_mode_config_init >> drm: vkms: Alloc the compose frame using vzalloc >> drm: vkms: Replace hardcoded value of `vkms_composer.map` to >> DRM_FORMAT_MAX_PLANES >> drm: vkms: Add fb information to `vkms_writeback_job` >> drm: vkms: Prepare `vkms_wb_encoder_atomic_check` to accept multiple >> formats >> drm: vkms: Refactor the plane composer to accept new formats >> >> drivers/gpu/drm/vkms/vkms_composer.c | 275 ++++++++++++++------------ >> drivers/gpu/drm/vkms/vkms_drv.c | 5 +- >> drivers/gpu/drm/vkms/vkms_drv.h | 12 +- >> drivers/gpu/drm/vkms/vkms_formats.h | 125 ++++++++++++ >> drivers/gpu/drm/vkms/vkms_writeback.c | 27 ++- >> 5 files changed, 304 insertions(+), 140 deletions(-) >> create mode 100644 drivers/gpu/drm/vkms/vkms_formats.h >> >