All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jindal, Sonika" <sonika.jindal@intel.com>
To: Kausal Malladi <Kausal.Malladi@intel.com>,
	matthew.d.roper@intel.com, jesse.barnes@intel.com,
	damien.lespiau@intel.com, durgadoss.r@intel.com,
	vijay.a.purushothaman@intel.com, intel-gfx@lists.freedesktop.org,
	dri-devel@lists.freedesktop.org
Cc: avinash.reddy.palleti@intel.com, annie.j.matherson@intel.com,
	indranil.mukherjee@intel.com, dhanya.p.r@intel.com,
	sunil.kamath@intel.com, daniel.vetter@intel.com,
	shashank.sharma@intel.com
Subject: Re: [PATCH 4/7] drm: Add Gamma correction structure
Date: Tue, 02 Jun 2015 16:55:47 +0530	[thread overview]
Message-ID: <556D92BB.9070507@intel.com> (raw)
In-Reply-To: <1433188369-16930-5-git-send-email-Kausal.Malladi@intel.com>



On 6/2/2015 1:22 AM, Kausal Malladi wrote:
> From: Kausal Malladi <Kausal.Malladi@intel.com>
>
> This patch adds a new structure in DRM layer for Gamma color correction.
> This structure will be used by all user space agents to configure
> appropriate Gamma precision and Gamma level.
>
> struct drm_intel_gamma {
>         __u32 flags;
> 	(The flag variable will indicate if the property to be set/get
> 	is Gamma or DeGamma)
>         __u32 gamma_level;
> 	(The gamma_level variable indicates if the Gamma correction is to be
> 	applied on Pipe/plane)
>         __u32 gamma_precision;
> 	(The Gamma precision indicates the Gamma mode to be applied)
>
> 	Supported precisions are -
> 	#define I915_GAMMA_PRECISION_UNKNOWN	0
> 	#define I915_GAMMA_PRECISION_CURRENT	0xFFFFFFFF
> 	#define I915_GAMMA_PRECISION_LEGACY	(1 << 0)
> 	#define I915_GAMMA_PRECISION_10BIT	(1 << 1)
> 	#define I915_GAMMA_PRECISION_12BIT	(1 << 2)
> 	#define I915_GAMMA_PRECISION_14BIT	(1 << 3)
> 	#define I915_GAMMA_PRECISION_16BIT	(1 << 4)
>
> 	__u32 num_samples;
> 	(The num_samples indicates the number of Gamma correction
> 	coefficients)
>         __u32 reserved;
>         __u64 gamma_ptr;
> 	(Points to the raw Gamma color correction values)
> };
>
> Signed-off-by: Shashank Sharma <shashank.sharma@intel.com>
> Signed-off-by: Kausal Malladi <Kausal.Malladi@intel.com>
> ---
>   include/uapi/drm/drm.h |   11 +++++++++++
>   1 file changed, 11 insertions(+)
>
> diff --git a/include/uapi/drm/drm.h b/include/uapi/drm/drm.h
> index 3801584..fe27e5c 100644
> --- a/include/uapi/drm/drm.h
> +++ b/include/uapi/drm/drm.h
> @@ -829,6 +829,17 @@ struct drm_event_vblank {
>   	__u32 reserved;
>   };
>
> +/* Color Management structure for Gamma */
> +struct drm_intel_gamma {
I suppose, this can be used by other drivers as well? If yes, "intel" 
can be removed.
> +	__u32 obj_id;
> +	__u32 flags;
> +	__u32 gamma_level;
> +	__u32 gamma_precision;
> +	__u32 num_samples;
> +	__u32 reserved;
> +	__u64 gamma_ptr;
> +};
> +
>   /* typedef area */
>   #ifndef __KERNEL__
>   typedef struct drm_clip_rect drm_clip_rect_t;
>
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

  parent reply	other threads:[~2015-06-02 11:25 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1433188369-16930-1-git-send-email-Kausal.Malladi@intel.com>
     [not found] ` <1433188369-16930-2-git-send-email-Kausal.Malladi@intel.com>
2015-06-02 11:06   ` [PATCH 1/7] drm/i915: Initialize Color Manager Jindal, Sonika
     [not found] ` <1433188369-16930-4-git-send-email-Kausal.Malladi@intel.com>
2015-06-02 11:19   ` [PATCH 3/7] drm/i915: Add Set property interface for CRTC Jindal, Sonika
     [not found] ` <1433188369-16930-5-git-send-email-Kausal.Malladi@intel.com>
2015-06-02 11:25   ` Jindal, Sonika [this message]
2015-06-02 11:35     ` [Intel-gfx] [PATCH 4/7] drm: Add Gamma correction structure Daniel Stone
     [not found] ` <1433188369-16930-6-git-send-email-Kausal.Malladi@intel.com>
2015-06-02 11:38   ` [PATCH 5/7] drm/i915: Add pipe level Gamma correction for CHV/BSW Jindal, Sonika
2015-06-02 11:53     ` Daniel Stone
2015-06-03 13:51       ` Sharma, Shashank
2015-06-03 13:26     ` Sharma, Shashank
2015-06-02 12:00 ` [PATCH 0/7] Color Manager Implementation Damien Lespiau
2015-06-02 12:03   ` 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=556D92BB.9070507@intel.com \
    --to=sonika.jindal@intel.com \
    --cc=Kausal.Malladi@intel.com \
    --cc=annie.j.matherson@intel.com \
    --cc=avinash.reddy.palleti@intel.com \
    --cc=damien.lespiau@intel.com \
    --cc=daniel.vetter@intel.com \
    --cc=dhanya.p.r@intel.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=durgadoss.r@intel.com \
    --cc=indranil.mukherjee@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=jesse.barnes@intel.com \
    --cc=matthew.d.roper@intel.com \
    --cc=shashank.sharma@intel.com \
    --cc=sunil.kamath@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.