diff options
author | Jesse Barnes <jbarnes@virtuousgeek.org> | 2011-12-14 01:19:39 +0400 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-01-03 21:31:10 +0400 |
commit | 175bd4204e069f8bd855ca3dcf70a78db4410936 (patch) | |
tree | 4f172f5f12853ff22d86d66bb3fe3c2ec3405f81 /drivers/gpu/drm/i915/intel_drv.h | |
parent | b840d907fcf6d5d5ef91af4518b3dab3a5da0f75 (diff) | |
download | linux-175bd4204e069f8bd855ca3dcf70a78db4410936.tar.xz |
drm/i915: track sprite coverage and disable primary plane if possible
To save power when the sprite is full screen, we can disable the primary
plane on the same pipe. Track the sprite status and enable/disable the
primary opportunistically.
v2: remove primary plane enable/disable hooks; they're identical
Reviewed-by: Daniel Vetter <daniel@ffwll.ch>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_drv.h')
-rw-r--r-- | drivers/gpu/drm/i915/intel_drv.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers/gpu/drm/i915/intel_drv.h index a6e2f0d865b1..ed65121989bf 100644 --- a/drivers/gpu/drm/i915/intel_drv.h +++ b/drivers/gpu/drm/i915/intel_drv.h @@ -181,6 +181,7 @@ struct intel_plane { struct drm_plane base; enum pipe pipe; struct drm_i915_gem_object *obj; + bool primary_disabled; int max_downscale; u32 lut_r[1024], lut_g[1024], lut_b[1024]; void (*update_plane)(struct drm_plane *plane, |