diff options
author | Jani Nikula <jani.nikula@intel.com> | 2015-11-27 12:21:46 +0200 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2015-11-30 12:54:33 +0200 |
commit | a65347ba6a4e07d276377a62b9b76ee64a277197 (patch) | |
tree | 4cd95b6fbd1a2ecf34c400db352bd7d05ba8cf21 /drivers/gpu/drm/i915/intel_drv.h | |
parent | 70656900ab5c33cc5aff4dd45ca42087cdeb464b (diff) | |
download | op-kernel-dev-a65347ba6a4e07d276377a62b9b76ee64a277197.zip op-kernel-dev-a65347ba6a4e07d276377a62b9b76ee64a277197.tar.gz |
drm/i915: add has_dsi_encoder to crtc state
DSI has quite a few special cases, like DP, so add it to crtc
state. This way we can get rid of a number of intel_pipe_has_type()
checks for DSI. This isn't necessarily the prettiest way, but it's a
step towards being aligned with what's being done with other encoders.
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1448619706-21293-3-git-send-email-jani.nikula@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/intel_drv.h')
-rw-r--r-- | drivers/gpu/drm/i915/intel_drv.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers/gpu/drm/i915/intel_drv.h index 7127332..6bc640b 100644 --- a/drivers/gpu/drm/i915/intel_drv.h +++ b/drivers/gpu/drm/i915/intel_drv.h @@ -395,6 +395,9 @@ struct intel_crtc_state { * accordingly. */ bool has_dp_encoder; + /* DSI has special cases */ + bool has_dsi_encoder; + /* Whether we should send NULL infoframes. Required for audio. */ bool has_hdmi_sink; |