Skip to content

Commit 229b64e

Browse files
author
Da Xue
committed
meson_drv: set resolution limit for g12 to 4k
1 parent 50c73ee commit 229b64e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

drivers/gpu/drm/meson/meson_drv.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,14 @@ static int meson_drv_bind_master(struct device *dev, bool has_components)
288288
ret = drmm_mode_config_init(drm);
289289
if (ret)
290290
goto free_canvas_vd1_2;
291-
drm->mode_config.max_width = 1920;
292-
drm->mode_config.max_height = 1920;
291+
292+
if (meson_vpu_is_compatible(priv, VPU_COMPATIBLE_G12A)) {
293+
drm->mode_config.max_width = 3840;
294+
drm->mode_config.max_height = 3840;
295+
} else {
296+
drm->mode_config.max_width = 1920;
297+
drm->mode_config.max_height = 1920;
298+
}
293299
drm->mode_config.funcs = &meson_mode_config_funcs;
294300
drm->mode_config.helper_private = &meson_mode_config_helpers;
295301

0 commit comments

Comments
 (0)