Commit 1f0843a5 authored by Hyun Kwon's avatar Hyun Kwon Committed by Michal Simek
Browse files

drm: xilinx: fb: Use xilinx_drm_format_bpp() as fallback



drm_fb_get_bpp_depth() only supports RGB formats, and returns
depth and bits per pixel values as '0' for YUV formats. In that case,
use xilinx_drm_format_bpp() to get the 'bits per pixel' value for
YUV formats, as the value is required to cacluate the size of framebuffer
and DMA transaction.

Signed-off-by: default avatarHyun Kwon <hyun.kwon@xilinx.com>
Reported-by: default avatarChristian Kohn <christian.kohn@xilinx.com>
Tested-by: default avatarChristian Kohn <christian.kohn@xilinx.com>
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
parent 704cf3e6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment