[RFC PATCH 3/3] drm/virtio: drm_gem_plane_helper_prepare_fb for obj synchronization

Dmitry Osipenko dmitry.osipenko at collabora.com
Wed Oct 4 23:31:36 UTC 2023


On 9/6/23 00:08, Kim, Dongwon wrote:
> 
> I don't believe the guest will start rendering on the same FB while host is
> consuming it because the virtio-gpu driver on the guest won't release
> the FB for the next
> frame before it gets the virtio resp for the resource flush command and
> the host (QEMU)
> will hold the response until the rendering is finished.

The virgl_cmd_set_scanout() shouldn't hold the response if you're using
SDL because frame swapping won't be vsynced. It may hold the response
implicitly if you're using GTK for the Qemu's display. Are you using SDL?

-- 
Best regards,
Dmitry



More information about the dri-devel mailing list