[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] virtio-gpu: Call Virgl only in the main thread
From: |
Gerd Hoffmann |
Subject: |
Re: [PATCH] virtio-gpu: Call Virgl only in the main thread |
Date: |
Wed, 23 Jun 2021 14:47:20 +0200 |
On Thu, Jun 17, 2021 at 08:35:20PM +0900, Akihiko Odaki wrote:
> Virgl relies on callbacks provided by the OpenGL display, and such a
> display may rely on eglMakeCurrent. eglMakeCurrent will fail if the
> given context is current to some other thread. The easiest way to avoid
> such a failure is to call the OpenGL display in a single thread. As all
> operations except virtio_gpu_virgl_reset happens in the main thread,
> this change makes virtio_gpu_virgl_reset happen only in the main thread.
>
> Signed-off-by: Akihiko Odaki <akihiko.odaki@gmail.com>
Added to vga patch queue.
thanks,
Gerd