@@ -314,25 +314,6 @@ virtio_gpu_user_framebuffer_create(struct drm_device *dev,
314
314
return & virtio_gpu_fb -> base ;
315
315
}
316
316
317
- static void vgdev_atomic_commit_tail (struct drm_atomic_state * state )
318
- {
319
- struct drm_device * dev = state -> dev ;
320
-
321
- drm_atomic_helper_commit_modeset_disables (dev , state );
322
- drm_atomic_helper_commit_modeset_enables (dev , state );
323
- drm_atomic_helper_commit_planes (dev , state , 0 );
324
-
325
- drm_atomic_helper_fake_vblank (state );
326
- drm_atomic_helper_commit_hw_done (state );
327
-
328
- drm_atomic_helper_wait_for_vblanks (dev , state );
329
- drm_atomic_helper_cleanup_planes (dev , state );
330
- }
331
-
332
- static const struct drm_mode_config_helper_funcs virtio_mode_config_helpers = {
333
- .atomic_commit_tail = vgdev_atomic_commit_tail ,
334
- };
335
-
336
317
static const struct drm_mode_config_funcs virtio_gpu_mode_funcs = {
337
318
.fb_create = virtio_gpu_user_framebuffer_create ,
338
319
.atomic_check = drm_atomic_helper_check ,
@@ -346,7 +327,6 @@ void virtio_gpu_modeset_init(struct virtio_gpu_device *vgdev)
346
327
drm_mode_config_init (vgdev -> ddev );
347
328
vgdev -> ddev -> mode_config .quirk_addfb_prefer_host_byte_order = true;
348
329
vgdev -> ddev -> mode_config .funcs = & virtio_gpu_mode_funcs ;
349
- vgdev -> ddev -> mode_config .helper_private = & virtio_mode_config_helpers ;
350
330
351
331
/* modes will be validated against the framebuffer size */
352
332
vgdev -> ddev -> mode_config .min_width = XRES_MIN ;
0 commit comments