Remove unused code in kernel_read_write (#1050)

These declarations either aren't used or aren't needed, as testBase.h
already declares them.

Some definitions got moved to test_common.h, as these are duplicated
across few files. There's further opportunity to improve code reuse
via test_common.h, but that's for future patch.

Signed-off-by: Radek Szymanski <radek.szymanski@arm.com>
This commit is contained in:
Radek Szymanski
2020-11-20 15:06:40 +01:00
committed by GitHub
parent bf3d3fef75
commit 956d9a05e6
13 changed files with 13 additions and 113 deletions

View File

@@ -2,6 +2,15 @@
#include "../testBase.h"
#define ABS_ERROR(result, expected) (fabs(expected - result))
#define CLAMP(_val, _min, _max) \
((_val) < (_min) ? (_min) : (_val) > (_max) ? (_max) : (_val))
#define MAX_ERR 0.005f
#define MAX_TRIES 1
#define MAX_CLAMPED 1
extern cl_sampler create_sampler(cl_context context, image_sampler_data *sdata, bool test_mipmaps, cl_int *error);
extern bool gExtraValidateInfo;
extern bool gDisableOffsets;
extern bool gUseKernelSamplers;