[gnome-photos] application: Log whether OpenCL is enabled or not
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] application: Log whether OpenCL is enabled or not
- Date: Fri, 11 Aug 2017 19:55:07 +0000 (UTC)
commit 3f6fce350a2d171207f504937414350e7fbd4d63
Author: Debarshi Ray <debarshir gnome org>
Date: Fri Aug 11 18:27:30 2017 +0200
application: Log whether OpenCL is enabled or not
Not every GEGL operation's OpenCL implementation is as well-tested as
it should be. This can be helpful in finding out if some bug is being
caused by OpenCL being enabled or not.
src/photos-application.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-application.c b/src/photos-application.c
index b694231..7670479 100644
--- a/src/photos-application.c
+++ b/src/photos-application.c
@@ -581,9 +581,15 @@ photos_application_gegl_init_fishes_idle (gpointer user_data)
static gboolean
photos_application_sanity_check_gegl (PhotosApplication *self)
{
+ GeglConfig *config;
gboolean ret_val = TRUE;
+ gboolean use_opencl;
guint i;
+ config = gegl_config ();
+ g_object_get (config, "use-opencl", &use_opencl, NULL);
+ photos_debug (PHOTOS_DEBUG_GEGL, "Using OpenCL: %s", use_opencl ? "yes" : "no");
+
for (i = 0; i < G_N_ELEMENTS (REQUIRED_GEGL_OPS); i++)
{
if (!gegl_has_operation (REQUIRED_GEGL_OPS[i]))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]