Blame SOURCES/kvm-qapi-Add-rendernode-display-option-for-egl-headless.patch

7711c0
From c6a95857cb076ed085b2620009da4c0e108cd8ed Mon Sep 17 00:00:00 2001
7711c0
From: Gerd Hoffmann <kraxel@redhat.com>
7711c0
Date: Tue, 5 Mar 2019 08:26:14 +0100
7711c0
Subject: [PATCH 6/9] qapi: Add "rendernode" display option for egl-headless
7711c0
MIME-Version: 1.0
7711c0
Content-Type: text/plain; charset=UTF-8
7711c0
Content-Transfer-Encoding: 8bit
7711c0
7711c0
RH-Author: Gerd Hoffmann <kraxel@redhat.com>
7711c0
Message-id: <20190305082617.14614-2-kraxel@redhat.com>
7711c0
Patchwork-id: 84796
7711c0
O-Subject: [RHEL-7.7 qemu-kvm-rhev PATCH 1/4] qapi: Add "rendernode" display option for egl-headless
7711c0
Bugzilla: 1648236
7711c0
RH-Acked-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
7711c0
RH-Acked-by: Marc-André Lureau <marcandre.lureau@redhat.com>
7711c0
RH-Acked-by: John Snow <jsnow@redhat.com>
7711c0
RH-Acked-by: Erik Skultety <eskultet@redhat.com>
7711c0
7711c0
From: Erik Skultety <eskultet@redhat.com>
7711c0
7711c0
Unlike SPICE, egl-headless doesn't offer a way of specifying the DRM
7711c0
node used for OpenGL, hence QEMU always selecting the first one that is
7711c0
available. Thus, add the 'rendernode' option for egl-headless to QAPI.
7711c0
7711c0
Signed-off-by: Erik Skultety <eskultet@redhat.com>
7711c0
Message-id: 7658e15eca72d520e7a5fb1c2e724702d83d4f7f.1542362949.git.eskultet@redhat.com
7711c0
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
7711c0
(cherry picked from commit d4dc4ab133b5d7b066aa14036f297ed20398dd32)
7711c0
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
7711c0
---
7711c0
 qapi/ui.json | 16 +++++++++++++++-
7711c0
 1 file changed, 15 insertions(+), 1 deletion(-)
7711c0
7711c0
diff --git a/qapi/ui.json b/qapi/ui.json
7711c0
index 5d01ad4..3e8aeee 100644
7711c0
--- a/qapi/ui.json
7711c0
+++ b/qapi/ui.json
7711c0
@@ -1020,6 +1020,20 @@
7711c0
   'data'    : { '*grab-on-hover' : 'bool' } }
7711c0
 
7711c0
 ##
7711c0
+# @DisplayEGLHeadless:
7711c0
+#
7711c0
+# EGL headless display options.
7711c0
+#
7711c0
+# @rendernode: Which DRM render node should be used. Default is the first
7711c0
+#              available node on the host.
7711c0
+#
7711c0
+# Since: 3.1
7711c0
+#
7711c0
+##
7711c0
+{ 'struct'  : 'DisplayEGLHeadless',
7711c0
+  'data'    : { '*rendernode' : 'str' } }
7711c0
+
7711c0
+##
7711c0
 # @DisplayType:
7711c0
 #
7711c0
 # Display (user interface) type.
7711c0
@@ -1054,6 +1068,6 @@
7711c0
                 'none'           : 'DisplayNoOpts',
7711c0
                 'gtk'            : 'DisplayGTK',
7711c0
                 'sdl'            : 'DisplayNoOpts',
7711c0
-                'egl-headless'   : 'DisplayNoOpts',
7711c0
+                'egl-headless'   : 'DisplayEGLHeadless',
7711c0
                 'curses'         : 'DisplayNoOpts',
7711c0
                 'cocoa'          : 'DisplayNoOpts' } }
7711c0
-- 
7711c0
1.8.3.1
7711c0