diff --git a/test_conformance/images/samplerlessReads/main.cpp b/test_conformance/images/samplerlessReads/main.cpp index e62765d7..8f69e73c 100644 --- a/test_conformance/images/samplerlessReads/main.cpp +++ b/test_conformance/images/samplerlessReads/main.cpp @@ -13,17 +13,11 @@ // See the License for the specific language governing permissions and // limitations under the License. // -#include "../harness/compat.h" #include #include - -#if !defined(_WIN32) -#include -#include -#endif - #include "../testBase.h" +#include "../harness/compat.h" #include "../harness/fpcontrol.h" #include "../harness/parseParameters.h" @@ -44,8 +38,6 @@ cl_channel_order gChannelOrderToUse = (cl_channel_order)-1; bool gEnablePitch = false; bool gDeviceLt20 = false; -#define MAX_ALLOWED_STD_DEVIATION_IN_MB 8.0 - static void printUsage( const char *execName ); extern int test_image_set( cl_device_id device, cl_context context, cl_command_queue queue, cl_mem_object_type imageType ); diff --git a/test_conformance/images/samplerlessReads/test_iterations.cpp b/test_conformance/images/samplerlessReads/test_iterations.cpp index c33007f1..11b364f9 100644 --- a/test_conformance/images/samplerlessReads/test_iterations.cpp +++ b/test_conformance/images/samplerlessReads/test_iterations.cpp @@ -22,14 +22,8 @@ #include #endif -#define MAX_ERR 0.005f -#define MAX_HALF_LINEAR_ERR 0.3f - -extern bool gDebugTrace, gTestSmallImages, gEnablePitch, gTestMaxImages, gDeviceLt20; -extern bool gTestReadWrite; - -#define MAX_TRIES 1 -#define MAX_CLAMPED 1 +extern bool gDeviceLt20; +extern bool gTestReadWrite; const char *read2DKernelSourcePattern = "__kernel void sample_kernel( read_only %s input, sampler_t sampler, __global int *results )\n" diff --git a/test_conformance/images/samplerlessReads/test_loops.cpp b/test_conformance/images/samplerlessReads/test_loops.cpp index 639efa80..27840ca7 100644 --- a/test_conformance/images/samplerlessReads/test_loops.cpp +++ b/test_conformance/images/samplerlessReads/test_loops.cpp @@ -16,14 +16,9 @@ #include "../testBase.h" #include "../common.h" -extern int gTypesToTest; -extern cl_channel_type gChannelTypeToUse; -extern cl_channel_order gChannelOrderToUse; - -extern bool gDebugTrace; -extern bool gDeviceLt20; - -extern bool gTestReadWrite; +extern int gTypesToTest; +extern bool gDeviceLt20; +extern bool gTestReadWrite; extern int test_read_image_set_1D( cl_device_id device, cl_context context, cl_command_queue queue, cl_image_format *format, image_sampler_data *imageSampler, ExplicitType outputType ); extern int test_read_image_set_1D_buffer( cl_device_id device, cl_context context, cl_command_queue queue, cl_image_format *format, image_sampler_data *imageSampler, ExplicitType outputType ); diff --git a/test_conformance/images/samplerlessReads/test_read_1D.cpp b/test_conformance/images/samplerlessReads/test_read_1D.cpp index f38a2e64..d17fdfcf 100644 --- a/test_conformance/images/samplerlessReads/test_read_1D.cpp +++ b/test_conformance/images/samplerlessReads/test_read_1D.cpp @@ -22,14 +22,8 @@ #include #endif -#define MAX_ERR 0.005f -#define MAX_HALF_LINEAR_ERR 0.3f - -extern bool gDebugTrace, gTestSmallImages, gEnablePitch, gTestMaxImages, gDeviceLt20; -extern bool gTestReadWrite; - -#define MAX_TRIES 1 -#define MAX_CLAMPED 1 +extern bool gDeviceLt20; +extern bool gTestReadWrite; const char *read1DKernelSourcePattern = "__kernel void sample_kernel( read_only image1d_t input, sampler_t sampler, __global int *results )\n" diff --git a/test_conformance/images/samplerlessReads/test_read_1D_array.cpp b/test_conformance/images/samplerlessReads/test_read_1D_array.cpp index be0d4900..6a0e1d53 100644 --- a/test_conformance/images/samplerlessReads/test_read_1D_array.cpp +++ b/test_conformance/images/samplerlessReads/test_read_1D_array.cpp @@ -22,14 +22,8 @@ #include #endif -#define MAX_ERR 0.005f -#define MAX_HALF_LINEAR_ERR 0.3f - -extern bool gDebugTrace, gTestSmallImages, gEnablePitch, gTestMaxImages, gDeviceLt20; -extern bool gTestReadWrite; - -#define MAX_TRIES 1 -#define MAX_CLAMPED 1 +extern bool gDeviceLt20; +extern bool gTestReadWrite; const char *read1DArrayKernelSourcePattern = "__kernel void sample_kernel( read_only image1d_array_t input, sampler_t sampler, __global int *results )\n" diff --git a/test_conformance/images/samplerlessReads/test_read_1D_buffer.cpp b/test_conformance/images/samplerlessReads/test_read_1D_buffer.cpp index 4cd02f08..c21b12c8 100644 --- a/test_conformance/images/samplerlessReads/test_read_1D_buffer.cpp +++ b/test_conformance/images/samplerlessReads/test_read_1D_buffer.cpp @@ -22,13 +22,7 @@ #include #endif -#define MAX_ERR 0.005f -#define MAX_HALF_LINEAR_ERR 0.3f - -extern bool gDebugTrace, gTestSmallImages, gEnablePitch, gTestMaxImages, gDeviceLt20; - -#define MAX_TRIES 1 -#define MAX_CLAMPED 1 +extern bool gDeviceLt20; const char *read1DBufferKernelSourcePattern = "__kernel void sample_kernel( read_only image1d_buffer_t inputA, read_only image1d_t inputB, sampler_t sampler, __global int *results )\n" diff --git a/test_conformance/images/samplerlessReads/test_read_2D_array.cpp b/test_conformance/images/samplerlessReads/test_read_2D_array.cpp index fe221ee5..cfc12725 100644 --- a/test_conformance/images/samplerlessReads/test_read_2D_array.cpp +++ b/test_conformance/images/samplerlessReads/test_read_2D_array.cpp @@ -16,11 +16,8 @@ #include "../testBase.h" #include -#define MAX_ERR 0.005f -#define MAX_HALF_LINEAR_ERR 0.3f - -extern bool gDebugTrace, gTestSmallImages, gEnablePitch, gTestMaxImages, gDeviceLt20; -extern bool gTestReadWrite; +extern bool gDeviceLt20; +extern bool gTestReadWrite; const char *read2DArrayKernelSourcePattern = "__kernel void sample_kernel( read_only %s input, sampler_t sampler, __global int *results )\n" diff --git a/test_conformance/images/samplerlessReads/test_read_3D.cpp b/test_conformance/images/samplerlessReads/test_read_3D.cpp index e06a347c..da5466f7 100644 --- a/test_conformance/images/samplerlessReads/test_read_3D.cpp +++ b/test_conformance/images/samplerlessReads/test_read_3D.cpp @@ -16,11 +16,8 @@ #include "../testBase.h" #include -#define MAX_ERR 0.005f -#define MAX_HALF_LINEAR_ERR 0.3f - -extern bool gDebugTrace, gTestSmallImages, gEnablePitch, gTestMaxImages, gDeviceLt20; -extern bool gTestReadWrite; +extern bool gDeviceLt20; +extern bool gTestReadWrite; const char *read3DKernelSourcePattern = "__kernel void sample_kernel( read_only image3d_t input, sampler_t sampler, __global int *results )\n"