Commit f119a5e2 authored by Ville Syrjälä's avatar Ville Syrjälä

drm/i915: Nuke skl wm.dirty_pipes bitmask

The dirty_pipes bitmask is now unused. Get rid of it.
Reviewed-by: default avatarStanislav Lisovskiy <stanislav.lisovskiy@intel.com>
Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200120174728.21095-4-ville.syrjala@linux.intel.com
parent 6dcde047
...@@ -801,7 +801,6 @@ struct skl_ddb_allocation { ...@@ -801,7 +801,6 @@ struct skl_ddb_allocation {
}; };
struct skl_ddb_values { struct skl_ddb_values {
unsigned dirty_pipes;
struct skl_ddb_allocation ddb; struct skl_ddb_allocation ddb;
}; };
......
...@@ -5097,23 +5097,6 @@ static bool skl_plane_wm_equals(struct drm_i915_private *dev_priv, ...@@ -5097,23 +5097,6 @@ static bool skl_plane_wm_equals(struct drm_i915_private *dev_priv,
return skl_wm_level_equals(&wm1->trans_wm, &wm2->trans_wm); return skl_wm_level_equals(&wm1->trans_wm, &wm2->trans_wm);
} }
static bool skl_pipe_wm_equals(struct intel_crtc *crtc,
const struct skl_pipe_wm *wm1,
const struct skl_pipe_wm *wm2)
{
struct drm_i915_private *dev_priv = to_i915(crtc->base.dev);
enum plane_id plane_id;
for_each_plane_id_on_crtc(crtc, plane_id) {
if (!skl_plane_wm_equals(dev_priv,
&wm1->planes[plane_id],
&wm2->planes[plane_id]))
return false;
}
return true;
}
static inline bool skl_ddb_entries_overlap(const struct skl_ddb_entry *a, static inline bool skl_ddb_entries_overlap(const struct skl_ddb_entry *a,
const struct skl_ddb_entry *b) const struct skl_ddb_entry *b)
{ {
...@@ -5375,8 +5358,6 @@ skl_ddb_add_affected_pipes(struct intel_atomic_state *state) ...@@ -5375,8 +5358,6 @@ skl_ddb_add_affected_pipes(struct intel_atomic_state *state)
* to grab the lock on *all* CRTC's. * to grab the lock on *all* CRTC's.
*/ */
if (state->active_pipe_changes || state->modeset) { if (state->active_pipe_changes || state->modeset) {
state->wm_results.dirty_pipes = INTEL_INFO(dev_priv)->pipe_mask;
ret = intel_add_all_pipes(state); ret = intel_add_all_pipes(state);
if (ret) if (ret)
return ret; return ret;
...@@ -5451,12 +5432,8 @@ skl_compute_wm(struct intel_atomic_state *state) ...@@ -5451,12 +5432,8 @@ skl_compute_wm(struct intel_atomic_state *state)
struct intel_crtc *crtc; struct intel_crtc *crtc;
struct intel_crtc_state *new_crtc_state; struct intel_crtc_state *new_crtc_state;
struct intel_crtc_state *old_crtc_state; struct intel_crtc_state *old_crtc_state;
struct skl_ddb_values *results = &state->wm_results;
int ret, i; int ret, i;
/* Clear all dirty flags */
results->dirty_pipes = 0;
ret = skl_ddb_add_affected_pipes(state); ret = skl_ddb_add_affected_pipes(state);
if (ret) if (ret)
return ret; return ret;
...@@ -5464,8 +5441,7 @@ skl_compute_wm(struct intel_atomic_state *state) ...@@ -5464,8 +5441,7 @@ skl_compute_wm(struct intel_atomic_state *state)
/* /*
* Calculate WM's for all pipes that are part of this transaction. * Calculate WM's for all pipes that are part of this transaction.
* Note that skl_ddb_add_affected_pipes may have added more CRTC's that * Note that skl_ddb_add_affected_pipes may have added more CRTC's that
* weren't otherwise being modified (and set bits in dirty_pipes) if * weren't otherwise being modified if pipe allocations had to change.
* pipe allocations had to change.
*/ */
for_each_oldnew_intel_crtc_in_state(state, crtc, old_crtc_state, for_each_oldnew_intel_crtc_in_state(state, crtc, old_crtc_state,
new_crtc_state, i) { new_crtc_state, i) {
...@@ -5476,11 +5452,6 @@ skl_compute_wm(struct intel_atomic_state *state) ...@@ -5476,11 +5452,6 @@ skl_compute_wm(struct intel_atomic_state *state)
ret = skl_wm_add_affected_planes(state, crtc); ret = skl_wm_add_affected_planes(state, crtc);
if (ret) if (ret)
return ret; return ret;
if (!skl_pipe_wm_equals(crtc,
&old_crtc_state->wm.skl.optimal,
&new_crtc_state->wm.skl.optimal))
results->dirty_pipes |= BIT(crtc->pipe);
} }
ret = skl_compute_ddb(state); ret = skl_compute_ddb(state);
...@@ -5618,7 +5589,6 @@ void skl_pipe_wm_get_hw_state(struct intel_crtc *crtc, ...@@ -5618,7 +5589,6 @@ void skl_pipe_wm_get_hw_state(struct intel_crtc *crtc,
void skl_wm_get_hw_state(struct drm_i915_private *dev_priv) void skl_wm_get_hw_state(struct drm_i915_private *dev_priv)
{ {
struct skl_ddb_values *hw = &dev_priv->wm.skl_hw;
struct skl_ddb_allocation *ddb = &dev_priv->wm.skl_hw.ddb; struct skl_ddb_allocation *ddb = &dev_priv->wm.skl_hw.ddb;
struct intel_crtc *crtc; struct intel_crtc *crtc;
struct intel_crtc_state *crtc_state; struct intel_crtc_state *crtc_state;
...@@ -5628,9 +5598,6 @@ void skl_wm_get_hw_state(struct drm_i915_private *dev_priv) ...@@ -5628,9 +5598,6 @@ void skl_wm_get_hw_state(struct drm_i915_private *dev_priv)
crtc_state = to_intel_crtc_state(crtc->base.state); crtc_state = to_intel_crtc_state(crtc->base.state);
skl_pipe_wm_get_hw_state(crtc, &crtc_state->wm.skl.optimal); skl_pipe_wm_get_hw_state(crtc, &crtc_state->wm.skl.optimal);
if (crtc->active)
hw->dirty_pipes |= BIT(crtc->pipe);
} }
if (dev_priv->active_pipes) { if (dev_priv->active_pipes) {
......
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