summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/vmwgfx/vmwgfx_kms.h
diff options
context:
space:
mode:
authorMichael Banack <banackm@vmware.com>2022-10-22 00:02:26 -0400
committerZack Rusin <zackr@vmware.com>2022-10-25 12:42:22 -0400
commit40f9e40b20491e54ea1006faecd31b6b72caf052 (patch)
treed5e45f00435fe7017782a8a53d4d96fc198ea447 /drivers/gpu/drm/vmwgfx/vmwgfx_kms.h
parent53bc3f6fb6b3d401230bb2f8d3b6fe877c137b87 (diff)
downloadlinux-stable-40f9e40b20491e54ea1006faecd31b6b72caf052.tar.gz
linux-stable-40f9e40b20491e54ea1006faecd31b6b72caf052.tar.bz2
linux-stable-40f9e40b20491e54ea1006faecd31b6b72caf052.zip
drm/vmwgfx: Start diffing new mob cursors against old ones
Avoid making the SVGA device do extra work if the new cursor image matches the old one. Signed-off-by: Michael Banack <banackm@vmware.com> Signed-off-by: Zack Rusin <zackr@vmware.com> Link: https://patchwork.freedesktop.org/patch/msgid/20221022040236.616490-8-zack@kde.org
Diffstat (limited to 'drivers/gpu/drm/vmwgfx/vmwgfx_kms.h')
-rw-r--r--drivers/gpu/drm/vmwgfx/vmwgfx_kms.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.h b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.h
index a9bcc91f978b..fb4c9f9e3493 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.h
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.h
@@ -272,6 +272,12 @@ struct vmw_crtc_state {
struct drm_crtc_state base;
};
+struct vmw_cursor_plane_state {
+ struct ttm_buffer_object *bo;
+ struct ttm_bo_kmap_obj map;
+ bool mapped;
+};
+
/**
* Derived class for plane state object
*
@@ -295,11 +301,7 @@ struct vmw_plane_state {
/* For CPU Blit */
unsigned int cpp;
- struct {
- struct ttm_buffer_object *bo;
- struct ttm_bo_kmap_obj map;
- bool mapped;
- } cursor;
+ struct vmw_cursor_plane_state cursor;
};