From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D64C2C28CBC for ; Wed, 6 May 2020 07:45:03 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id B30A4206D5 for ; Wed, 6 May 2020 07:45:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B30A4206D5 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0C95889067; Wed, 6 May 2020 07:45:03 +0000 (UTC) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6B96C89067 for ; Wed, 6 May 2020 07:45:01 +0000 (UTC) IronPort-SDR: 6ePObQok+Tm63qDi/x9PHfd2VO0cYKVh1FRG8aBFlH1qPY6rOzpXcnOYoXk464khgngyva4FRG b8Xo7lh7uoOg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 May 2020 00:45:00 -0700 IronPort-SDR: mDj2WO1kxPbv3e0VtVZ/7eRl79oLBn0GxmMvFLGfcqcvF1wBHFc7Pprx1C0hUUw5qLjtb8qRFw myC9RzFcpEMw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,358,1583222400"; d="scan'208";a="304724587" Received: from stinkbox.fi.intel.com (HELO stinkbox) ([10.237.72.174]) by FMSMGA003.fm.intel.com with SMTP; 06 May 2020 00:44:57 -0700 Received: by stinkbox (sSMTP sendmail emulation); Wed, 06 May 2020 10:44:57 +0300 Date: Wed, 6 May 2020 10:44:57 +0300 From: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= To: Artem Mygaiev Subject: Re: Question about sRGB framebuffer support Message-ID: <20200506074457.GK6112@intel.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Patchwork-Hint: comment User-Agent: Mutt/1.10.1 (2018-07-13) 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: dri-devel@lists.freedesktop.org Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Tue, May 05, 2020 at 01:24:16PM +0300, Artem Mygaiev wrote: > Hello all > = > I am currently working on DRM/KMS driver for Fresco Logic FL2000 USB disp= lay > controller [1]. I have already implemented a POC driver [2] which is work= ing for > me, although there are still plenty of things to improve or fix, of cours= e. > = > So far I have one thing that I somehow cannot find in DRM/KMS documentati= on or > existing drivers: how to tell the system that HW expects sRGB (i.e. non-l= inear) > color encoding in framebuffers? This is a HW limitation that I cannot inf= luence > by configuration. Does it do something to process the data that requires linearization or why does it care about the gamma applied to the data? In a typical use case the data is just passed through unless the user asks otherwise, so it doesn't matter much what gamma was used. Though most displays probably expect something resembling sRGB gamma by default, so that's presumably what most things generate, and images/videos/etc. pretty much always have gamma already applied when they are produced. > = > Any pointers are greatly appreciated. > = > [1] www.frescologic.com/product/single/fl2000 > [2] https://github.com/klogg/fl2000_drm > = > Best regards, > -- Artem > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel -- = Ville Syrj=E4l=E4 Intel _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel