]> 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)
commitcc9b7ba64aec6ef47b48b3b48fe5f48bab4e35b0
tree56f73e956b1ed1fef8ca9a7791508d1fbd318468
parent395acd9758ed53f56f5fe57d86848429580f5f50
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