|
|
7d2c2f2 |
From 95a9343e4b4e61d4c16da8bffc6a6e392d666dea Mon Sep 17 00:00:00 2001
|
|
|
7d2c2f2 |
From: Matt Roper <matthew.d.roper@intel.com>
|
|
|
7d2c2f2 |
Date: Thu, 12 May 2016 07:05:56 -0700
|
|
|
7d2c2f2 |
Subject: [PATCH 02/17] drm/i915: Rename
|
|
|
7d2c2f2 |
s/skl_compute_pipe_wm/skl_build_pipe_wm/
|
|
|
7d2c2f2 |
|
|
|
7d2c2f2 |
When we added atomic watermarks, we added a new display vfunc
|
|
|
7d2c2f2 |
'compute_pipe_wm' that is used to compute any pipe-specific watermark
|
|
|
7d2c2f2 |
information that we can at atomic check time. This was a somewhat poor
|
|
|
7d2c2f2 |
naming choice since we already had a 'skl_compute_pipe_wm' function that
|
|
|
7d2c2f2 |
doesn't quite fit this model --- the existing SKL function is something
|
|
|
7d2c2f2 |
that gets used at atomic commit time, after the DDB allocation has been
|
|
|
7d2c2f2 |
determined. Let's rename the existing SKL function to avoid confusion.
|
|
|
7d2c2f2 |
|
|
|
7d2c2f2 |
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
|
|
|
7d2c2f2 |
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
|
|
|
7d2c2f2 |
Link: http://patchwork.freedesktop.org/patch/msgid/1463061971-19638-3-git-send-email-matthew.d.roper@intel.com
|
|
|
7d2c2f2 |
---
|
|
|
7d2c2f2 |
drivers/gpu/drm/i915/intel_pm.c | 8 ++++----
|
|
|
7d2c2f2 |
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
|
7d2c2f2 |
|
|
|
7d2c2f2 |
diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
|
|
|
7d2c2f2 |
index 4353fec..e15cb2a 100644
|
|
|
7d2c2f2 |
--- a/drivers/gpu/drm/i915/intel_pm.c
|
|
|
7d2c2f2 |
+++ b/drivers/gpu/drm/i915/intel_pm.c
|
|
|
7d2c2f2 |
@@ -3327,9 +3327,9 @@ static void skl_compute_transition_wm(struct intel_crtc_state *cstate,
|
|
|
7d2c2f2 |
}
|
|
|
7d2c2f2 |
}
|
|
|
7d2c2f2 |
|
|
|
7d2c2f2 |
-static void skl_compute_pipe_wm(struct intel_crtc_state *cstate,
|
|
|
7d2c2f2 |
- struct skl_ddb_allocation *ddb,
|
|
|
7d2c2f2 |
- struct skl_pipe_wm *pipe_wm)
|
|
|
7d2c2f2 |
+static void skl_build_pipe_wm(struct intel_crtc_state *cstate,
|
|
|
7d2c2f2 |
+ struct skl_ddb_allocation *ddb,
|
|
|
7d2c2f2 |
+ struct skl_pipe_wm *pipe_wm)
|
|
|
7d2c2f2 |
{
|
|
|
7d2c2f2 |
struct drm_device *dev = cstate->base.crtc->dev;
|
|
|
7d2c2f2 |
const struct drm_i915_private *dev_priv = dev->dev_private;
|
|
|
7d2c2f2 |
@@ -3596,7 +3596,7 @@ static bool skl_update_pipe_wm(struct drm_crtc *crtc,
|
|
|
7d2c2f2 |
struct intel_crtc_state *cstate = to_intel_crtc_state(crtc->state);
|
|
|
7d2c2f2 |
|
|
|
7d2c2f2 |
skl_allocate_pipe_ddb(cstate, ddb);
|
|
|
7d2c2f2 |
- skl_compute_pipe_wm(cstate, ddb, pipe_wm);
|
|
|
7d2c2f2 |
+ skl_build_pipe_wm(cstate, ddb, pipe_wm);
|
|
|
7d2c2f2 |
|
|
|
7d2c2f2 |
if (!memcmp(&intel_crtc->wm.active.skl, pipe_wm, sizeof(*pipe_wm)))
|
|
|
7d2c2f2 |
return false;
|
|
|
7d2c2f2 |
--
|
|
|
7d2c2f2 |
2.7.4
|
|
|
7d2c2f2 |
|