aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_drv.h
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2014-01-10 04:28:06 -0500
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-01-24 11:22:40 -0500
commit7668851fec5c207d1d62c4c9311e083edf940bcc (patch)
tree89001547195a1875f64efd2940ee3eb2559bbe65 /drivers/gpu/drm/i915/intel_drv.h
parent85ba7b7d399dd2c4c65bd84b9ae4dfbd707e79e7 (diff)
drm/i915: Pre-compute pipe enabled state
Add 'new_enabled' to intel_crtc and precompute it alongside new_encoder and new_crtc. This will allow making decisions about shared resources that are affected by the set of active pipes, before we've clobbered anything for real. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Imre Deak <imre.deak@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_drv.h')
-rw-r--r--drivers/gpu/drm/i915/intel_drv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers/gpu/drm/i915/intel_drv.h
index fbfaaba5cc3b..718befff98e8 100644
--- a/drivers/gpu/drm/i915/intel_drv.h
+++ b/drivers/gpu/drm/i915/intel_drv.h
@@ -359,6 +359,7 @@ struct intel_crtc {
359 bool cursor_visible; 359 bool cursor_visible;
360 360
361 struct intel_crtc_config config; 361 struct intel_crtc_config config;
362 bool new_enabled;
362 363
363 uint32_t ddi_pll_sel; 364 uint32_t ddi_pll_sel;
364 365
@@ -540,6 +541,7 @@ struct intel_unpin_work {
540struct intel_set_config { 541struct intel_set_config {
541 struct drm_encoder **save_connector_encoders; 542 struct drm_encoder **save_connector_encoders;
542 struct drm_crtc **save_encoder_crtcs; 543 struct drm_crtc **save_encoder_crtcs;
544 bool *save_crtc_enabled;
543 545
544 bool fb_changed; 546 bool fb_changed;
545 bool mode_changed; 547 bool mode_changed;