yeahuh / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone

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

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