mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-12 12:06:44 +07:00
drm/i915/skl: Reduce the indentation level in skl_write_wm_values()
We can reduce the indentation level by continuing early. Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
afb024aa65
commit
5d374d9638
@ -3485,9 +3485,10 @@ static void skl_write_wm_values(struct drm_i915_private *dev_priv,
|
|||||||
int i, level, max_level = ilk_wm_max_level(dev);
|
int i, level, max_level = ilk_wm_max_level(dev);
|
||||||
enum pipe pipe = crtc->pipe;
|
enum pipe pipe = crtc->pipe;
|
||||||
|
|
||||||
if (new->dirty[pipe]) {
|
if (!new->dirty[pipe])
|
||||||
I915_WRITE(PIPE_WM_LINETIME(pipe),
|
continue;
|
||||||
new->wm_linetime[pipe]);
|
|
||||||
|
I915_WRITE(PIPE_WM_LINETIME(pipe), new->wm_linetime[pipe]);
|
||||||
|
|
||||||
for (level = 0; level <= max_level; level++) {
|
for (level = 0; level <= max_level; level++) {
|
||||||
for (i = 0; i < intel_num_planes(crtc); i++)
|
for (i = 0; i < intel_num_planes(crtc); i++)
|
||||||
@ -3509,7 +3510,6 @@ static void skl_write_wm_values(struct drm_i915_private *dev_priv,
|
|||||||
skl_ddb_entry_write(dev_priv, CUR_BUF_CFG(pipe),
|
skl_ddb_entry_write(dev_priv, CUR_BUF_CFG(pipe),
|
||||||
&new->ddb.cursor[pipe]);
|
&new->ddb.cursor[pipe]);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool skl_update_pipe_wm(struct drm_crtc *crtc,
|
static bool skl_update_pipe_wm(struct drm_crtc *crtc,
|
||||||
|
Loading…
Reference in New Issue
Block a user