]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitad9e88d6bbbbd9857b65a31c28cc1d68efc02686
tree41143554d41b74f3b266ce36508a9e5e4eecae9c
parentfa8de6e5d507e0021f77ad59b0351a7b5cd9125f
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