diff options
Diffstat (limited to 'drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c')
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c b/drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c index 4be47d84077f..37a81925b158 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c | |||
@@ -179,6 +179,11 @@ static void vmw_move_notify(struct ttm_buffer_object *bo, | |||
179 | vmw_dmabuf_gmr_unbind(bo); | 179 | vmw_dmabuf_gmr_unbind(bo); |
180 | } | 180 | } |
181 | 181 | ||
182 | static void vmw_swap_notify(struct ttm_buffer_object *bo) | ||
183 | { | ||
184 | vmw_dmabuf_gmr_unbind(bo); | ||
185 | } | ||
186 | |||
182 | /** | 187 | /** |
183 | * FIXME: We're using the old vmware polling method to sync. | 188 | * FIXME: We're using the old vmware polling method to sync. |
184 | * Do this with fences instead. | 189 | * Do this with fences instead. |
@@ -233,5 +238,6 @@ struct ttm_bo_driver vmw_bo_driver = { | |||
233 | .sync_obj_flush = vmw_sync_obj_flush, | 238 | .sync_obj_flush = vmw_sync_obj_flush, |
234 | .sync_obj_unref = vmw_sync_obj_unref, | 239 | .sync_obj_unref = vmw_sync_obj_unref, |
235 | .sync_obj_ref = vmw_sync_obj_ref, | 240 | .sync_obj_ref = vmw_sync_obj_ref, |
236 | .move_notify = vmw_move_notify | 241 | .move_notify = vmw_move_notify, |
242 | .swap_notify = vmw_swap_notify | ||
237 | }; | 243 | }; |