]> 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)
commit73790f6caca284dcde357dbb71108997c3a78f95
tree41143554d41b74f3b266ce36508a9e5e4eecae9c
parenta9881e7e315d6175a3355c37ace5a0b59bbf34aa
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