mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
egl-headless: switch over to new display registry
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-id: 20180301100547.18962-6-kraxel@redhat.com
This commit is contained in:
parent
b0766612d1
commit
16ab0a74e4
3 changed files with 19 additions and 16 deletions
|
@ -164,7 +164,12 @@ static const DisplayChangeListenerOps egl_ops = {
|
|||
.dpy_gl_update = egl_scanout_flush,
|
||||
};
|
||||
|
||||
void egl_headless_init(DisplayOptions *opts)
|
||||
static void early_egl_headless_init(DisplayOptions *opts)
|
||||
{
|
||||
display_opengl = 1;
|
||||
}
|
||||
|
||||
static void egl_headless_init(DisplayState *ds, DisplayOptions *opts)
|
||||
{
|
||||
QemuConsole *con;
|
||||
egl_dpy *edpy;
|
||||
|
@ -188,3 +193,16 @@ void egl_headless_init(DisplayOptions *opts)
|
|||
register_displaychangelistener(&edpy->dcl);
|
||||
}
|
||||
}
|
||||
|
||||
static QemuDisplay qemu_display_egl = {
|
||||
.type = DISPLAY_TYPE_EGL_HEADLESS,
|
||||
.early_init = early_egl_headless_init,
|
||||
.init = egl_headless_init,
|
||||
};
|
||||
|
||||
static void register_egl(void)
|
||||
{
|
||||
qemu_display_register(&qemu_display_egl);
|
||||
}
|
||||
|
||||
type_init(register_egl);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue