drm: Trust format_mod_supported() when it OKs a plane modifier.
authorEric Anholt <eric@anholt.net>
Fri, 16 Mar 2018 22:04:33 +0000 (15:04 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 31 May 2018 18:19:04 +0000 (11:19 -0700)
commit8fb756dfa273bcb42bdaff65baae83548b6c326d
tree41143554d41b74f3b266ce36508a9e5e4eecae9c
parenta38189c5f79d486cb6193a3965dad98d1b0a17b2
drm: Trust format_mod_supported() when it OKs a plane modifier.

For parameterized modifiers (Broadcom's SAND and UIF), we need to
allow the parameter fields to be filled in, while exposing only the
variant of the modifier with the parameter unfilled in the internal
arrays and the format blob.

Signed-off-by: Eric Anholt <eric@anholt.net>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180316220435.31416-1-eric@anholt.net
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
drivers/gpu/drm/drm_plane.c
include/drm/drm_plane.h