mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-07 21:03:10 +00:00
Fix gl draw command called without scanout
This happens during VM shutdown. Qemu should never send a draw command without scanout. This should be fixed in Qemu or in Virgl driver. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Uri Lublin <uril@redhat.com>
This commit is contained in:
parent
787e886d32
commit
6aafaef806
@ -905,7 +905,11 @@ void spice_qxl_gl_draw_async(QXLInstance *qxl,
|
||||
|
||||
spice_return_if_fail(qxl != NULL);
|
||||
qxl_state = qxl->st;
|
||||
spice_return_if_fail(qxl_state->scanout.drm_dma_buf_fd != -1);
|
||||
if (qxl_state->scanout.drm_dma_buf_fd == -1) {
|
||||
spice_warning("called spice_qxl_gl_draw_async without a buffer");
|
||||
red_qxl_async_complete(qxl, async_command_alloc(qxl_state, message, cookie));
|
||||
return;
|
||||
}
|
||||
spice_return_if_fail(qxl_state->gl_draw_async == NULL);
|
||||
|
||||
qxl_state->gl_draw_async = async_command_alloc(qxl_state, message, cookie);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user