On Fri, Jul 02, 2021 at 04:32:21PM +0400, marcandre.lur...@redhat.com wrote: > From: Marc-André Lureau <marcandre.lur...@redhat.com> > > Before commit 49afbca3b00e8e517d54964229a794b51768deaf ("virtio-gpu: drop > use_virgl_renderer"), use_virgl_renderer was preventing calling GL > functions from non-GL context threads. The innocuously looking > > g->parent_obj.use_virgl_renderer = false; > > was set the first time virtio_gpu_gl_reset() was called, during > pc_machine_reset() in the main thread. Further virtio_gpu_gl_reset() > calls in IO threads, without associated GL context, were thus skipping > GL calls and avoided warnings or crashes (see also > https://gitlab.freedesktop.org/virgl/virglrenderer/-/issues/226).
Conflicts with patch by Akihiko Odaki fixing the same thing or a related issue: virtio-gpu: Call Virgl only in the main thread https://patchwork.ozlabs.org/project/qemu-devel/patch/20210617113520.25973-1-akihiko.od...@gmail.com/ Can you have a look please and suggest how to handle this? thanks, Gerd