aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiorgio Arena <giorgio.arena@arm.com>2021-02-25 15:48:06 +0000
committerMichele Di Giorgio <michele.digiorgio@arm.com>2021-03-01 09:49:02 +0000
commitc1b9b098518211d6f356650a0ce5022a36c623e9 (patch)
tree6fefa56298cd018fd8585e7b1bc674a62a10e8b1
parent2ab585b83a8683806ad4514d06dda9e1e38f29b5 (diff)
downloadComputeLibrary-c1b9b098518211d6f356650a0ce5022a36c623e9.tar.gz
Fix bug on CLCast from float to int8
Resolve COMPMID-4288 Signed-off-by: Giorgio Arena <giorgio.arena@arm.com> Change-Id: I340d18a13f3f00432df3a7d3fc83f93e2591b6d3 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5184 Tested-by: Arm Jenkins <bsgcomp@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com>
-rw-r--r--src/core/CL/cl_kernels/depth_convert.cl9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/core/CL/cl_kernels/depth_convert.cl b/src/core/CL/cl_kernels/depth_convert.cl
index 046b26df0..a888d7b9b 100644
--- a/src/core/CL/cl_kernels/depth_convert.cl
+++ b/src/core/CL/cl_kernels/depth_convert.cl
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016-2020 Arm Limited.
+ * Copyright (c) 2016-2021 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -24,13 +24,8 @@
#include "helpers.h"
#ifdef SATURATE
-#if defined(IS_DATA_TYPE_FLOAT)
-#define CONVERT_RTE(x, type) (convert_##type##_rte((x)))
-#define CONVERT_DOWN(x, type) CONVERT_RTE(x, type)
-#else /* defined(IS_DATA_TYPE_FLOAT) */
#define CONVERT_DOWN(x, type) CONVERT_SAT(x, type)
-#endif /* defined(IS_DATA_TYPE_FLOAT) */
-#else /* SATURATE */
+#else /* SATURATE */
#define CONVERT_DOWN(x, type) CONVERT(x, type)
#endif /* SATURATE */