From f1f3ebd517089e934cf3f06e64d90619a395ad87 Mon Sep 17 00:00:00 2001 From: Joel Liang Date: Fri, 10 Nov 2017 09:59:19 +0800 Subject: APPBROWSER-298, APPBROWSER-306: Reimplement the common code of compute shader The new common code of compute shader is in file helpers_cs.h Rewrite the direct_convolution1x1.cs and softmax_layer.cs to use the new common code. It will also remove the dependence of the token pasting operator (##). We'll remove the "##" support after we rewrite all of the compute shader code. Change-Id: Icd8553ef6b61ad484a8507590ac8ed499bd47061 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/95455 Tested-by: Kaizen Reviewed-by: Georgios Pinitas Reviewed-by: Frank Lei (cherry picked from commit 0a4f83570d261f839d9866b68979efe8d7a95883) Reviewed-on: http://mpd-gerrit.cambridge.arm.com/95601 Reviewed-by: Jim He --- src/core/GLES_COMPUTE/cs_shaders/helpers.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/core/GLES_COMPUTE/cs_shaders/helpers.h') diff --git a/src/core/GLES_COMPUTE/cs_shaders/helpers.h b/src/core/GLES_COMPUTE/cs_shaders/helpers.h index 86dedf5a9c..ba27eec716 100644 --- a/src/core/GLES_COMPUTE/cs_shaders/helpers.h +++ b/src/core/GLES_COMPUTE/cs_shaders/helpers.h @@ -56,7 +56,9 @@ uint name##_stride_y; \ uint name##_step_y; \ uint name##_offset_first_element_in_bytes; \ - uint name##_buffer_data_type_size + uint name##_buffer_data_type_size; \ + uint name##_padding1; \ + uint name##_padding2 #define TENSOR3D_PARAM_DECLARATION(name) \ uint name##_stride_x; \ -- cgit v1.2.1