Blame SOURCES/0001-renderer-x11-Enable-GPU-memory-purge-error-extension.patch

e3f29c
From 4b2d21ff03ed389138fcb9bca778aec02bafcadb Mon Sep 17 00:00:00 2001
e3f29c
From: =?UTF-8?q?Jonas=20=C3=85dahl?= <jadahl@gmail.com>
e3f29c
Date: Fri, 2 Feb 2018 14:34:50 +0800
e3f29c
Subject: [PATCH] renderer/x11: Enable GPU memory purge error extension if
e3f29c
 available
e3f29c
e3f29c
This was done by the clutter X11 backend before prior to introducing
e3f29c
MetaRenderer, but during that work, enabling of said extension was lost.
e3f29c
Let's turn it on again.
e3f29c
e3f29c
https://bugzilla.gnome.org/show_bug.cgi?id=739178
e3f29c
---
e3f29c
 src/backends/x11/meta-backend-x11.c  | 2 --
e3f29c
 src/backends/x11/meta-renderer-x11.c | 1 +
e3f29c
 2 files changed, 1 insertion(+), 2 deletions(-)
e3f29c
e3f29c
diff --git a/src/backends/x11/meta-backend-x11.c b/src/backends/x11/meta-backend-x11.c
e3f29c
index 233532435..c7602cc70 100644
e3f29c
--- a/src/backends/x11/meta-backend-x11.c
e3f29c
+++ b/src/backends/x11/meta-backend-x11.c
e3f29c
@@ -705,8 +705,6 @@ meta_backend_x11_init (MetaBackendX11 *x11)
e3f29c
    */
e3f29c
   XInitThreads();
e3f29c
 
e3f29c
-  clutter_x11_request_reset_on_video_memory_purge ();
e3f29c
-
e3f29c
   /* We do X11 event retrieval ourselves */
e3f29c
   clutter_x11_disable_event_retrieval ();
e3f29c
 }
e3f29c
diff --git a/src/backends/x11/meta-renderer-x11.c b/src/backends/x11/meta-renderer-x11.c
e3f29c
index 90924e038..003211d85 100644
e3f29c
--- a/src/backends/x11/meta-renderer-x11.c
e3f29c
+++ b/src/backends/x11/meta-renderer-x11.c
e3f29c
@@ -73,6 +73,7 @@ meta_renderer_x11_create_cogl_renderer (MetaRenderer *renderer)
e3f29c
   cogl_renderer = cogl_renderer_new ();
e3f29c
   cogl_renderer_set_custom_winsys (cogl_renderer, get_x11_cogl_winsys_vtable);
e3f29c
   cogl_xlib_renderer_set_foreign_display (cogl_renderer, xdisplay);
e3f29c
+  cogl_xlib_renderer_request_reset_on_video_memory_purge (cogl_renderer, TRUE);
e3f29c
 
e3f29c
   /* Set up things so that if the INTEL_swap_event extension is not present,
e3f29c
    * but the driver is known to have good thread support, we use an extra
e3f29c
-- 
e3f29c
2.14.3
e3f29c