Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp673479iog; Wed, 29 Jun 2022 08:03:17 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sLsA2Ru0tosKuYFW3qSskMyN9rju0RvVTXZId0jDsdWAnN9QNcwRK9fekL/AxMDcZX5TRU X-Received: by 2002:a17:90b:4c48:b0:1ec:a20e:a9bf with SMTP id np8-20020a17090b4c4800b001eca20ea9bfmr4321890pjb.209.1656514996990; Wed, 29 Jun 2022 08:03:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656514996; cv=none; d=google.com; s=arc-20160816; b=P1NxmLfQiaKHMp7315Tp8MVoSi+EGEhra1+y+KtlO7GwS8HqPq+L/gEszAv9Ilng1Z 7BQRq8Isv4RWv+1aGrhOA9VeAcDa9OognNkPolJpfwNfgJH0fSVUYEWu4CAYws8hqDIE YTx65vb1FCzqgWSFRM1ZOoujGttTwrGCck6nx1SyBNF8Sf6jR/f+5loDaTB3xfXyvbVc 55J19oAfsPSjcI7nWw7PRViS84PYjscI3Rrih5UUqJg5UKmn2fN5swHSWrlDfQQnPsL0 IMHlzwAHwQLm8r7lJVokIZJix/n5Q20CfOtrPpcUQtdQaNO/GOCOqWz678Nd74Od7l0D MOPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :feedback-id:references:in-reply-to:message-id:subject:reply-to:cc :from:to:dkim-signature:date; bh=jgx5qL+qt7rskFGOjzbeoMeHSUpyUNBp4rUtF20noHY=; b=QX0FQGykHv+d3+U0ZhCPhkF7udrQ4gUJVQx6KjAiW8QWKjgAH24nMv+UW7T3fp8TWV NZu9buCLHsDrZwASqLmfz1R6xFdQ4cZl4ZeSxMpKPO6iTiGhrwjuUXTJfdnBVBIrAgFC qVxES3tgIsFTp2sg+B9IttwurKP5puLQIq38Psbr5siQXqsxf+kP8XQz4F5ve3rN9Nm8 1+qKIx8e2DMNDIUGDfZtt2CqXhLP4Djf768HVIDom+TASU4W9gL6I+6QHHcTpw11BQKg UMBeXhyvB1m0UIg37+CT89l6MWfk7KuA45pvLWoPGLI1m2aDPA0vHLQy90LV8SRVytH4 elcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@emersion.fr header.s=protonmail2 header.b=RvNY50jF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=emersion.fr Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h10-20020a17090ac38a00b001ececaf6f37si3367249pjt.149.2022.06.29.08.03.02; Wed, 29 Jun 2022 08:03:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@emersion.fr header.s=protonmail2 header.b=RvNY50jF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=emersion.fr Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231582AbiF2OyG (ORCPT + 99 others); Wed, 29 Jun 2022 10:54:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232318AbiF2OyD (ORCPT ); Wed, 29 Jun 2022 10:54:03 -0400 Received: from mail-4317.proton.ch (mail-4317.proton.ch [185.70.43.17]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF1441F60F for ; Wed, 29 Jun 2022 07:54:01 -0700 (PDT) Date: Wed, 29 Jun 2022 14:53:49 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emersion.fr; s=protonmail2; t=1656514439; x=1656773639; bh=jgx5qL+qt7rskFGOjzbeoMeHSUpyUNBp4rUtF20noHY=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:Feedback-ID:From:To:Cc:Date:Subject:Reply-To: Feedback-ID:Message-ID; b=RvNY50jFfbWs6i3uWd6/n0DzDoh2xDnOYu0beLZt6sSTpsrB8MWCVVUgJTJom3Uwl WZ7ChuCxhpQkJE7GZc7HXyRnMAFb79ayGeHojQ06SA6mjh/lHqBKxQIVTskjkus9O0 nCgyQ1erYSfQy6UbK0XNLy2X6BVi5XBJ1gBCxO8Qw8oYnkCKjY7WVcuj+g804g7Twq kERswDzm7RZkCejmB7BhqCqq2QXFwnEuwWw3BVA6iWGbbYpYQ0l6mf7NwPKLagYmoR qL+oHWowC28FhXSArbHOnULpcuaeTAGnQZLFb5mHrwM9rvLCCihxdaqgX8tN99TWYp 2XSKslO0Pmgng== To: Dennis Tsiang From: Simon Ser Cc: Pekka Paalanen , Normunds Rieksts , airlied@linux.ie, tzimmermann@suse.de, Liviu Dudau , linux-kernel@vger.kernel.org, "dri-devel@lists.freedesktop.org" , christian.koenig@amd.com, linaro-mm-sig@lists.linaro.org, david.harvey-macaulay@arm.com, Lisa Wu , nd , sumit.semwal@linaro.org, linux-media@vger.kernel.org Reply-To: Simon Ser Subject: Re: [PATCH 0/1] [RFC] drm/fourcc: Add new unsigned R16_UINT/RG1616_UINT formats Message-ID: In-Reply-To: <05513f59-0bd9-77cd-36d4-41027bc339be@arm.com> References: <20220627175026.6a5dd239@eldfell> <05513f59-0bd9-77cd-36d4-41027bc339be@arm.com> Feedback-ID: 1358184:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wednesday, June 29th, 2022 at 16:46, Dennis Tsiang wrote: > Thanks for your comments. This is not intended to be used for KMS, where > indeed there would be no difference. This proposal is for other Graphics > APIs such as Vulkan, which requires the application to be explicit > upfront about how they will interpret the data, whether that be UNORM, > UINT .etc. We want to be able to import dma_bufs which create a VkImage > with a "_UINT" VkFormat. However there is currently no explicit mapping > between the DRM fourccs + modifiers combos to "_UINT" VkFormats. One > solution is to encode that into the fourccs, which is what this RFC is > proposing. As a general comment, I don't think it's reasonable to encode all of the VkFormat information inside DRM FourCC. For instance, VkFormat has SRGB/UNO= RM variants which describe whether pixel values are electrical or optical (IOW, EOTF-encoded or not). Moreover, other APIs may encode different information in their format enums.