]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Fix reason for per-chip disabling of FBC
authorDamien Lespiau <damien.lespiau@intel.com>
Mon, 24 Jun 2013 15:22:02 +0000 (16:22 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 1 Jul 2013 09:27:46 +0000 (11:27 +0200)
commit5b005ca46b0100094b62b01b000d6ce7ebd61bca
tree2f2f439ea974f5301ad1e3615d31f69058df4b4b
parent5e225293291d3fa76725f76fa294ae13a9bd2530
drm/i915: Fix reason for per-chip disabling of FBC

When running on my snb machine, recent kernels display successively:

[drm:intel_update_fbc], fbc set to per-chip default
[drm:intel_update_fbc], fbc disabled per module param

But no module param is set. This happens because the check for the
module parameter uses a variable that has been overridden inside the
"per-chip default" code.

Fix up the logic and add another reason for the FBC to the be disabled.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_pm.c