From 4a65b9855f71fff11a4c18d2fa4bccc74303e5c6 Mon Sep 17 00:00:00 2001 From: Michele Di Giorgio Date: Fri, 2 Mar 2018 11:21:38 +0000 Subject: COMPMID-991: Add data layout information to the test framework Change-Id: Iccf66f7476e697e8fdee5a7441cc06b936bbba09 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/122986 Reviewed-by: Michalis Spyrou Tested-by: Jenkins --- tests/GLES_COMPUTE/GCAccessor.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'tests/GLES_COMPUTE') diff --git a/tests/GLES_COMPUTE/GCAccessor.h b/tests/GLES_COMPUTE/GCAccessor.h index 0f7c491c3c..ccf4caabaf 100644 --- a/tests/GLES_COMPUTE/GCAccessor.h +++ b/tests/GLES_COMPUTE/GCAccessor.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -56,6 +56,7 @@ public: size_t element_size() const override; size_t size() const override; Format format() const override; + DataLayout data_layout() const override; DataType data_type() const override; int num_channels() const override; int num_elements() const override; @@ -100,6 +101,11 @@ inline Format GCAccessor::format() const return _tensor.info()->format(); } +inline DataLayout GCAccessor::data_layout() const +{ + return _tensor.info()->data_layout(); +} + inline DataType GCAccessor::data_type() const { return _tensor.info()->data_type(); -- cgit v1.2.1