Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
/* If the pipe isn't enabled, we can't pump pixels and may hang */
assert_pipe_enabled(dev_priv, pipe);
+ WARN(!intel_crtc->primary_disabled, "Primary plane already enabled\n");
+
intel_crtc->primary_disabled = false;
reg = DSPCNTR(plane);
int reg;
u32 val;
+ WARN(intel_crtc->primary_disabled, "Primary plane already disabled\n");
+
intel_crtc->primary_disabled = true;
reg = DSPCNTR(plane);