From: Gustavo Padovan Date: Fri, 5 Sep 2014 20:04:46 +0000 (-0300) Subject: drm/i915: create struct intel_plane_state X-Git-Tag: v3.19-rc1~73^2~79^2~73 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=eeca778a3ec71022630e50935cfb7edab6f6f9e5;p=karo-tx-linux.git drm/i915: create struct intel_plane_state This new struct will be the storage of src and dst coordinates between the check and commit stages of a plane update. Signed-off-by: Gustavo Padovan Reviewed-by: Ville Syrjälä Signed-off-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers/gpu/drm/i915/intel_drv.h index 07ce04683c30..dd5e0f1b2dfd 100644 --- a/drivers/gpu/drm/i915/intel_drv.h +++ b/drivers/gpu/drm/i915/intel_drv.h @@ -34,6 +34,7 @@ #include #include #include +#include /** * _wait_for - magic (register) wait macro @@ -237,6 +238,17 @@ typedef struct dpll { int p; } intel_clock_t; +struct intel_plane_state { + struct drm_crtc *crtc; + struct drm_framebuffer *fb; + struct drm_rect src; + struct drm_rect dst; + struct drm_rect clip; + struct drm_rect orig_src; + struct drm_rect orig_dst; + bool visible; +}; + struct intel_plane_config { bool tiled; int size;