[Mesa-dev] How to enable virgl?

Christophe de Dinechin dinechin at redhat.com
Tue Feb 28 10:55:46 UTC 2017


Newbie question…

I’ve been investigating a regression in Fedora 25 between mesa-dri-drivers versions 12.0.3 and 13.0.3 (https://bugzilla.redhat.com/show_bug.cgi?id=1426549).

The output with the Fedora version of Mesa is:

GL_RENDERER   = Gallium 0.4 on virgl

So virgl is enabled and working in this VM.

When I build Mesa from sources, and configure it with “—with-galium-drivers=virtgl”, I get this from glxgears -info:

GL_RENDERER   = Gallium 0.4 on llvmpipe (LLVM 3.5, 128 bits)
GL_VERSION    = 3.0 Mesa 17.1.0-devel (git-ccb70d6)
GL_VENDOR     = VMware, Inc.

I also built 13.0.3, I had to add —with-egl-platforms=“drm”, but the renderer is still wrong.

Where can I get information about why Mesa selects this or that renderer? I tried enabling LIBGL_DEBUG, but I don’t get much more information. I’m in the process of adding a few log entries in loader.c to understand what’s going on, but if there is a better way, I’d be happy to use that instead.


Thanks
Christophe de Dinechin



More information about the mesa-dev mailing list