drm/i915: Eliminate the horrendous format check code
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 29 Oct 2018 18:34:53 +0000 (20:34 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 22 Nov 2018 16:58:20 +0000 (18:58 +0200)
commit17e8fd119f8292f0e96bbddc68bbf5c15305a957
tree9a01116a9bdc719c2b2ebe476d452ad061d71d77
parentb4bf44d2dcbd6c35d9651bc6286e4940b8b3df95
drm/i915: Eliminate the horrendous format check code

Replace the messy framebuffer format/modifier validation code
with a single call to drm_any_plane_has_format(). The code was
extremely annoying to maintain as you had to have a lot of platform
checks for different formats. The new code requires zero maintenance.

v2: Nuke the modifier checks as well since the core does that too now
v3: Call drm_any_plane_has_format() from the driver code
v4: Rebase

Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181029183453.28541-2-ville.syrjala@linux.intel.com
Reviewed-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
drivers/gpu/drm/i915/intel_display.c