Message ID | 85078eacaa4ba2c83f0ff25387a664dcccb65308.1542294676.git.eskultet@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Introduce 'rendernode' option for egl-headless display type | expand |
On 11/15/18 9:15 AM, Erik Skultety wrote: > Unlike SPICE, egl-headless doesn't offer a way of specifying the DRM > node used for OpenGL, hence QEMU always selecting the first one that is > available. Thus, add rendernode option to QAPI. > > Signed-off-by: Erik Skultety <eskultet@redhat.com> > --- > qapi/ui.json | 16 +++++++++++++++- > 1 file changed, 15 insertions(+), 1 deletion(-) > > diff --git a/qapi/ui.json b/qapi/ui.json > index bf9e157d5a..7ecc6eb67e 100644 > --- a/qapi/ui.json > +++ b/qapi/ui.json > @@ -1037,6 +1037,19 @@ > 'data' : { '*grab-on-hover' : 'bool', > '*zoom-to-fit' : 'bool' } } > > +## > +# @DisplayEGLHeadless: > +# > +# EGL headless display options. > +# > +# @rendernode: Which DRM render node should be used. > +# > +# Since: 3.2 Either 3.1 or 4.0, depending on whether this is okay this late after soft freeze. Worth mentioning that rendernode defaults to the first available node? > +# > +## > +{ 'struct' : 'DisplayEGLHeadless', > + 'data' : { '*rendernode' : 'str' } } > + > ## > # @DisplayGLMode: > # > @@ -1086,4 +1099,5 @@ > '*window-close' : 'bool', > '*gl' : 'DisplayGLMode' }, > 'discriminator' : 'type', > - 'data' : { 'gtk' : 'DisplayGTK' } } > + 'data' : { 'gtk' : 'DisplayGTK', > + 'egl-headless' : 'DisplayEGLHeadless'} } >
diff --git a/qapi/ui.json b/qapi/ui.json index bf9e157d5a..7ecc6eb67e 100644 --- a/qapi/ui.json +++ b/qapi/ui.json @@ -1037,6 +1037,19 @@ 'data' : { '*grab-on-hover' : 'bool', '*zoom-to-fit' : 'bool' } } +## +# @DisplayEGLHeadless: +# +# EGL headless display options. +# +# @rendernode: Which DRM render node should be used. +# +# Since: 3.2 +# +## +{ 'struct' : 'DisplayEGLHeadless', + 'data' : { '*rendernode' : 'str' } } + ## # @DisplayGLMode: # @@ -1086,4 +1099,5 @@ '*window-close' : 'bool', '*gl' : 'DisplayGLMode' }, 'discriminator' : 'type', - 'data' : { 'gtk' : 'DisplayGTK' } } + 'data' : { 'gtk' : 'DisplayGTK', + 'egl-headless' : 'DisplayEGLHeadless'} }
Unlike SPICE, egl-headless doesn't offer a way of specifying the DRM node used for OpenGL, hence QEMU always selecting the first one that is available. Thus, add rendernode option to QAPI. Signed-off-by: Erik Skultety <eskultet@redhat.com> --- qapi/ui.json | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-)