drm/arm/malidp: Always list modifiers
commit 26c3e7fd5a3499e408915dadae5d5360790aae9a upstream. Even when all we support is linear, make that explicit. Otherwise the uapi is rather confusing. Acked-by: Liviu Dudau <liviu.dudau@arm.com> Acked-by: Pekka Paalanen <pekka.paalanen@collabora.com> Reviewed-by: Lyude Paul <lyude@redhat.com> Cc: stable@vger.kernel.org Cc: Pekka Paalanen <pekka.paalanen@collabora.com> Cc: Liviu Dudau <liviu.dudau@arm.com> Cc: Brian Starkey <brian.starkey@arm.com> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20210427092018.832258-2-daniel.vetter@ffwll.ch Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
0bcc074f90
commit
42a333ea4b
@@ -922,6 +922,11 @@ static const struct drm_plane_helper_funcs malidp_de_plane_helper_funcs = {
|
|||||||
.atomic_disable = malidp_de_plane_disable,
|
.atomic_disable = malidp_de_plane_disable,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static const uint64_t linear_only_modifiers[] = {
|
||||||
|
DRM_FORMAT_MOD_LINEAR,
|
||||||
|
DRM_FORMAT_MOD_INVALID
|
||||||
|
};
|
||||||
|
|
||||||
int malidp_de_planes_init(struct drm_device *drm)
|
int malidp_de_planes_init(struct drm_device *drm)
|
||||||
{
|
{
|
||||||
struct malidp_drm *malidp = drm->dev_private;
|
struct malidp_drm *malidp = drm->dev_private;
|
||||||
@@ -985,8 +990,8 @@ int malidp_de_planes_init(struct drm_device *drm)
|
|||||||
*/
|
*/
|
||||||
ret = drm_universal_plane_init(drm, &plane->base, crtcs,
|
ret = drm_universal_plane_init(drm, &plane->base, crtcs,
|
||||||
&malidp_de_plane_funcs, formats, n,
|
&malidp_de_plane_funcs, formats, n,
|
||||||
(id == DE_SMART) ? NULL : modifiers, plane_type,
|
(id == DE_SMART) ? linear_only_modifiers : modifiers,
|
||||||
NULL);
|
plane_type, NULL);
|
||||||
|
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
Reference in New Issue
Block a user