diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2016-02-12 11:00:26 +0300 |
---|---|---|
committer | Thomas Hellstrom <thellstrom@vmware.com> | 2016-03-14 16:57:56 +0300 |
commit | 75c0685549bb4af6e66bcc1c4c055add531b3880 (patch) | |
tree | 9ba187b8b3b42bcfef39cc866fe07e6722ce0612 /drivers/gpu/drm/vmwgfx/vmwgfx_kms.h | |
parent | b1097aeb6f23433c4e073a8d7447a8d919e1e163 (diff) | |
download | linux-75c0685549bb4af6e66bcc1c4c055add531b3880.tar.xz |
drm/vmwgfx: Break out implicit fb code
Preparation for supporting explicit fbs for screen objects and screen
targets.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
Diffstat (limited to 'drivers/gpu/drm/vmwgfx/vmwgfx_kms.h')
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_kms.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.h b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.h index d41928c12a42..0b5c9ab4a2f8 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.h +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.h @@ -178,6 +178,7 @@ struct vmw_display_unit { int gui_x; int gui_y; bool is_implicit; + bool active_implicit; }; #define vmw_crtc_to_du(x) \ @@ -254,6 +255,17 @@ int vmw_kms_fbdev_init_data(struct vmw_private *dev_priv, struct drm_crtc **p_crtc, struct drm_display_mode **p_mode); void vmw_guess_mode_timing(struct drm_display_mode *mode); +void vmw_kms_del_active(struct vmw_private *dev_priv, + struct vmw_display_unit *du); +void vmw_kms_add_active(struct vmw_private *dev_priv, + struct vmw_display_unit *du, + struct vmw_framebuffer *vfb); +bool vmw_kms_crtc_flippable(struct vmw_private *dev_priv, + struct drm_crtc *crtc); +void vmw_kms_update_implicit_fb(struct vmw_private *dev_priv, + struct drm_crtc *crtc); + + /* * Legacy display unit functions - vmwgfx_ldu.c |