eaa6ce4fe2
CVE-2017-5525: audio: memory leakage in ac97 (bz #1414110) CVE-2017-5526: audio: memory leakage in es1370 (bz #1414210) CVE-2016-10155 watchdog: memory leakage in i6300esb (bz #1415200) CVE-2017-5552: virtio-gpu-3d: memory leakage (bz #1415283) CVE-2017-5578: virtio-gpu: memory leakage (bz #1415797) CVE-2017-5667: sd: sdhci OOB access during multi block transfer (bz #1417560) CVE-2017-5856: scsi: megasas: memory leakage (bz #1418344) CVE-2017-5857: virtio-gpu-3d: host memory leakage in virgl_cmd_resource_unref (bz #1418383) CVE-2017-5898: usb: integer overflow in emulated_apdu_from_guest (bz #1419700) CVE-2017-5987: sd: infinite loop issue in multi block transfers (bz #1422001) CVE-2017-6058: vmxnet3: OOB access when doing vlan stripping (bz #1423359) CVE-2017-6505: usb: an infinite loop issue in ohci_service_ed_list (bz #1429434) CVE-2017-2615: cirrus: oob access while doing bitblt copy backward (bz #1418206) CVE-2017-2620: cirrus: potential arbitrary code execution (bz #1425419) Fix spice GL with new mesa/libglvnd (bz #1431905)
34 lines
1.2 KiB
Diff
34 lines
1.2 KiB
Diff
From: Frediano Ziglio <fziglio@redhat.com>
|
|
Date: Mon, 20 Feb 2017 09:50:55 +0000
|
|
Subject: [PATCH] egl-helpers: Support newer MESA versions
|
|
|
|
According to
|
|
https://www.khronos.org/registry/EGL/extensions/MESA/EGL_MESA_platform_gbm.txt
|
|
if MESA_platform_gbm is supported display should be initialized
|
|
from a GBM handle using eglGetPlatformDisplayEXT.
|
|
|
|
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
|
|
Message-id: 20170220095055.4234-1-fziglio@redhat.com
|
|
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
|
|
(cherry picked from commit 0ea1523fb6703aa0dcd65e66b59e96fec028e60a)
|
|
---
|
|
ui/egl-helpers.c | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
|
|
diff --git a/ui/egl-helpers.c b/ui/egl-helpers.c
|
|
index 79cee05..d8d57c4 100644
|
|
--- a/ui/egl-helpers.c
|
|
+++ b/ui/egl-helpers.c
|
|
@@ -203,7 +203,11 @@ int qemu_egl_init_dpy(EGLNativeDisplayType dpy, bool gles, bool debug)
|
|
}
|
|
|
|
egl_dbg("eglGetDisplay (dpy %p) ...\n", dpy);
|
|
+#ifdef EGL_MESA_platform_gbm
|
|
+ qemu_egl_display = eglGetPlatformDisplayEXT(EGL_PLATFORM_GBM_MESA, dpy, NULL);
|
|
+#else
|
|
qemu_egl_display = eglGetDisplay(dpy);
|
|
+#endif
|
|
if (qemu_egl_display == EGL_NO_DISPLAY) {
|
|
error_report("egl: eglGetDisplay failed");
|
|
return -1;
|