[Intel-gfx] [PATCH 7/8] drm/i915: Re-enable self-refresh
Chris Wilson
chris at chris-wilson.co.uk
Fri Mar 18 09:02:09 CET 2011
A broken implementation of is_pot() prevented the detection of when a
singular pipe was enabled.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=35402
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
---
drivers/gpu/drm/i915/intel_display.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 95f21d1..fa925ce 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -3889,7 +3889,7 @@ static bool g4x_compute_srwm(struct drm_device *dev,
static inline bool single_plane_enabled(unsigned int mask)
{
- return mask && (mask & -mask) == 0;
+ return mask && (mask & -mask) == mask;
}
static void g4x_update_wm(struct drm_device *dev)
--
1.7.2.3
More information about the Intel-gfx
mailing list