COMPMID-1078 Fix CL DepthwiseConvolutionLayer QASYMM8 failing validation

Change-Id: Id540490e5faf11c466ff039a20880eeedd6e5ec7
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/128612
Tested-by: Jenkins <bsgcomp@arm.com>
Reviewed-by: Michalis Spyrou <michalis.spyrou@arm.com>
Reviewed-by: Isabella Gottardi <isabella.gottardi@arm.com>
diff --git a/src/core/CL/cl_kernels/depthwise_convolution_quantized.cl b/src/core/CL/cl_kernels/depthwise_convolution_quantized.cl
index 635bc9d..a0c0a8b 100644
--- a/src/core/CL/cl_kernels/depthwise_convolution_quantized.cl
+++ b/src/core/CL/cl_kernels/depthwise_convolution_quantized.cl
@@ -333,7 +333,7 @@
     const int src_offs2 = src_offs1 + src_stride_z;
 
     const int cond_top    = z - CONV_PAD_TOP < 0;
-    const int cond_bottom = z * (src_step_z / src_stride_z) + 2 >= SRC_DEPTH;
+    const int cond_bottom = z * (src_step_z / src_stride_z) + 2 > SRC_DEPTH;
 
     __global uchar *src_addr0 = first_elem + select(src_offs0, pad_offs, cond_top);
     __global uchar *src_addr1 = first_elem + src_offs1;
@@ -580,8 +580,7 @@
     const int src_offs2 = src_offs1 + src_stride_z;
 
     const int cond_top    = z - CONV_PAD_TOP < 0;
-    const int cond_bottom = z * (src_step_z / src_stride_z) + 2 >= SRC_DEPTH;
-    ;
+    const int cond_bottom = z * (src_step_z / src_stride_z) + 2 > SRC_DEPTH;
 
     __global uchar *src_addr0 = first_elem + select(src_offs0, pad_offs, cond_top);
     __global uchar *src_addr1 = first_elem + src_offs1;