summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_drv.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-07-27 17:23:55 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-08-04 21:29:56 +0200
commit29ebf90f8157f9d01dda2b1555b4a08e9e542b21 (patch)
treeb1885692d17994edc7d01c24951ecfc47344d9c1 /drivers/gpu/drm/i915/i915_drv.h
parent135c81b8c3c9a70d7b55758c9c2a247a4abb7b64 (diff)
downloadlinux-stable-29ebf90f8157f9d01dda2b1555b4a08e9e542b21.tar.gz
linux-stable-29ebf90f8157f9d01dda2b1555b4a08e9e542b21.tar.bz2
linux-stable-29ebf90f8157f9d01dda2b1555b4a08e9e542b21.zip
drm/i915: Squelch repeated reasoning for why FBC cannot be activated
Almost invariably the reason why FBC cannot be turned on is the same every time (disabled via parameter, too many pipes, pipe too large etc) as modesetting and framebuffer configuration changes less frequently than trying to enable FBC. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Ben Widawsky <ben@bwidawsk.net> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r--drivers/gpu/drm/i915/i915_drv.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index 82ea281b2182..ace691b23072 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -589,7 +589,9 @@ struct i915_fbc {
int interval;
} *fbc_work;
- enum {
+ enum no_fbc_reason {
+ FBC_OK, /* FBC is enabled */
+ FBC_UNSUPPORTED, /* FBC is not supported by this chipset */
FBC_NO_OUTPUT, /* no outputs enabled to compress */
FBC_STOLEN_TOO_SMALL, /* not enough space for buffers */
FBC_UNSUPPORTED_MODE, /* interlace or doublescanned mode */