]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/gpu/drm/i915/intel_drv.h
drm/i915: Compute display surface offset in the plane check hook for SKL+
[karo-tx-linux.git] / drivers / gpu / drm / i915 / intel_drv.h
index 9b27bd7f72837e9754188c6f1976bde8bad436ea..2b980f7855d41d6ae9ecc9cbd925807b98cb7e6c 100644 (file)
@@ -353,6 +353,11 @@ struct intel_plane_state {
        struct drm_rect clip;
        bool visible;
 
+       struct {
+               u32 offset;
+               int x, y;
+       } main;
+
        /*
         * scaler_id
         *    = -1 : not using a scaler
@@ -1346,6 +1351,7 @@ u32 skl_plane_ctl_tiling(uint64_t fb_modifier);
 u32 skl_plane_ctl_rotation(unsigned int rotation);
 u32 skl_plane_stride(const struct drm_framebuffer *fb, int plane,
                     unsigned int rotation);
+int skl_check_plane_surface(struct intel_plane_state *plane_state);
 
 /* intel_csr.c */
 void intel_csr_ucode_init(struct drm_i915_private *);