Commit a7007efa authored by Dhinakaran Pandiyan's avatar Dhinakaran Pandiyan Committed by Imre Deak

drm/fb: Extend format_info member arrays to handle four planes

addfb() uAPI has supported four planes for a while now, make format_info
compatible with that.

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Matt Roper <matthew.d.roper@intel.com>
Cc: Mika Kahola <mika.kahola@intel.com>
Cc: dri-devel@lists.freedesktop.org
Signed-off-by: default avatarDhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Signed-off-by: default avatarImre Deak <imre.deak@intel.com>
Reviewed-by: default avatarMika Kahola <mika.kahola@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191231233756.18753-7-imre.deak@intel.com
parent 0d3d29d0
...@@ -78,7 +78,7 @@ struct drm_format_info { ...@@ -78,7 +78,7 @@ struct drm_format_info {
* triplet @char_per_block, @block_w, @block_h for better * triplet @char_per_block, @block_w, @block_h for better
* describing the pixel format. * describing the pixel format.
*/ */
u8 cpp[3]; u8 cpp[4];
/** /**
* @char_per_block: * @char_per_block:
...@@ -104,7 +104,7 @@ struct drm_format_info { ...@@ -104,7 +104,7 @@ struct drm_format_info {
* information from their drm_mode_config.get_format_info hook * information from their drm_mode_config.get_format_info hook
* if they want the core to be validating the pitch. * if they want the core to be validating the pitch.
*/ */
u8 char_per_block[3]; u8 char_per_block[4];
}; };
/** /**
...@@ -113,7 +113,7 @@ struct drm_format_info { ...@@ -113,7 +113,7 @@ struct drm_format_info {
* Block width in pixels, this is intended to be accessed through * Block width in pixels, this is intended to be accessed through
* drm_format_info_block_width() * drm_format_info_block_width()
*/ */
u8 block_w[3]; u8 block_w[4];
/** /**
* @block_h: * @block_h:
...@@ -121,7 +121,7 @@ struct drm_format_info { ...@@ -121,7 +121,7 @@ struct drm_format_info {
* Block height in pixels, this is intended to be accessed through * Block height in pixels, this is intended to be accessed through
* drm_format_info_block_height() * drm_format_info_block_height()
*/ */
u8 block_h[3]; u8 block_h[4];
/** @hsub: Horizontal chroma subsampling factor */ /** @hsub: Horizontal chroma subsampling factor */
u8 hsub; u8 hsub;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment