Remove unused code in samplerlessReads (#1051)

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

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

View File

@@ -13,17 +13,11 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//
#include "../harness/compat.h"
#include <stdio.h>
#include <string.h>
#if !defined(_WIN32)
#include <unistd.h>
#include <sys/time.h>
#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 );

View File

@@ -22,14 +22,8 @@
#include <setjmp.h>
#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"

View File

@@ -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 );

View File

@@ -22,14 +22,8 @@
#include <setjmp.h>
#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"

View File

@@ -22,14 +22,8 @@
#include <setjmp.h>
#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"

View File

@@ -22,13 +22,7 @@
#include <setjmp.h>
#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"

View File

@@ -16,11 +16,8 @@
#include "../testBase.h"
#include <float.h>
#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"

View File

@@ -16,11 +16,8 @@
#include "../testBase.h"
#include <float.h>
#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"