]> git.karo-electronics.de Git - linux-beck.git/commit
drm/i915: don't try to find crtcs for FBC if it's disabled
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Mon, 9 Feb 2015 16:46:27 +0000 (14:46 -0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 13 Feb 2015 22:28:14 +0000 (23:28 +0100)
commit7cc6574600fdd45eb828a884da4eec6daed786f0
treed6cecea777e9974a633ddaa00a44b4b4cc519214
parent203a571b21e7613a7b18bd7340ea1ca75327e7c6
drm/i915: don't try to find crtcs for FBC if it's disabled

.. because it would be a waste of time, so move the place where the
check is done. Also, with this we won't risk printing "more than one
pipe active, disabling compression" or "no output, disabling" when FBC
is actually disabled.

This patch also represents a small behavior difference when using
i915.powersave=0: it is now exactly the same as i915.enable_fbc=0 on
this part of the code.

V2: Rebase.

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> (v1)
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_fbc.c