Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp316260pxb; Thu, 2 Sep 2021 05:01:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgZ7iMIq5Ah0R+8JhNQDBIMYX3uy02f9P4mH6BM0lhH3lF6C83EE07eft8oQwkb9IHsYP9 X-Received: by 2002:a17:906:c317:: with SMTP id s23mr3406564ejz.83.1630584061942; Thu, 02 Sep 2021 05:01:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630584061; cv=none; d=google.com; s=arc-20160816; b=nSJdkeELMIY9whF6FYr2u9EKzWoQGiQX9L0aitVoIimHQcKgYqbsunhbNytVrzIJFB OBox5q0HKAl8Thqc2DZkuYeLlP2YlKBPknabDhSrehCfMvMCfWI1eX2w4ZJVgBejxJZ2 6s60scRv1qA8fwOveZdyt3d9pppZJHnYfX2YfU0veFmsCw1SsqPQ8J9Tf7pSkfv8P/v5 lrkm/YXuMGME+aSB7XLhRaK8m5j+IAlo3v+uToa4JGlvRP54w68Cz92aPuSzV8uk8xNt 7ovHviW8Nmr7litk7YuRLqAPAYAwM8jbrpFYTLASSehc94u+EJSB8n3hbcuEanwLLwRD MQEA== 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=HmG+SzrqI25IfuOzYDDubE9mgxl445AA/VbS1PiElag=; b=BWjDZe98amfvJhlEme92K3sBxBx6OqvDYCxHoV/DW15DhnImXh1bsfVdNaqiaKo9jk yPeB9EbM1V+PzYX08xSSKXsboX91l+bRCZ5awdD6Tug8Zoy5y2webx7o0bErQnNpuBYo SrUYzwTjXfJc41kpxakh6bTytbjEb1dJ9CKLOmT60SdQhT3H3LWAJy/AeBop2wQj2x0T 6x+o09KMI+G6BSm7O5lJTQlZHc1xB5CepDdfX+Z5VuoNQq0brOgN9KbQ3H/KM0btjFRE Zz2Aa6LwvXEYmoetG4Y/zWhkbiwSBnCwEUzwC0eTX2g+4l2ZYiRR1Kn0yBjuUm59whMR RTgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=mSo12sAw; 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 g20si1741204eds.442.2021.09.02.05.00.09; Thu, 02 Sep 2021 05:01:01 -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=mSo12sAw; 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 S1343933AbhIBL5X (ORCPT + 99 others); Thu, 2 Sep 2021 07:57:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343994AbhIBL5J (ORCPT ); Thu, 2 Sep 2021 07:57:09 -0400 Received: from mail-qk1-x733.google.com (mail-qk1-x733.google.com [IPv6:2607:f8b0:4864:20::733]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37F20C0613C1 for ; Thu, 2 Sep 2021 04:56:11 -0700 (PDT) Received: by mail-qk1-x733.google.com with SMTP id t190so1648740qke.7 for ; Thu, 02 Sep 2021 04:56:11 -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=HmG+SzrqI25IfuOzYDDubE9mgxl445AA/VbS1PiElag=; b=mSo12sAwclW6At6xkB9mlrVJ+Tc5FkqDtEY9LlDtlFK+hxBuTNvTDbNpFL1xxTFNlF nwDxpSko/dvgY9CnDlh6ty1+2auJybtEU1Asz0VwepEiBdzfLWvQVHZaVUCFa1NcrIbP 0756JE6st4fVmFOBe5pas+MDy6lTF+uMPvBbelLD09/zofzYLbhF3peAr0gh5TSdxgSj vGdJwUXHFGNSFIya472jKpvz/TmVROAC0XByV5AAea/3S8FYelU9Pmmx3T56kGSnwX6N YSYN+Tn2seNFplpmMvZouN1DaPkG8f1OHvjQ4TwMjA+uPq8+oQZZNPHcnG04B7q52o6H +9tQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; 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=HmG+SzrqI25IfuOzYDDubE9mgxl445AA/VbS1PiElag=; b=jC3aWrSQkB2nP6o5u5gO+kAIN3tqdejhz+1FlfXvo/9sS+ihJysk5go+p90VPcjl/n 6ftytAKi4wb8iLN7VjW2KUvIfiZN3S7MCr4TY/ElLMMzN91Zwl0gUjW+zvSk2M7WtoBc kSWFfhFQise4SOMutpFXc9+SyC3N6Owy6dpvxphxoGPTN77eRy47asIobSyBBV7+0y6N PAgP/9mJ9vKt48p6UBkwluXQmoBgLhDdwrPrnHCri0a9sDUb7zDRtWLchxBrvLkBE4G9 8ZlgZAD8sXh8rqpcr5DUjsHy0P5vSujly4fyyjdYsLoR0lt92h67RWX6oNhEXbKehS8X nXOg== X-Gm-Message-State: AOAM533C7KKSKTpQUcOiGmQU4t2SZsQ/ydjExgtTlGa4YylPjV4fk19C QgjrCNfch9vf4gS3MwBOZ96oNmbxqgkoFg== X-Received: by 2002:ae9:ed53:: with SMTP id c80mr2846027qkg.402.1630583770159; Thu, 02 Sep 2021 04:56:10 -0700 (PDT) Received: from [192.168.15.25] ([186.204.255.226]) by smtp.gmail.com with ESMTPSA id v7sm1256373qkd.41.2021.09.02.04.56.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 02 Sep 2021 04:56:09 -0700 (PDT) Subject: Re: VKMS: New plane formats To: Simon Ser Cc: rodrigosiqueiramelo@gmail.com, melissa.srw@gmail.com, hamohammed.sa@gmail.com, daniel@ffwll.ch, airlied@linux.ie, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: From: Igor Matheus Andrade Torrente Message-ID: <22b20ed0-f3d1-c70c-1f3d-ca897330f7c6@gmail.com> Date: Thu, 2 Sep 2021 08:56:06 -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: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/1/21 5:24 PM, Simon Ser wrote: > Ideally the final composition format would have enough precision for > all of the planes. I think it'd make sense to use ARGB16161616 if the > primary plane uses ARGB8888 and an overlay plane uses ARGB16161616. > > To simplify the code, maybe it's fine to always use ARGB16161616 for > the output, and add getters which fetch an ARGB16161616 row for each > supported plane format. > This makes sense to me. I will try to implement this way. Thanks!