Bug 95254

Summary: Initialize egl only when needed
Product: Spice Reporter: Pavel Grunt <pavelgrunt>
Component: spice-gtkAssignee: Spice Bug List <spice-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: low    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Pavel Grunt 2016-05-04 07:50:14 UTC
Currently egl is always initialized, even when the guest is not using Virgl.
It would be nice to initialize only when it is needed. It would silence some runtime warnings (can be seen when running spice-gtk in a vm):

libEGL warning: DRI2: failed to authenticate
(remote-viewer:3665): GSpice-CRITICAL **: egl init failed: cannot create EGL context

Additional info:
How to setup a virgl guest - http://www.spice-space.org/spice-user-manual.html#_gl_acceleration_virgl

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.