|
|
ae23c9 |
From f1d966bcc5da6bea34ba2052d8645add9db7e057 Mon Sep 17 00:00:00 2001
|
|
|
ae23c9 |
From: Gerd Hoffmann <kraxel@redhat.com>
|
|
|
ae23c9 |
Date: Fri, 14 Dec 2018 08:26:40 +0000
|
|
|
ae23c9 |
Subject: [PATCH 3/5] qapi: Add "rendernode" display option for egl-headless
|
|
|
ae23c9 |
MIME-Version: 1.0
|
|
|
ae23c9 |
Content-Type: text/plain; charset=UTF-8
|
|
|
ae23c9 |
Content-Transfer-Encoding: 8bit
|
|
|
ae23c9 |
|
|
|
ae23c9 |
RH-Author: Gerd Hoffmann <kraxel@redhat.com>
|
|
|
ae23c9 |
Message-id: <20181214082642.21878-4-kraxel@redhat.com>
|
|
|
ae23c9 |
Patchwork-id: 83504
|
|
|
ae23c9 |
O-Subject: [RHEL8/rhel qemu-kvm PATCH 3/5] qapi: Add "rendernode" display option for egl-headless
|
|
|
ae23c9 |
Bugzilla: 1652871
|
|
|
ae23c9 |
RH-Acked-by: Philippe Mathieu-Daudé <philmd@redhat.com>
|
|
|
ae23c9 |
RH-Acked-by: Daniel P. Berrange <berrange@redhat.com>
|
|
|
ae23c9 |
RH-Acked-by: Erik Skultety <eskultet@redhat.com>
|
|
|
ae23c9 |
|
|
|
ae23c9 |
From: Erik Skultety <eskultet@redhat.com>
|
|
|
ae23c9 |
|
|
|
ae23c9 |
Unlike SPICE, egl-headless doesn't offer a way of specifying the DRM
|
|
|
ae23c9 |
node used for OpenGL, hence QEMU always selecting the first one that is
|
|
|
ae23c9 |
available. Thus, add the 'rendernode' option for egl-headless to QAPI.
|
|
|
ae23c9 |
|
|
|
ae23c9 |
Signed-off-by: Erik Skultety <eskultet@redhat.com>
|
|
|
ae23c9 |
Message-id: 7658e15eca72d520e7a5fb1c2e724702d83d4f7f.1542362949.git.eskultet@redhat.com
|
|
|
ae23c9 |
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
|
|
|
ae23c9 |
(cherry picked from commit d4dc4ab133b5d7b066aa14036f297ed20398dd32)
|
|
|
ae23c9 |
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
|
|
|
ae23c9 |
|
|
|
ae23c9 |
Conflicts:
|
|
|
ae23c9 |
qapi/ui.json
|
|
|
ae23c9 |
|
|
|
ae23c9 |
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
|
|
|
ae23c9 |
---
|
|
|
ae23c9 |
qapi/ui.json | 16 +++++++++++++++-
|
|
|
ae23c9 |
1 file changed, 15 insertions(+), 1 deletion(-)
|
|
|
ae23c9 |
|
|
|
ae23c9 |
diff --git a/qapi/ui.json b/qapi/ui.json
|
|
|
ae23c9 |
index 5d01ad4..3e8aeee 100644
|
|
|
ae23c9 |
--- a/qapi/ui.json
|
|
|
ae23c9 |
+++ b/qapi/ui.json
|
|
|
ae23c9 |
@@ -1020,6 +1020,20 @@
|
|
|
ae23c9 |
'data' : { '*grab-on-hover' : 'bool' } }
|
|
|
ae23c9 |
|
|
|
ae23c9 |
##
|
|
|
ae23c9 |
+# @DisplayEGLHeadless:
|
|
|
ae23c9 |
+#
|
|
|
ae23c9 |
+# EGL headless display options.
|
|
|
ae23c9 |
+#
|
|
|
ae23c9 |
+# @rendernode: Which DRM render node should be used. Default is the first
|
|
|
ae23c9 |
+# available node on the host.
|
|
|
ae23c9 |
+#
|
|
|
ae23c9 |
+# Since: 3.1
|
|
|
ae23c9 |
+#
|
|
|
ae23c9 |
+##
|
|
|
ae23c9 |
+{ 'struct' : 'DisplayEGLHeadless',
|
|
|
ae23c9 |
+ 'data' : { '*rendernode' : 'str' } }
|
|
|
ae23c9 |
+
|
|
|
ae23c9 |
+##
|
|
|
ae23c9 |
# @DisplayType:
|
|
|
ae23c9 |
#
|
|
|
ae23c9 |
# Display (user interface) type.
|
|
|
ae23c9 |
@@ -1054,6 +1068,6 @@
|
|
|
ae23c9 |
'none' : 'DisplayNoOpts',
|
|
|
ae23c9 |
'gtk' : 'DisplayGTK',
|
|
|
ae23c9 |
'sdl' : 'DisplayNoOpts',
|
|
|
ae23c9 |
- 'egl-headless' : 'DisplayNoOpts',
|
|
|
ae23c9 |
+ 'egl-headless' : 'DisplayEGLHeadless',
|
|
|
ae23c9 |
'curses' : 'DisplayNoOpts',
|
|
|
ae23c9 |
'cocoa' : 'DisplayNoOpts' } }
|
|
|
ae23c9 |
--
|
|
|
ae23c9 |
1.8.3.1
|
|
|
ae23c9 |
|