Disp: Snapshot change for lahaina display driver
This snapshot change adds downstream support for drm 5.x+(msm_lahaina branch) linux kernel. Change-Id: Ia691c95da155a00e449c91a2f1a5b20a8e71aed4 Signed-off-by: Narendra Muppalla <NarendraM@codeaurora.org>
This commit is contained in:
@@ -1168,10 +1168,11 @@ int sde_format_check_modified_format(
|
||||
const struct drm_mode_fb_cmd2 *cmd,
|
||||
struct drm_gem_object **bos)
|
||||
{
|
||||
int ret, i, num_base_fmt_planes;
|
||||
const struct drm_format_info *info;
|
||||
const struct sde_format *fmt;
|
||||
struct sde_hw_fmt_layout layout;
|
||||
uint32_t bos_total_size = 0;
|
||||
int ret, i;
|
||||
|
||||
if (!msm_fmt || !cmd || !bos) {
|
||||
DRM_ERROR("invalid arguments\n");
|
||||
@@ -1179,14 +1180,16 @@ int sde_format_check_modified_format(
|
||||
}
|
||||
|
||||
fmt = to_sde_format(msm_fmt);
|
||||
num_base_fmt_planes = drm_format_num_planes(fmt->base.pixel_format);
|
||||
info = drm_format_info(fmt->base.pixel_format);
|
||||
if (!info)
|
||||
return -EINVAL;
|
||||
|
||||
ret = sde_format_get_plane_sizes(fmt, cmd->width, cmd->height,
|
||||
&layout, cmd->pitches);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
for (i = 0; i < num_base_fmt_planes; i++) {
|
||||
for (i = 0; i < info->num_planes; i++) {
|
||||
if (!bos[i]) {
|
||||
DRM_ERROR("invalid handle for plane %d\n", i);
|
||||
return -EINVAL;
|
||||
|
Reference in New Issue
Block a user