aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_drv.h
diff options
context:
space:
mode:
authorJesse Barnes <jbarnes@virtuousgeek.org>2011-12-13 16:19:39 -0500
committerKeith Packard <keithp@keithp.com>2012-01-03 12:31:10 -0500
commit175bd4204e069f8bd855ca3dcf70a78db4410936 (patch)
tree4f172f5f12853ff22d86d66bb3fe3c2ec3405f81 /drivers/gpu/drm/i915/intel_drv.h
parentb840d907fcf6d5d5ef91af4518b3dab3a5da0f75 (diff)
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.h1
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 {
181 struct drm_plane base; 181 struct drm_plane base;
182 enum pipe pipe; 182 enum pipe pipe;
183 struct drm_i915_gem_object *obj; 183 struct drm_i915_gem_object *obj;
184 bool primary_disabled;
184 int max_downscale; 185 int max_downscale;
185 u32 lut_r[1024], lut_g[1024], lut_b[1024]; 186 u32 lut_r[1024], lut_g[1024], lut_b[1024];
186 void (*update_plane)(struct drm_plane *plane, 187 void (*update_plane)(struct drm_plane *plane,