mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] drm/i915/skl: Set dirty_pipes to active_crtcs, not ~0
@ 2016-08-22 16:52 Lyude
  0 siblings, 0 replies; only message in thread
From: Lyude @ 2016-08-22 16:52 UTC (permalink / raw)
  To: Maarten Lankhorst, intel-gfx
  Cc: Lyude, Daniel Vetter, Jani Nikula, David Airlie, dri-devel, linux-kernel

Using intel_state->active_crtcs allows us to more easily check whether
or not we've updated all of the CRTCs that needed ddb updates since we
can just do:

	mask_of_crtcs_we_updated == intel_state->wm_results.dirty_pipes

Signed-off-by: Lyude <cpaul@redhat.com>
---
 drivers/gpu/drm/i915/intel_pm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
index 2f4438d..f4fe942 100644
--- a/drivers/gpu/drm/i915/intel_pm.c
+++ b/drivers/gpu/drm/i915/intel_pm.c
@@ -4117,7 +4117,7 @@ skl_compute_ddb(struct drm_atomic_state *state)
 	 */
 	if (intel_state->active_pipe_changes) {
 		realloc_pipes = ~0;
-		intel_state->wm_results.dirty_pipes = ~0;
+		intel_state->wm_results.dirty_pipes = intel_state->active_crtcs;
 	}
 
 	for_each_intel_crtc_mask(dev, intel_crtc, realloc_pipes) {
-- 
2.7.4

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-08-22 16:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-22 16:52 [PATCH] drm/i915/skl: Set dirty_pipes to active_crtcs, not ~0 Lyude

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®