[gegl] merge buffer's opencl cache in affine
- From: Victor Matheus de Araujo Oliveira <vmaolive src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] merge buffer's opencl cache in affine
- Date: Wed, 21 Mar 2012 19:29:57 +0000 (UTC)
commit 0f34bd4f772003e50344e1e6503edfbbaf949c6f
Author: Victor Oliveira <victormatheus gmail com>
Date: Wed Mar 21 16:29:18 2012 -0300
merge buffer's opencl cache in affine
operations/affine/affine.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/operations/affine/affine.c b/operations/affine/affine.c
index 36fe2bd..61c2f04 100644
--- a/operations/affine/affine.c
+++ b/operations/affine/affine.c
@@ -850,6 +850,14 @@ gegl_affine_process (GeglOperation *operation,
gegl_affine_create_composite_matrix (affine, &matrix);
+ input = gegl_operation_context_get_source (context, "input");
+ if (input)
+ {
+ if (gegl_cl_is_accelerated ())
+ gegl_buffer_cl_cache_invalidate (input, NULL);
+ g_object_unref (input);
+ }
+
if (gegl_affine_is_intermediate_node (affine) ||
gegl_matrix3_is_identity (&matrix))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]