[gegl] opencl: fix previous backseat driving change



commit 9df4d1d580a991ae813180e98308589565df668d
Author: Massimo <sixtysix inwind it>
Date:   Thu Nov 9 18:37:15 2017 +0100

    opencl: fix previous backseat driving change
    
    "when using 'aux[3 * gid]' you have to remove the '.x', at this point
    it is a float array"

 opencl/shadows-highlights-correction.cl   |    2 +-
 opencl/shadows-highlights-correction.cl.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/opencl/shadows-highlights-correction.cl b/opencl/shadows-highlights-correction.cl
index 72d6464..af7a525 100644
--- a/opencl/shadows-highlights-correction.cl
+++ b/opencl/shadows-highlights-correction.cl
@@ -63,7 +63,7 @@ __kernel void shadows_highlights(__global const float4  *in,
     }
 
   /* blurred, inverted and desaturaed mask in m */
-  m.x = 100.0f - aux[3 * gid].x;
+  m.x = 100.0f - aux[3 * gid];
 
   /* white point adjustment */
   io.x = io.x > 0.0f ? io.x/whitepoint : io.x;
diff --git a/opencl/shadows-highlights-correction.cl.h b/opencl/shadows-highlights-correction.cl.h
index 1950707..6b83642 100644
--- a/opencl/shadows-highlights-correction.cl.h
+++ b/opencl/shadows-highlights-correction.cl.h
@@ -64,7 +64,7 @@ static const char* shadows_highlights_correction_cl_source =
 "    }                                                                         \n"
 "                                                                              \n"
 "  /* blurred, inverted and desaturaed mask in m */                            \n"
-"  m.x = 100.0f - aux[3 * gid].x;                                              \n"
+"  m.x = 100.0f - aux[3 * gid];                                                \n"
 "                                                                              \n"
 "  /* white point adjustment */                                                \n"
 "  io.x = io.x > 0.0f ? io.x/whitepoint : io.x;                                \n"


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