History

drm/vmwgfx: Add surface dirty-tracking callbacks

Add the callbacks necessary to implement emulated coherent memory for surfaces. Add a flag to the gb_surface_create ioctl to indicate that surface memory should be coherent. Also bump the drm minor version to signal the availability of coherent surfaces.

Thomas Hellstrom committed 7 years ago

Commit 4ba39761 parent d58e3b04 files · +629 −7Browse files

Showing the changes to include/uapi (1 of 4 files). Show all

Unified · Split

include/uapi/drm/vmwgfx_drm.h+3−1
@@ -891,11 +891,13 @@ struct drm_vmw_shader_arg { · 890 unmodified lines
891891 * surface.
892892 * @drm_vmw_surface_flag_create_buffer: Create a backup buffer if none is
893893 * given.
894+ * @drm_vmw_surface_flag_coherent: Back surface with coherent memory.
894895 */
895896 enum drm_vmw_surface_flags {
896897 drm_vmw_surface_flag_shareable = (1 << 0),
897898 drm_vmw_surface_flag_scanout = (1 << 1),
898− drm_vmw_surface_flag_create_buffer = (1 << 2)
899+ drm_vmw_surface_flag_create_buffer = (1 << 2),
900+ drm_vmw_surface_flag_coherent = (1 << 3),
899901 };
900902
901903 /**