qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: virtio-gpu: Get FD for texture


From: Antonio Caggiano
Subject: Re: virtio-gpu: Get FD for texture
Date: Wed, 29 Sep 2021 15:54:59 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0

I am starting to believe that the error is due to the fact that no EGLContext is active on the current thread (the one running the Vulkan application).

Trying to call eglMakeCurrent within this thread gives me an EGL_BAD_ACCESS error as the EGLContext associated to the GL texture belongs to a different thread.

Does that make sense?

Kind regards,
Antonio Caggiano

On 27/09/21 12:21, Antonio Caggiano wrote:
Hi,

I am trying to support a Vulkan application in the guest (GTKGlArea+VirGL+venus) which needs to import a GL texture from a GL context.

Before doing that, I need to get a FD for that texture, therefore I tried with calling egl-helpers.h:egl_get_fd_for_texture() but I get an epoxy error:

 > No provider of eglCreateImageKHR found.  Requires one of:

 >   EGL_KHR_image

 >   EGL_KHR_image_base

This is a bit weird to me as I am sure I am running QEMU with iris and according to eglinfo both of these extensions are available.

Do you think my approach makes sense or I am doing something wrong somewhere?


Kind regards,
Antonio Caggiano



reply via email to

[Prev in Thread] Current Thread [Next in Thread]