mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-25 16:29:03 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user