drm/i915: Promote .format_mod_supported() to the lead role
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 18 May 2018 16:21:59 +0000 (19:21 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 30 May 2018 19:28:10 +0000 (22:28 +0300)
commita38189c5f79d486cb6193a3965dad98d1b0a17b2
tree440580e08ac9ed7c03d9a37841fe4c8a59606af8
parentbccfaffb76a8974ca275b99e9293a2594ae75f31
drm/i915: Promote .format_mod_supported() to the lead role

Up to now we've used the plane's modifier list as the primary
source of information for which modifiers are supported by a
given plane. In order to allow auxiliary metadata to be embedded
within the bits of the modifier we need to stop doing that.

Thus we have to make .format_mod_supported() aware of the plane's
capabilities and gracefully deal with any modifier being passed
in directly from userspace.

v2: Rebase after NV12
    Simplify

Cc: Eric Anholt <eric@anholt.net>
References: https://lists.freedesktop.org/archives/dri-devel/2018-March/169782.html
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180518162159.30305-1-ville.syrjala@linux.intel.com
Reviewed-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_sprite.c