[gegl] gaussian-blur: Use CL_MEM_COPY_HOST_PTR



commit 55f6faf3a8419faf56a74fd4a755593a0489830d
Author: Daniel Sabo <DanielSabo gmail com>
Date:   Sat Oct 19 04:54:19 2013 -0700

    gaussian-blur: Use CL_MEM_COPY_HOST_PTR
    
    Using CL_MEM_USE_HOST_PTR seems to make the GPU angry.

 operations/common/gaussian-blur.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/operations/common/gaussian-blur.c b/operations/common/gaussian-blur.c
index c52c237..97547b9 100644
--- a/operations/common/gaussian-blur.c
+++ b/operations/common/gaussian-blur.c
@@ -462,12 +462,12 @@ cl_gaussian_blur (cl_mem                in_tex,
   if (!cl_data) return TRUE;
 
   cl_matrix_x = gegl_clCreateBuffer(gegl_cl_get_context(),
-                                    CL_MEM_USE_HOST_PTR | CL_MEM_READ_ONLY,
+                                    CL_MEM_COPY_HOST_PTR | CL_MEM_READ_ONLY,
                                     matrix_length_x * sizeof(cl_float), dmatrix_x, &cl_err);
   CL_CHECK;
 
   cl_matrix_y = gegl_clCreateBuffer(gegl_cl_get_context(),
-                                    CL_MEM_USE_HOST_PTR | CL_MEM_READ_ONLY,
+                                    CL_MEM_COPY_HOST_PTR | CL_MEM_READ_ONLY,
                                     matrix_length_y * sizeof(cl_float), dmatrix_y, &cl_err);
   CL_CHECK;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]