disp: msm: sde: implement format_mod_supported API
This change implements the drm_plane_funcs API format_mod_supported necessary to correctly check if format modifiers are supported. Change-Id: I39a26f7b053c44ef7577401d88e7cf6934c198f8 Signed-off-by: GG Hou <quic_renjhou@quicinc.com> Signed-off-by: Nilaan Gunabalachandran <quic_ngunabal@quicinc.com>
Šī revīzija ir iekļauta:

revīziju iesūtīja
Gerrit - the friendly Code Review server

vecāks
61cc323db6
revīzija
61359169c5
@@ -4814,6 +4814,14 @@ static void sde_plane_early_unregister(struct drm_plane *plane)
|
||||
_sde_plane_destroy_debugfs(plane);
|
||||
}
|
||||
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 19, 0))
|
||||
static bool sde_plane_format_mod_supported(struct drm_plane *plane,
|
||||
uint32_t format, uint64_t modifier)
|
||||
{
|
||||
return (sde_get_sde_format_ext(format, modifier) != NULL);
|
||||
}
|
||||
#endif
|
||||
|
||||
static const struct drm_plane_funcs sde_plane_funcs = {
|
||||
.update_plane = drm_atomic_helper_update_plane,
|
||||
.disable_plane = drm_atomic_helper_disable_plane,
|
||||
@@ -4825,6 +4833,9 @@ static const struct drm_plane_funcs sde_plane_funcs = {
|
||||
.atomic_destroy_state = sde_plane_destroy_state,
|
||||
.late_register = sde_plane_late_register,
|
||||
.early_unregister = sde_plane_early_unregister,
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 19, 0))
|
||||
.format_mod_supported = sde_plane_format_mod_supported,
|
||||
#endif
|
||||
};
|
||||
|
||||
static const struct drm_plane_helper_funcs sde_plane_helper_funcs = {
|
||||
|
Atsaukties uz šo jaunā problēmā
Block a user