Skip to content

Commit a7007ef

Browse files
dhnkrnideak
authored andcommitted
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: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com> Signed-off-by: Imre Deak <imre.deak@intel.com> Reviewed-by: Mika Kahola <mika.kahola@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20191231233756.18753-7-imre.deak@intel.com
1 parent 0d3d29d commit a7007ef

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎include/drm/drm_fourcc.h‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ struct drm_format_info {
7878
* triplet @char_per_block, @block_w, @block_h for better
7979
* describing the pixel format.
8080
*/
81-
u8 cpp[3];
81+
u8 cpp[4];
8282

8383
/**
8484
* @char_per_block:
@@ -104,7 +104,7 @@ struct drm_format_info {
104104
* information from their drm_mode_config.get_format_info hook
105105
* if they want the core to be validating the pitch.
106106
*/
107-
u8 char_per_block[3];
107+
u8 char_per_block[4];
108108
};
109109

110110
/**
@@ -113,15 +113,15 @@ struct drm_format_info {
113113
* Block width in pixels, this is intended to be accessed through
114114
* drm_format_info_block_width()
115115
*/
116-
u8 block_w[3];
116+
u8 block_w[4];
117117

118118
/**
119119
* @block_h:
120120
*
121121
* Block height in pixels, this is intended to be accessed through
122122
* drm_format_info_block_height()
123123
*/
124-
u8 block_h[3];
124+
u8 block_h[4];
125125

126126
/** @hsub: Horizontal chroma subsampling factor */
127127
u8 hsub;

0 commit comments

Comments
 (0)