From: Damien Lespiau <damien.lespiau@intel.com>
To: Kausal Malladi <Kausal.Malladi@intel.com>
Cc: annie.j.matheson@intel.com, intel-gfx@lists.freedesktop.org,
dri-devel@lists.freedesktop.org, vijay.a.purushothaman@intel.com,
hverkuil@xs4all.nl, dhanya.p.r@intel.com,
daniel.vetter@intel.com, jesse.barnes@intel.com
Subject: Re: [PATCH 04/12] drm: Add structures for querying color capabilities
Date: Thu, 2 Jul 2015 17:45:32 +0100 [thread overview]
Message-ID: <20150702164532.GG7203@strange.ger.corp.intel.com> (raw)
In-Reply-To: <20150702162045.GB7203@strange.ger.corp.intel.com>
On Thu, Jul 02, 2015 at 05:20:45PM +0100, Damien Lespiau wrote:
> On Wed, Jul 01, 2015 at 09:18:14PM +0530, Kausal Malladi wrote:
> > From: Kausal Malladi <Kausal.Malladi@intel.com>
> >
> > The DRM color management framework is targeting various hardware
> > platforms and drivers. Different platforms can have different color
> > correction and enhancement capabilities.
> >
> > A commom user space application can query these capabilities using the
> > DRM property interface. Each driver can fill this property with its
> > platform's color capabilities.
> >
> > This patch adds new structures in DRM layer for querying color
> > capabilities. These structures will be used by all user space
> > agents to configure appropriate color configurations.
>
> As I indicated before, I don't think we should go for a full fledged
> query API, because, I don't believe we can ever make it good enough to
> cover future hardware (and probably not today's hardware across
> vendors).
>
> These kinds of query APIs have been frown upon in the past for that
> exact reason.
>
> - Accept configurations that are mostly likely to be working across vendors
> (256 enties for 8 bits) That should be enough for basic functionality.
>
> - To support things that are really hw specific: make sure the kernel API can
> accept those, put the hw specific knowledge into a user-space HAL where APIs
> can evolve. What you're trying to do here with queries about per-platform
> details can go into userspace and still have a generic compositor code using
> those limits. Let's just not put the limits into the kernel API, we won't be
> able to get it right.
>
> Now maybe there's a middle ground and we can expose basic limits. In this case,
> maybe a list of supported LUT sizes, but the sampling details don't belong to a
> kernel interface IMHO. I'm even hesitant putting the hw precision at that
> level.
To re-iterate the point with actual examples, the proposed query API
doesn't seem to handle things we'd want to know today:
- What are the extra values are coding for. eg. for 8 bits, the values
after index 255 are special and we have no description for those. (and
it can get fiddly to describe them, you may want to add the type of
interpolation for instance).
- How to you represent capabilities across hardware unit. Eg. split
gamma lowering the number of LUT entries.
That somewhat demonstrates my point I think. We won't be able to get the
query API right.
--
Damien
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2015-07-02 16:45 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1435765702-3094-1-git-send-email-Kausal.Malladi@intel.com>
[not found] ` <1435765702-3094-10-git-send-email-Kausal.Malladi@intel.com>
2015-07-02 16:00 ` [PATCH 09/12] drm/i915: Add pipe level Gamma correction for CHV/BSW Damien Lespiau
2015-07-03 8:03 ` Jani Nikula
2015-07-03 8:29 ` [Intel-gfx] " Malladi, Kausal
2015-07-03 8:58 ` Jani Nikula
[not found] ` <1435765702-3094-5-git-send-email-Kausal.Malladi@intel.com>
2015-07-02 16:20 ` [PATCH 04/12] drm: Add structures for querying color capabilities Damien Lespiau
2015-07-02 16:45 ` Damien Lespiau [this message]
2015-07-02 17:04 ` [Intel-gfx] " Ville Syrjälä
2015-07-03 6:41 ` Daniel Vetter
2015-07-03 10:28 ` Damien Lespiau
2015-07-03 12:36 ` [Intel-gfx] " Ville Syrjälä
[not found] ` <1435765702-3094-8-git-send-email-Kausal.Malladi@intel.com>
2015-07-02 16:30 ` [PATCH 07/12] drm: Add structures to set/get a palette color property Damien Lespiau
[not found] ` <1435765702-3094-9-git-send-email-Kausal.Malladi@intel.com>
2015-07-02 16:32 ` [PATCH 08/12] drm: Export drm_property_replace_global_blob function Damien Lespiau
[not found] ` <1435765702-3094-4-git-send-email-Kausal.Malladi@intel.com>
2015-07-02 16:25 ` [PATCH 03/12] drm/i915: Attach color properties to CRTC Damien Lespiau
2015-07-02 16:35 ` Damien Lespiau
2015-07-03 3:31 [PATCH 00/12] Color Manager Implementation Kausal Malladi
2015-07-03 3:31 ` [PATCH 04/12] drm: Add structures for querying color capabilities Kausal Malladi
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=20150702164532.GG7203@strange.ger.corp.intel.com \
--to=damien.lespiau@intel.com \
--cc=Kausal.Malladi@intel.com \
--cc=annie.j.matheson@intel.com \
--cc=daniel.vetter@intel.com \
--cc=dhanya.p.r@intel.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=hverkuil@xs4all.nl \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jesse.barnes@intel.com \
--cc=vijay.a.purushothaman@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