public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: "Sharma, Shashank" <shashank.sharma@intel.com>
To: David Herrmann <dh.herrmann@gmail.com>
Cc: intel-gfx <intel-gfx@lists.freedesktop.org>,
	dri-devel <dri-devel@lists.freedesktop.org>,
	uma.shankar@intel.com
Subject: Re: Design review request: DRM color manager
Date: Mon, 12 May 2014 17:35:13 +0530	[thread overview]
Message-ID: <5370B8F9.1040303@intel.com> (raw)
In-Reply-To: <CANq1E4RkDs95hEtNP+qtJrun9XLW-=9y=x1+HkrBGR79WwNq=A@mail.gmail.com>

Thanks for your time and the comments David.
please find mine inline.

Regards
Shashank
On 5/12/2014 5:20 PM, David Herrmann wrote:
> Hi
>
> On Mon, May 12, 2014 at 12:26 PM, Sharma, Shashank
> <shashank.sharma@intel.com> wrote:
>> Benefits of using color manager:
>> ================================
>> 1. Unique framework for all the color correction properties, across all
>>     DRM drivers, across various platforms.
>> 2. Only one set/get call for all kind of properties using the common
>> protocol. One get call can tell what are the color correction capabilities
>> of the SOC, registered by driver.
>
> What's the advantage of that? We should add a
> DRM_MODE_OBJ_SET_PROPERTIES call if we want to accelerate things,
> instead of adding huge payloads.
>
The problem here is a DRM_OBJECT_MODE_SET_PROPERTIES call can pass 
limited value. But there are few properties like gamma correction which 
need a full LUT(256 vals) to be passed according to the correction 
values. The plan here is pretty much aligned to your suggestion, ie to 
use DRM_OBJECT_MODE_SET_BLOB kind of property, and extract the data from 
the blob based on a protocol.
Why do you think its a huge payload ?
> I really think we should define one property for each color-correction
> interface. I cannot see any downside of that except that we should add
> DRM_MODE_OBJ_SET_PROPERTIES.

As I was discussing, if there are 10 color correction properties a SOC 
supports, we have to create 10 properties which doesn't look good, when 
all the properties will do the same (set/reset few registers as 
correction). We already have a case where we expose 6 different type of 
corrections.

One more benefit is, this part is centrally controlled, so you can 
always know what's the state of color correction in single shot at any 
time. This will also provide us to do a lot of common things to do at 
the same place, like floating point arithmetic to register value 
conversion in a supporting userspace library, which might be required 
for many cases.

INHO, its always good to have a controlled interface/ framework to have 
similar things aligned to.

But afaik that's already the plan for
> atomic-modesetting, right?
>
> Thanks
> David
>
AFAIK color management is not a part of atomic modeset, but once we 
create such an interface, it would be really easy to club that in the 
atomic modeset.

  reply	other threads:[~2014-05-12 12:05 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-18  6:31 Design review request: DRM color manager Sharma, Shashank
2014-04-22  4:11 ` Sharma, Shashank
2014-04-22  9:37   ` David Herrmann
2014-04-22 10:21     ` Sharma, Shashank
2014-04-22 11:39       ` David Herrmann
2014-04-22 12:07         ` Sharma, Shashank
2014-04-22 13:47           ` Daniel Vetter
2014-04-22 15:01             ` Sharma, Shashank
     [not found]               ` <FF3DDC77922A8A4BB08A3BC48A1EA8CB0169DE73@BGSMSX101.gar.corp.intel.com>
2014-05-07 14:22                 ` Sharma, Shashank
2014-05-12  4:38                   ` Sharma, Shashank
2014-05-12  8:51                   ` Daniel Vetter
2014-05-12 10:26                     ` Sharma, Shashank
2014-05-12 11:50                       ` David Herrmann
2014-05-12 12:05                         ` Sharma, Shashank [this message]
2014-05-12 15:28                           ` Daniel Vetter
2014-05-12 16:00                             ` [Intel-gfx] " David Herrmann
2014-05-13  3:48                             ` Sharma, Shashank
2014-05-14 15:54                               ` Thierry Reding
2014-05-15  5:22                                 ` Sharma, Shashank
2014-05-15  7:05                                   ` Thierry Reding
2014-05-15  7:39                                     ` Sharma, Shashank

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5370B8F9.1040303@intel.com \
    --to=shashank.sharma@intel.com \
    --cc=dh.herrmann@gmail.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=uma.shankar@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox