drm/i915: Check for id==PLANE_CURSOR instead of type==DRM_PLANE_TYPE_CURSOR
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 3 Mar 2017 15:19:26 +0000 (17:19 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 5 Apr 2017 10:22:37 +0000 (13:22 +0300)
commit709f3fc92c113c88c96c5def37acb92e2eef610a
tree11f34bb521de564f4f0bf7651a165cbc4082e13a
parentb53af8bb18b85188b5c8cacaa6a966774b548f17
drm/i915: Check for id==PLANE_CURSOR instead of type==DRM_PLANE_TYPE_CURSOR

The VLV/CHV watermark calculation is really interested in the hardware
plane type rather than the plane type (which is more of a software
concept). Let's check plane->id rather plane->type.

No functional changes.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170303151928.23053-3-ville.syrjala@linux.intel.com
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/intel_pm.c