aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_drv.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-09-11 05:47:47 -0400
committerChris Wilson <chris@chris-wilson.co.uk>2010-09-11 05:50:55 -0400
commitbed4a6734b5f56ffd240fdda755b6eb589d32482 (patch)
tree406797661fc322f51ab01c92f06a6c0a0aa8b3d7 /drivers/gpu/drm/i915/i915_drv.h
parentea056c14a269be393468fe3734f6c2319eb23a3f (diff)
drm/i915: Fix updating FBC
We need to track different state on each generation in order to detect when we need to refresh the FBC registers. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r--drivers/gpu/drm/i915/i915_drv.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index c8b22005ec18..b3efb30b2270 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -219,6 +219,7 @@ struct intel_device_info {
219}; 219};
220 220
221enum no_fbc_reason { 221enum no_fbc_reason {
222 FBC_NO_OUTPUT, /* no outputs enabled to compress */
222 FBC_STOLEN_TOO_SMALL, /* not enough space to hold compressed buffers */ 223 FBC_STOLEN_TOO_SMALL, /* not enough space to hold compressed buffers */
223 FBC_UNSUPPORTED_MODE, /* interlace or doublescanned mode */ 224 FBC_UNSUPPORTED_MODE, /* interlace or doublescanned mode */
224 FBC_MODE_TOO_LARGE, /* mode too large for compression */ 225 FBC_MODE_TOO_LARGE, /* mode too large for compression */
@@ -307,8 +308,10 @@ typedef struct drm_i915_private {
307 308
308 unsigned long cfb_size; 309 unsigned long cfb_size;
309 unsigned long cfb_pitch; 310 unsigned long cfb_pitch;
311 unsigned long cfb_offset;
310 int cfb_fence; 312 int cfb_fence;
311 int cfb_plane; 313 int cfb_plane;
314 int cfb_y;
312 315
313 int irq_enabled; 316 int irq_enabled;
314 317