drm: mxsfb: Implement .format_mod_supported
authorDaniel Abrecht <public@danielabrecht.ch>
Sun, 8 Nov 2020 21:00:01 +0000 (21:00 +0000)
committerStefan Agner <stefan@agner.ch>
Thu, 26 Nov 2020 12:30:57 +0000 (13:30 +0100)
commitc70582bbf299986234ecf06d128454b4b38ecd2e
tree296a30cb0321b0a050370535ec142be759b8028d
parent777ee15e88616c275ba59db88d3ece20eae0ca9a
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")
Reviewed-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Stefan Agner <stefan@agner.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/2a99ffffc2378209307e0992a6e97e70@nodmarc.danielabrecht.ch
drivers/gpu/drm/mxsfb/mxsfb_kms.c