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.
Showing the changes to include/uapi (1 of 4 files). Show all
Unified · Split
| @@ -891,11 +891,13 @@ struct drm_vmw_shader_arg { · 890 unmodified lines | ||
| 891 | 891 | * surface. |
| 892 | 892 | * @drm_vmw_surface_flag_create_buffer: Create a backup buffer if none is |
| 893 | 893 | * given. |
| 894 | + * @drm_vmw_surface_flag_coherent: Back surface with coherent memory. | |
| 894 | 895 | */ |
| 895 | 896 | enum drm_vmw_surface_flags { |
| 896 | 897 | drm_vmw_surface_flag_shareable = (1 << 0), |
| 897 | 898 | 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), | |
| 899 | 901 | }; |
| 900 | 902 | |
| 901 | 903 | /** |