From: Ville Syrjälä Date: Wed, 7 Aug 2013 10:24:47 +0000 (+0300) Subject: drm/i915: Pull watermark level validity check out X-Git-Tag: v3.12-rc1~136^2~59^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9786a119d2cd0f43d5554bddda71a5fd6ee39ff;p=pandora-kernel.git drm/i915: Pull watermark level validity check out Refactor the code a bit to split the watermark level validity check into a separate function. Also add hack there that allows us to use it even for LP0 watermarks. ATM we don't pre-compute/check the LP0 watermarks, so we just have to clamp them to the maximum and hope things work out. v2: Add some debug prints when we exceed max WM0 Kill pointless ret = false' assignment. Include the check for the already disabled 'result' which got shuffled around when the patchs got reorderd Signed-off-by: Ville Syrjälä Reviewed-by: Chris Wilson Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed