mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
drm/i915: simplify platform specific code in hsw_write_wm_values
No functional change. Signed-off-by: Imre Deak <imre.deak@intel.com> Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
8368f0148f
commit
954911ebb1
1 changed files with 5 additions and 6 deletions
|
@ -2515,12 +2515,11 @@ static void hsw_write_wm_values(struct drm_i915_private *dev_priv,
|
|||
I915_WRITE(DISP_ARB_CTL, val);
|
||||
}
|
||||
|
||||
if (INTEL_INFO(dev)->gen <= 6) {
|
||||
if (dirty & WM_DIRTY_LP(1) && previous->wm_lp_spr[0] != results->wm_lp_spr[0])
|
||||
I915_WRITE(WM1S_LP_ILK, results->wm_lp_spr[0]);
|
||||
} else {
|
||||
if (dirty & WM_DIRTY_LP(1) && previous->wm_lp_spr[0] != results->wm_lp_spr[0])
|
||||
I915_WRITE(WM1S_LP_ILK, results->wm_lp_spr[0]);
|
||||
if (dirty & WM_DIRTY_LP(1) &&
|
||||
previous->wm_lp_spr[0] != results->wm_lp_spr[0])
|
||||
I915_WRITE(WM1S_LP_ILK, results->wm_lp_spr[0]);
|
||||
|
||||
if (INTEL_INFO(dev)->gen >= 7) {
|
||||
if (dirty & WM_DIRTY_LP(2) && previous->wm_lp_spr[1] != results->wm_lp_spr[1])
|
||||
I915_WRITE(WM2S_LP_IVB, results->wm_lp_spr[1]);
|
||||
if (dirty & WM_DIRTY_LP(3) && previous->wm_lp_spr[2] != results->wm_lp_spr[2])
|
||||
|
|
Loading…
Add table
Reference in a new issue