From: Paulo Zanoni Date: Tue, 30 Jun 2015 13:53:05 +0000 (-0300) Subject: drm/i915: don't increment the FBC threshold at fbc_enable X-Git-Tag: omap-for-v4.3/fixes-rc1~89^2~36^2~116 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce65e47b78789b4f78be1fd7e4c884df74a9f075;p=pandora-kernel.git drm/i915: don't increment the FBC threshold at fbc_enable We first set the threshold value when we're allocating the CFB, and then later at {ilk,gen7}_fbc_enable() we increment it in case we're using 16bpp. While that is correct, it is dangerous: if we rework the code a little bit in a way that allows us to call intel_fbc_enable() without necessarily calling i915_gem_stolen_setup_compression() first, we might end up incrementing threshold more than once. To prevent that, increment a temporary variable instead. v2: Rebase. Signed-off-by: Paulo Zanoni Reviewed-by: Chris Wilson Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed