]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Check that the plane supports the request format+modifier combo
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 22 Dec 2017 19:22:30 +0000 (21:22 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 26 Feb 2018 14:29:47 +0000 (16:29 +0200)
commit1082584b32a4a80de031f0e8ddcf0a9094609cc7
treea7ef38d2455b0f51234106c45b9fb3004a8774d6
parente8bd5a26dba6ca1e824acc3d0816a3e67acc822f
drm: Check that the plane supports the request format+modifier combo

Currently we only check that the plane supports the pixel format of the
fb we're about to feed to it. Extend it to check also the modifier, and
more specifically that the combination of the format and modifier is
supported.

Cc: dri-devel@lists.freedesktop.org
Cc: Ben Widawsky <ben@bwidawsk.net>
Cc: Jason Ekstrand <jason@jlekstrand.net>
Cc: Daniel Stone <daniels@collabora.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171222192231.17981-8-ville.syrjala@linux.intel.com
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_atomic.c
drivers/gpu/drm/drm_crtc.c
drivers/gpu/drm/drm_crtc_internal.h
drivers/gpu/drm/drm_plane.c