mirror of https://gitee.com/openkylin/qemu.git
qapi: Add "rendernode" display option for egl-headless
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 the 'rendernode' option for egl-headless to QAPI. Signed-off-by: Erik Skultety <eskultet@redhat.com> Message-id: 7658e15eca72d520e7a5fb1c2e724702d83d4f7f.1542362949.git.eskultet@redhat.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
cb968d275c
commit
d4dc4ab133
17
qapi/ui.json
17
qapi/ui.json
|
@ -1037,6 +1037,20 @@
|
||||||
'data' : { '*grab-on-hover' : 'bool',
|
'data' : { '*grab-on-hover' : 'bool',
|
||||||
'*zoom-to-fit' : 'bool' } }
|
'*zoom-to-fit' : 'bool' } }
|
||||||
|
|
||||||
|
##
|
||||||
|
# @DisplayEGLHeadless:
|
||||||
|
#
|
||||||
|
# EGL headless display options.
|
||||||
|
#
|
||||||
|
# @rendernode: Which DRM render node should be used. Default is the first
|
||||||
|
# available node on the host.
|
||||||
|
#
|
||||||
|
# Since: 3.1
|
||||||
|
#
|
||||||
|
##
|
||||||
|
{ 'struct' : 'DisplayEGLHeadless',
|
||||||
|
'data' : { '*rendernode' : 'str' } }
|
||||||
|
|
||||||
##
|
##
|
||||||
# @DisplayGLMode:
|
# @DisplayGLMode:
|
||||||
#
|
#
|
||||||
|
@ -1086,4 +1100,5 @@
|
||||||
'*window-close' : 'bool',
|
'*window-close' : 'bool',
|
||||||
'*gl' : 'DisplayGLMode' },
|
'*gl' : 'DisplayGLMode' },
|
||||||
'discriminator' : 'type',
|
'discriminator' : 'type',
|
||||||
'data' : { 'gtk' : 'DisplayGTK' } }
|
'data' : { 'gtk' : 'DisplayGTK',
|
||||||
|
'egl-headless' : 'DisplayEGLHeadless'} }
|
||||||
|
|
Loading…
Reference in New Issue