drm: mxsfb: Implement .format_mod_supported
authorDaniel Abrecht <freedesktop-linux-dri-devel@nodmarc.danielabrecht.ch>
Sun, 8 Nov 2020 21:00:01 +0000 (21:00 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 10 Nov 2020 14:22:28 +0000 (15:22 +0100)
commit55c8bcaeccaa5c6d9e7a432ebd0a1717f488a3f4
tree4d6d4db0408aa541f0254dfb2698b41b24312ebf
parent05854d482a5fe6a497be2e134805cb188a9ea361
drm: mxsfb: Implement .format_mod_supported

This will make sure applications which use the IN_FORMATS blob
to figure out which modifiers they can use will pick up the
linear modifier which is needed by mxsfb. Such applications
will not work otherwise if an incompatible implicit modifier
ends up being selected.

Before commit ae1ed0093281 ("drm: mxsfb: Stop using DRM simple
display pipeline helper"), the DRM simple display pipeline
helper took care of this.

Signed-off-by: Daniel Abrecht <public@danielabrecht.ch>
Fixes: ae1ed0093281 ("drm: mxsfb: Stop using DRM simple display pipeline helper")
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/2a99ffffc2378209307e0992a6e97e70@nodmarc.danielabrecht.ch
drivers/gpu/drm/mxsfb/mxsfb_kms.c