Commit 709f3fc9 authored by Ville Syrjälä's avatar Ville Syrjälä

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: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170303151928.23053-3-ville.syrjala@linux.intel.comReviewed-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
parent b53af8bb
...@@ -1039,7 +1039,7 @@ static uint16_t vlv_compute_wm_level(const struct intel_crtc_state *crtc_state, ...@@ -1039,7 +1039,7 @@ static uint16_t vlv_compute_wm_level(const struct intel_crtc_state *crtc_state,
if (WARN_ON(htotal == 0)) if (WARN_ON(htotal == 0))
htotal = 1; htotal = 1;
if (plane->base.type == DRM_PLANE_TYPE_CURSOR) { if (plane->id == PLANE_CURSOR) {
/* /*
* FIXME the formula gives values that are * FIXME the formula gives values that are
* too big for the cursor FIFO, and hence we * too big for the cursor FIFO, and hence we
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment