From: Gustavo Padovan Date: Fri, 5 Sep 2014 20:04:46 +0000 (-0300) Subject: drm/i915: create struct intel_plane_state X-Git-Tag: v4.14-rc1~6290^2~79^2~73 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eeca778a3ec71022630e50935cfb7edab6f6f9e5;p=platform%2Fkernel%2Flinux-rpi.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 07ce046..dd5e0f1 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;