[gegl] gaussian-blur: Use CL_MEM_COPY_HOST_PTR
- From: Daniel Sabo <daniels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] gaussian-blur: Use CL_MEM_COPY_HOST_PTR
- Date: Sat, 19 Oct 2013 12:15:32 +0000 (UTC)
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]