Skip to contentSkip to conversation

drm/color: document NULL values and default settings better

PATCH In review Daniel Vetter 3 participants 3 messages Sep 26, 2016 – Nov 15, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/color: document NULL values and default settings better

Brought up in a discussion for enabling gamma on fsl-dcu.

Cc Ville Syrjälä <[email protected]>
Cc Meng Yi <[email protected]>
Cc Lionel Landwerlin <[email protected]>
---
 drivers/gpu/drm/drm_color_mgmt.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)
drivers/gpu/drm/drm_color_mgmt.c +12 -0
index d28ffdd2b929..6543ebde501a 100644
@@ -41,6 +41,10 @@
  *	nor use all the elements of the LUT (for example the hardware might
  *	choose to interpolate between LUT[0] and LUT[4]).
  *
+ *	Setting this to NULL (blob property value set to 0) means a
+ *	linear/pass-thru gamma table should be used. This is generally the
+ *	driver boot-up state too.
+ *
  * “DEGAMMA_LUT_SIZE”:
  *	Unsinged range property to give the size of the lookup table to be set
  *	on the DEGAMMA_LUT property (the size depends on the underlying
@@ -54,6 +58,10 @@
  *	lookup through the gamma LUT. The data is interpreted as a struct
  *	&drm_color_ctm.
  *
+ *	Setting this to NULL (blob property value set to 0) means a
+ *	unit/pass-thru matrix should be used. This is generally the driver
+ *	boot-up state too.
+ *
  * “GAMMA_LUT”:
  *	Blob property to set the gamma lookup table (LUT) mapping pixel data
  *	after the transformation matrix to data sent to the connector. The
@@ -62,6 +70,10 @@
  *	nor use all the elements of the LUT (for example the hardware might
  *	choose to interpolate between LUT[0] and LUT[4]).
  *
+ *	Setting this to NULL (blob property value set to 0) means a
+ *	linear/pass-thru gamma table should be used. This is generally the
+ *	driver boot-up state too.
+ *
  * “GAMMA_LUT_SIZE”:
  *	Unsigned range property to give the size of the lookup table to be set
  *	on the GAMMA_LUT property (the size depends on the underlying hardware).
Signature · 6 lines
2.9.3

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Reviewed-by on v1 1/1
#1 lore raw

Sorry for missing this.

Quoted 37 lines · Daniel Vetter

Brought up in a discussion for enabling gamma on fsl-dcu.

Cc Ville Syrjälä <[email protected]>
Cc Meng Yi <[email protected]>
Cc Lionel Landwerlin <[email protected]>
---
  drivers/gpu/drm/drm_color_mgmt.c | 12 ++++++++++++
  1 file changed, 12 insertions(+)
drivers/gpu/drm/drm_color_mgmt.c +8 -0
index d28ffdd2b929..6543ebde501a 100644
@@ -41,6 +41,10 @@
   *	nor use all the elements of the LUT (for example the hardware might
   *	choose to interpolate between LUT[0] and LUT[4]).
   *
+ *	Setting this to NULL (blob property value set to 0) means a
+ *	linear/pass-thru gamma table should be used. This is generally the
+ *	driver boot-up state too.
+ *
   * “DEGAMMA_LUT_SIZE”:
   *	Unsinged range property to give the size of the lookup table to be set
   *	on the DEGAMMA_LUT property (the size depends on the underlying
@@ -54,6 +58,10 @@
   *	lookup through the gamma LUT. The data is interpreted as a struct
   *	&drm_color_ctm.
   *
+ *	Setting this to NULL (blob property value set to 0) means a
+ *	unit/pass-thru matrix should be used. This is generally the driver
+ *	boot-up state too.
+ *
   * “GAMMA_LUT”:
   *	Blob property to set the gamma lookup table (LUT) mapping pixel data
   *	after the transformation matrix to data sent to the connector. The

drivers/gpu/drm/drm_color_mgmt.c line 79

Quoted 10 lines
drivers/gpu/drm/drm_color_mgmt.c +4 -0
@@ -62,6 +70,10 @@
   *	nor use all the elements of the LUT (for example the hardware might
   *	choose to interpolate between LUT[0] and LUT[4]).
   *
+ *	Setting this to NULL (blob property value set to 0) means a
+ *	linear/pass-thru gamma table should be used. This is generally the
+ *	driver boot-up state too.
+ *
   * “GAMMA_LUT_SIZE”:
   *	Unsigned range property to give the size of the lookup table to be set
   *	on the GAMMA_LUT property (the size depends on the underlying hardware).

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
Quoted 3 lines · Lionel Landwerlin

Sorry for missing this.

np and thanks a lot for reviewing.
-Daniel

Quoted 51 lines · Daniel Vetter
Quoted 47 lines

Brought up in a discussion for enabling gamma on fsl-dcu.

Cc Ville Syrjälä <[email protected]>
Cc Meng Yi <[email protected]>
Cc Lionel Landwerlin <[email protected]>
---
  drivers/gpu/drm/drm_color_mgmt.c | 12 ++++++++++++
  1 file changed, 12 insertions(+)
drivers/gpu/drm/drm_color_mgmt.c +12 -0
index d28ffdd2b929..6543ebde501a 100644
@@ -41,6 +41,10 @@
   *	nor use all the elements of the LUT (for example the hardware might
   *	choose to interpolate between LUT[0] and LUT[4]).
   *
+ *	Setting this to NULL (blob property value set to 0) means a
+ *	linear/pass-thru gamma table should be used. This is generally the
+ *	driver boot-up state too.
+ *
   * “DEGAMMA_LUT_SIZE”:
   *	Unsinged range property to give the size of the lookup table to be set
   *	on the DEGAMMA_LUT property (the size depends on the underlying
@@ -54,6 +58,10 @@
   *	lookup through the gamma LUT. The data is interpreted as a struct
   *	&drm_color_ctm.
   *
+ *	Setting this to NULL (blob property value set to 0) means a
+ *	unit/pass-thru matrix should be used. This is generally the driver
+ *	boot-up state too.
+ *
   * “GAMMA_LUT”:
   *	Blob property to set the gamma lookup table (LUT) mapping pixel data
   *	after the transformation matrix to data sent to the connector. The
@@ -62,6 +70,10 @@
   *	nor use all the elements of the LUT (for example the hardware might
   *	choose to interpolate between LUT[0] and LUT[4]).
   *
+ *	Setting this to NULL (blob property value set to 0) means a
+ *	linear/pass-thru gamma table should be used. This is generally the
+ *	driver boot-up state too.
+ *
   * “GAMMA_LUT_SIZE”:
   *	Unsigned range property to give the size of the lookup table to be set
   *	on the GAMMA_LUT property (the size depends on the underlying hardware).
Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel