diff options
author | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-09-14 18:39:40 -0400 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2009-09-21 18:47:38 -0400 |
commit | 74dff282237ea8c0a5df1afd8526eac4b6cee063 (patch) | |
tree | fd6f5f1ffb281a96de3d9746e15233d538ea8555 /drivers/gpu/drm/i915/i915_reg.h | |
parent | e70236a8d3d0a4c100a0b9f7d394d9bda9c56aca (diff) |
drm/i915: framebuffer compression for GM45+
Add support for framebuffer compression on GM45 and above. Removes
some unnecessary I915_HAS_FBC checks as well (this is now part of the
FBC display function).
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_reg.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_reg.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h index f3d41397ce74..8122a72828e4 100644 --- a/drivers/gpu/drm/i915/i915_reg.h +++ b/drivers/gpu/drm/i915/i915_reg.h | |||
@@ -351,6 +351,33 @@ | |||
351 | 351 | ||
352 | #define FBC_LL_SIZE (1536) | 352 | #define FBC_LL_SIZE (1536) |
353 | 353 | ||
354 | /* Framebuffer compression for GM45+ */ | ||
355 | #define DPFC_CB_BASE 0x3200 | ||
356 | #define DPFC_CONTROL 0x3208 | ||
357 | #define DPFC_CTL_EN (1<<31) | ||
358 | #define DPFC_CTL_PLANEA (0<<30) | ||
359 | #define DPFC_CTL_PLANEB (1<<30) | ||
360 | #define DPFC_CTL_FENCE_EN (1<<29) | ||
361 | #define DPFC_SR_EN (1<<10) | ||
362 | #define DPFC_CTL_LIMIT_1X (0<<6) | ||
363 | #define DPFC_CTL_LIMIT_2X (1<<6) | ||
364 | #define DPFC_CTL_LIMIT_4X (2<<6) | ||
365 | #define DPFC_RECOMP_CTL 0x320c | ||
366 | #define DPFC_RECOMP_STALL_EN (1<<27) | ||
367 | #define DPFC_RECOMP_STALL_WM_SHIFT (16) | ||
368 | #define DPFC_RECOMP_STALL_WM_MASK (0x07ff0000) | ||
369 | #define DPFC_RECOMP_TIMER_COUNT_SHIFT (0) | ||
370 | #define DPFC_RECOMP_TIMER_COUNT_MASK (0x0000003f) | ||
371 | #define DPFC_STATUS 0x3210 | ||
372 | #define DPFC_INVAL_SEG_SHIFT (16) | ||
373 | #define DPFC_INVAL_SEG_MASK (0x07ff0000) | ||
374 | #define DPFC_COMP_SEG_SHIFT (0) | ||
375 | #define DPFC_COMP_SEG_MASK (0x000003ff) | ||
376 | #define DPFC_STATUS2 0x3214 | ||
377 | #define DPFC_FENCE_YOFF 0x3218 | ||
378 | #define DPFC_CHICKEN 0x3224 | ||
379 | #define DPFC_HT_MODIFY (1<<31) | ||
380 | |||
354 | /* | 381 | /* |
355 | * GPIO regs | 382 | * GPIO regs |
356 | */ | 383 | */ |