mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
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>
17 lines
513 B
C
17 lines
513 B
C
|
|
#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;
|