[gnome-photos/gnome-3-24] application: Log whether OpenCL is enabled or not
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/gnome-3-24] application: Log whether OpenCL is enabled or not
- Date: Fri, 11 Aug 2017 18:46:28 +0000 (UTC)
commit f249295e3fef0c4e716c298a093d278335205ef3
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 6c68298..816e723 100644
--- a/src/photos-application.c
+++ b/src/photos-application.c
@@ -574,9 +574,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]