Skip to content
Snippets Groups Projects
  • Marc-André Lureau's avatar
    3cddb8b9
    display/ui: add a callback to indicate GL state is flushed · 3cddb8b9
    Marc-André Lureau authored
    
    Displaying rendered resources requires blocking qemu GPU to avoid extra
    framebuffer copies. For an external display, via Spice currently, there
    is a callback to block/unblock the rendering in the same thread.
    
    But with the vhost-user-gpu backend, the qemu process doesn't handle
    the rendering itself, and the blocking callback isn't effective.
    Instead, the backend must be notified when the display code is done.
    
    Fix this by adding a new GraphicHwOps callback to indicate the GL state
    is flushed, and we are done manipulating the shared GL resources. Call
    it from gtk and spice display.
    
    Signed-off-by: default avatarMarc-André Lureau <marcandre.lureau@redhat.com>
    Message-Id: <20210204105232.834642-19-marcandre.lureau@redhat.com>
    Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
    3cddb8b9
    History
    display/ui: add a callback to indicate GL state is flushed
    Marc-André Lureau authored
    
    Displaying rendered resources requires blocking qemu GPU to avoid extra
    framebuffer copies. For an external display, via Spice currently, there
    is a callback to block/unblock the rendering in the same thread.
    
    But with the vhost-user-gpu backend, the qemu process doesn't handle
    the rendering itself, and the blocking callback isn't effective.
    Instead, the backend must be notified when the display code is done.
    
    Fix this by adding a new GraphicHwOps callback to indicate the GL state
    is flushed, and we are done manipulating the shared GL resources. Call
    it from gtk and spice display.
    
    Signed-off-by: default avatarMarc-André Lureau <marcandre.lureau@redhat.com>
    Message-Id: <20210204105232.834642-19-marcandre.lureau@redhat.com>
    Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>