diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2018-11-27 18:37:42 +0200 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2018-11-28 21:51:50 +0200 |
commit | afbd8a722bd64e0020a3b2f8ac2c42e02dc8f596 (patch) | |
tree | 03f97e4d88164b7cf2c48271d78724186aefc3da /drivers/gpu/drm/i915/intel_atomic.c | |
parent | 019575a58c84b1cd534d1dd1cad36592995f8f6b (diff) | |
download | kernel_replicant_linux-afbd8a722bd64e0020a3b2f8ac2c42e02dc8f596.tar.gz kernel_replicant_linux-afbd8a722bd64e0020a3b2f8ac2c42e02dc8f596.tar.bz2 kernel_replicant_linux-afbd8a722bd64e0020a3b2f8ac2c42e02dc8f596.zip |
drm/i915: Introduce crtc_state->update_planes bitmask
Keep track which planes need updating during the commit. For now
we set the bit for any plane that was or will be visible (including
icl+ nv12 slave planes). In the future I'll have need to update
invisible planes as well, for skl plane ddbs and for pre-skl pipe
gamma/csc control (which lives in the primary plane control register).
v2: Pimp the commit message to mention icl+ nv12 slave planes (Matt)
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181127163742.30215-1-ville.syrjala@linux.intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/intel_atomic.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_atomic.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_atomic.c b/drivers/gpu/drm/i915/intel_atomic.c index a5a2c8fe58a7..8cb02f28d30c 100644 --- a/drivers/gpu/drm/i915/intel_atomic.c +++ b/drivers/gpu/drm/i915/intel_atomic.c @@ -184,6 +184,7 @@ intel_crtc_duplicate_state(struct drm_crtc *crtc) crtc_state->fifo_changed = false; crtc_state->wm.need_postvbl_update = false; crtc_state->fb_bits = 0; + crtc_state->update_planes = 0; return &crtc_state->base; } |