[virglrenderer-devel] virgl_renderer_resource_import_eglimage

Chia-I Wu olvaffe at gmail.com
Wed Aug 19 19:01:52 UTC 2020


On Wed, Aug 19, 2020 at 1:42 AM Vasyl Vavrychuk <vvavrychuk at gmail.com> wrote:
>
> Hi,
>
> Commit message for commit that adds "virgl_renderer_resource_import_eglimage" says this function supposed to be used from CrosVM. But I have checked CrosVM source and did not find virgl_renderer_resource_import_eglimage usage. Same for QEMU.
>
> As I understand virgl_renderer_resource_import_eglimage is essential to achieve zero copy. So, why QEMU/CrosVM do not use it. Are they using some other methods to achieve zero copy?

I think crosvm moved from import model to export model a while ago.
It probably uses virgl_renderer_export_query now (didn't verify).

virglrenderer and qemu are in the same process and share GL contexts.
qemu can sample the scanouts directly as GL textures.

>
> Kind regards,
> Vasyl
> _______________________________________________
> virglrenderer-devel mailing list
> virglrenderer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/virglrenderer-devel


More information about the virglrenderer-devel mailing list