]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Generalize cursor size checks a bit
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 27 Mar 2017 18:55:40 +0000 (21:55 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 10 May 2017 16:28:33 +0000 (19:28 +0300)
commit2bdea7a43e1b522f7372f98189caefd3fb8a0eb2
tree56f73e956b1ed1fef8ca9a7791508d1fbd318468
parent2749659eaa03bad2e2a48763ce73cbc6bac56777
drm/i915: Generalize cursor size checks a bit

We have the maximum cursor dimensions stored in the mode_config, so
let's just consult that information instead of hardcoding the same
information in multiple places.

We still need to keep some per-platform checks as the limitations are
quite diverse.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170327185546.2977-10-ville.syrjala@linux.intel.com
Reviewed-by: Imre Deak <imre.deak@intel.com>
drivers/gpu/drm/i915/intel_display.c