diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2019-03-19 13:27:50 +0100 |
---|---|---|
committer | Thomas Hellstrom <thellstrom@vmware.com> | 2019-06-18 15:19:35 +0200 |
commit | 4ba397671237784a212378c271f700e99c66cf39 (patch) | |
tree | 5f78dd3ff09db8a382938c363cfbd554c1649ac3 /include/uapi/drm | |
parent | d58e3b087b76381ab8460a5bbfa6bd60047df860 (diff) | |
download | linux-4ba397671237784a212378c271f700e99c66cf39.tar.gz linux-4ba397671237784a212378c271f700e99c66cf39.tar.bz2 linux-4ba397671237784a212378c271f700e99c66cf39.zip |
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.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Deepak Rawat <drawat@vmware.com>
Diffstat (limited to 'include/uapi/drm')
-rw-r--r-- | include/uapi/drm/vmwgfx_drm.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/uapi/drm/vmwgfx_drm.h b/include/uapi/drm/vmwgfx_drm.h index 399f58317cff..02cab33f2f25 100644 --- a/include/uapi/drm/vmwgfx_drm.h +++ b/include/uapi/drm/vmwgfx_drm.h @@ -891,11 +891,13 @@ struct drm_vmw_shader_arg { * surface. * @drm_vmw_surface_flag_create_buffer: Create a backup buffer if none is * given. + * @drm_vmw_surface_flag_coherent: Back surface with coherent memory. */ enum drm_vmw_surface_flags { drm_vmw_surface_flag_shareable = (1 << 0), drm_vmw_surface_flag_scanout = (1 << 1), - drm_vmw_surface_flag_create_buffer = (1 << 2) + drm_vmw_surface_flag_create_buffer = (1 << 2), + drm_vmw_surface_flag_coherent = (1 << 3), }; /** |