All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] egl: EGL_MESA_image_dma_buf_export not supported / Failed to initialize EGL render node for SPICE GL
@ 2019-03-07 13:59 manish jaggi
  2019-03-07 16:25 ` Marc-André Lureau
  0 siblings, 1 reply; 4+ messages in thread
From: manish jaggi @ 2019-03-07 13:59 UTC (permalink / raw)
  To: qemu-devel; +Cc: Jayachandran Chandrasekharan Nair, mjaggi

Hi List,
I am trying to run qemu with spice gl=on with the below command line
and getting errors.

qemu-system-x86_64 -cdrom ubuntu-18.04.2-desktop-amd64.iso -hda
u1.qcow2 -enable-kvm -m 1G -cpu host -smp 8 -machine vmport=off -boot
order=dc -device virtio-vga,virgl=on -spice
gl=on,unix,addr=/home/mjaggi/spice.sock,password=1,disable-ticketing
-soundhw hda -device virtio-serial -chardev
spicevmc,id=vdagent,debug=0,name=vdagent -device
virtserialport,chardev=vdagent,name=com.redhat.spice.0

qemu-system-x86_64: egl: EGL_MESA_image_dma_buf_export not supported
qemu-system-x86_64: Failed to initialize EGL render node for SPICE GL

Qemu configuration
./configure --enable-sdl --with-sdlabi=2.0 --enable-opengl
--enable-virglrenderer --enable-system --enable-modules
--target-list=x86_64-softmmu --enable-kvm  --disable-werror

...
OpenGL support    yes
OpenGL dmabufs    yes

As per configure script

#include <epoxy/egl.h>
#ifndef EGL_MESA_image_dma_buf_export
# error mesa/epoxy lacks support for dmabufs (mesa 10.6+)
#endif
int main(void) { return 0; }
EOF
  if compile_prog "" "" ; then
    opengl_dmabuf=yes
  fi
fi

So if OpenGL dmabufs   is yes, should I be getting
EGL_MESA_image_dma_buf_export not supported error ?
What I could be missing here
Need help/guidance.

-Thanks
Manish

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] egl: EGL_MESA_image_dma_buf_export not supported / Failed to initialize EGL render node for SPICE GL
  2019-03-07 13:59 [Qemu-devel] egl: EGL_MESA_image_dma_buf_export not supported / Failed to initialize EGL render node for SPICE GL manish jaggi
@ 2019-03-07 16:25 ` Marc-André Lureau
  2019-03-08  6:45   ` manish jaggi
  0 siblings, 1 reply; 4+ messages in thread
From: Marc-André Lureau @ 2019-03-07 16:25 UTC (permalink / raw)
  To: manish jaggi; +Cc: QEMU, mjaggi, Jayachandran Chandrasekharan Nair

Hi

On Thu, Mar 7, 2019 at 3:00 PM manish jaggi <mjaggi.dev@gmail.com> wrote:
>
> Hi List,
> I am trying to run qemu with spice gl=on with the below command line
> and getting errors.
>
> qemu-system-x86_64 -cdrom ubuntu-18.04.2-desktop-amd64.iso -hda
> u1.qcow2 -enable-kvm -m 1G -cpu host -smp 8 -machine vmport=off -boot
> order=dc -device virtio-vga,virgl=on -spice
> gl=on,unix,addr=/home/mjaggi/spice.sock,password=1,disable-ticketing
> -soundhw hda -device virtio-serial -chardev
> spicevmc,id=vdagent,debug=0,name=vdagent -device
> virtserialport,chardev=vdagent,name=com.redhat.spice.0
>
> qemu-system-x86_64: egl: EGL_MESA_image_dma_buf_export not supported
> qemu-system-x86_64: Failed to initialize EGL render node for SPICE GL

It's a limitation of your graphics driver, it doesn't support the
required extensions.

Which GPU and driver do you have?

thanks

>
> Qemu configuration
> ./configure --enable-sdl --with-sdlabi=2.0 --enable-opengl
> --enable-virglrenderer --enable-system --enable-modules
> --target-list=x86_64-softmmu --enable-kvm  --disable-werror
>
> ...
> OpenGL support    yes
> OpenGL dmabufs    yes
>
> As per configure script
>
> #include <epoxy/egl.h>
> #ifndef EGL_MESA_image_dma_buf_export
> # error mesa/epoxy lacks support for dmabufs (mesa 10.6+)
> #endif
> int main(void) { return 0; }
> EOF
>   if compile_prog "" "" ; then
>     opengl_dmabuf=yes
>   fi
> fi
>
> So if OpenGL dmabufs   is yes, should I be getting
> EGL_MESA_image_dma_buf_export not supported error ?
> What I could be missing here
> Need help/guidance.
>
> -Thanks
> Manish
>


-- 
Marc-André Lureau

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] egl: EGL_MESA_image_dma_buf_export not supported / Failed to initialize EGL render node for SPICE GL
  2019-03-07 16:25 ` Marc-André Lureau
@ 2019-03-08  6:45   ` manish jaggi
  2019-03-11 17:33     ` Marc-André Lureau
  0 siblings, 1 reply; 4+ messages in thread
From: manish jaggi @ 2019-03-08  6:45 UTC (permalink / raw)
  To: Marc-André Lureau; +Cc: QEMU, mjaggi, Jayachandran Chandrasekharan Nair

On Thu, Mar 7, 2019 at 9:55 PM Marc-André Lureau
<marcandre.lureau@gmail.com> wrote:
>
> Hi
>
> On Thu, Mar 7, 2019 at 3:00 PM manish jaggi <mjaggi.dev@gmail.com> wrote:
> >
> > Hi List,
> > I am trying to run qemu with spice gl=on with the below command line
> > and getting errors.
> >
> > qemu-system-x86_64 -cdrom ubuntu-18.04.2-desktop-amd64.iso -hda
> > u1.qcow2 -enable-kvm -m 1G -cpu host -smp 8 -machine vmport=off -boot
> > order=dc -device virtio-vga,virgl=on -spice
> > gl=on,unix,addr=/home/mjaggi/spice.sock,password=1,disable-ticketing
> > -soundhw hda -device virtio-serial -chardev
> > spicevmc,id=vdagent,debug=0,name=vdagent -device
> > virtserialport,chardev=vdagent,name=com.redhat.spice.0
> >
> > qemu-system-x86_64: egl: EGL_MESA_image_dma_buf_export not supported
> > qemu-system-x86_64: Failed to initialize EGL render node for SPICE GL
>
> It's a limitation of your graphics driver, it doesn't support the
> required extensions.
>
> Which GPU and driver do you have?
>
AMD RX560, using mainline 5.0 kernel.
is  EGL_MESA_image_dma_buf_export  must for spice gl=on?

> thanks
>
> >
> > Qemu configuration
> > ./configure --enable-sdl --with-sdlabi=2.0 --enable-opengl
> > --enable-virglrenderer --enable-system --enable-modules
> > --target-list=x86_64-softmmu --enable-kvm  --disable-werror
> >
> > ...
> > OpenGL support    yes
> > OpenGL dmabufs    yes
> >
> > As per configure script
> >
> > #include <epoxy/egl.h>
> > #ifndef EGL_MESA_image_dma_buf_export
> > # error mesa/epoxy lacks support for dmabufs (mesa 10.6+)
> > #endif
> > int main(void) { return 0; }
> > EOF
> >   if compile_prog "" "" ; then
> >     opengl_dmabuf=yes
> >   fi
> > fi
> >
> > So if OpenGL dmabufs   is yes, should I be getting
> > EGL_MESA_image_dma_buf_export not supported error ?
> > What I could be missing here
> > Need help/guidance.
> >
> > -Thanks
> > Manish
> >
>
>
> --
> Marc-André Lureau

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] egl: EGL_MESA_image_dma_buf_export not supported / Failed to initialize EGL render node for SPICE GL
  2019-03-08  6:45   ` manish jaggi
@ 2019-03-11 17:33     ` Marc-André Lureau
  0 siblings, 0 replies; 4+ messages in thread
From: Marc-André Lureau @ 2019-03-11 17:33 UTC (permalink / raw)
  To: manish jaggi; +Cc: QEMU, mjaggi, Jayachandran Chandrasekharan Nair

Hi

On Fri, Mar 8, 2019 at 7:45 AM manish jaggi <mjaggi.dev@gmail.com> wrote:
>
> On Thu, Mar 7, 2019 at 9:55 PM Marc-André Lureau
> <marcandre.lureau@gmail.com> wrote:
> >
> > Hi
> >
> > On Thu, Mar 7, 2019 at 3:00 PM manish jaggi <mjaggi.dev@gmail.com> wrote:
> > >
> > > Hi List,
> > > I am trying to run qemu with spice gl=on with the below command line
> > > and getting errors.
> > >
> > > qemu-system-x86_64 -cdrom ubuntu-18.04.2-desktop-amd64.iso -hda
> > > u1.qcow2 -enable-kvm -m 1G -cpu host -smp 8 -machine vmport=off -boot
> > > order=dc -device virtio-vga,virgl=on -spice
> > > gl=on,unix,addr=/home/mjaggi/spice.sock,password=1,disable-ticketing
> > > -soundhw hda -device virtio-serial -chardev
> > > spicevmc,id=vdagent,debug=0,name=vdagent -device
> > > virtserialport,chardev=vdagent,name=com.redhat.spice.0
> > >
> > > qemu-system-x86_64: egl: EGL_MESA_image_dma_buf_export not supported
> > > qemu-system-x86_64: Failed to initialize EGL render node for SPICE GL
> >
> > It's a limitation of your graphics driver, it doesn't support the
> > required extensions.
> >
> > Which GPU and driver do you have?
> >
> AMD RX560, using mainline 5.0 kernel.
> is  EGL_MESA_image_dma_buf_export  must for spice gl=on?

Yes, you may try with spice gl=off and with -display egl-headless.
That should give accelerated host rendering, but with spice 2d
drawings copy.

>
> > thanks
> >
> > >
> > > Qemu configuration
> > > ./configure --enable-sdl --with-sdlabi=2.0 --enable-opengl
> > > --enable-virglrenderer --enable-system --enable-modules
> > > --target-list=x86_64-softmmu --enable-kvm  --disable-werror
> > >
> > > ...
> > > OpenGL support    yes
> > > OpenGL dmabufs    yes
> > >
> > > As per configure script
> > >
> > > #include <epoxy/egl.h>
> > > #ifndef EGL_MESA_image_dma_buf_export
> > > # error mesa/epoxy lacks support for dmabufs (mesa 10.6+)
> > > #endif
> > > int main(void) { return 0; }
> > > EOF
> > >   if compile_prog "" "" ; then
> > >     opengl_dmabuf=yes
> > >   fi
> > > fi
> > >
> > > So if OpenGL dmabufs   is yes, should I be getting
> > > EGL_MESA_image_dma_buf_export not supported error ?
> > > What I could be missing here
> > > Need help/guidance.
> > >
> > > -Thanks
> > > Manish
> > >
> >
> >
> > --
> > Marc-André Lureau



-- 
Marc-André Lureau

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-03-11 17:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-07 13:59 [Qemu-devel] egl: EGL_MESA_image_dma_buf_export not supported / Failed to initialize EGL render node for SPICE GL manish jaggi
2019-03-07 16:25 ` Marc-André Lureau
2019-03-08  6:45   ` manish jaggi
2019-03-11 17:33     ` Marc-André Lureau

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.