Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

Dhinakaran Pandiyan and committed by
Imre Deak
a7007efa 0d3d29d0

+4 -4
+4 -4
include/drm/drm_fourcc.h
··· 78 78 * triplet @char_per_block, @block_w, @block_h for better 79 79 * describing the pixel format. 80 80 */ 81 - u8 cpp[3]; 81 + u8 cpp[4]; 82 82 83 83 /** 84 84 * @char_per_block: ··· 104 104 * information from their drm_mode_config.get_format_info hook 105 105 * if they want the core to be validating the pitch. 106 106 */ 107 - u8 char_per_block[3]; 107 + u8 char_per_block[4]; 108 108 }; 109 109 110 110 /** ··· 113 113 * Block width in pixels, this is intended to be accessed through 114 114 * drm_format_info_block_width() 115 115 */ 116 - u8 block_w[3]; 116 + u8 block_w[4]; 117 117 118 118 /** 119 119 * @block_h: ··· 121 121 * Block height in pixels, this is intended to be accessed through 122 122 * drm_format_info_block_height() 123 123 */ 124 - u8 block_h[3]; 124 + u8 block_h[4]; 125 125 126 126 /** @hsub: Horizontal chroma subsampling factor */ 127 127 u8 hsub;