mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-25 16:29:03 +00:00
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:
@@ -13,17 +13,11 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
//
|
//
|
||||||
#include "../harness/compat.h"
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#if !defined(_WIN32)
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <sys/time.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "../testBase.h"
|
#include "../testBase.h"
|
||||||
|
#include "../harness/compat.h"
|
||||||
#include "../harness/fpcontrol.h"
|
#include "../harness/fpcontrol.h"
|
||||||
#include "../harness/parseParameters.h"
|
#include "../harness/parseParameters.h"
|
||||||
|
|
||||||
@@ -44,8 +38,6 @@ cl_channel_order gChannelOrderToUse = (cl_channel_order)-1;
|
|||||||
bool gEnablePitch = false;
|
bool gEnablePitch = false;
|
||||||
bool gDeviceLt20 = false;
|
bool gDeviceLt20 = false;
|
||||||
|
|
||||||
#define MAX_ALLOWED_STD_DEVIATION_IN_MB 8.0
|
|
||||||
|
|
||||||
static void printUsage( const char *execName );
|
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 );
|
extern int test_image_set( cl_device_id device, cl_context context, cl_command_queue queue, cl_mem_object_type imageType );
|
||||||
|
|||||||
@@ -22,14 +22,8 @@
|
|||||||
#include <setjmp.h>
|
#include <setjmp.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define MAX_ERR 0.005f
|
extern bool gDeviceLt20;
|
||||||
#define MAX_HALF_LINEAR_ERR 0.3f
|
extern bool gTestReadWrite;
|
||||||
|
|
||||||
extern bool gDebugTrace, gTestSmallImages, gEnablePitch, gTestMaxImages, gDeviceLt20;
|
|
||||||
extern bool gTestReadWrite;
|
|
||||||
|
|
||||||
#define MAX_TRIES 1
|
|
||||||
#define MAX_CLAMPED 1
|
|
||||||
|
|
||||||
const char *read2DKernelSourcePattern =
|
const char *read2DKernelSourcePattern =
|
||||||
"__kernel void sample_kernel( read_only %s input, sampler_t sampler, __global int *results )\n"
|
"__kernel void sample_kernel( read_only %s input, sampler_t sampler, __global int *results )\n"
|
||||||
|
|||||||
@@ -16,14 +16,9 @@
|
|||||||
#include "../testBase.h"
|
#include "../testBase.h"
|
||||||
#include "../common.h"
|
#include "../common.h"
|
||||||
|
|
||||||
extern int gTypesToTest;
|
extern int gTypesToTest;
|
||||||
extern cl_channel_type gChannelTypeToUse;
|
extern bool gDeviceLt20;
|
||||||
extern cl_channel_order gChannelOrderToUse;
|
extern bool gTestReadWrite;
|
||||||
|
|
||||||
extern bool gDebugTrace;
|
|
||||||
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( 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 );
|
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 );
|
||||||
|
|||||||
@@ -22,14 +22,8 @@
|
|||||||
#include <setjmp.h>
|
#include <setjmp.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define MAX_ERR 0.005f
|
extern bool gDeviceLt20;
|
||||||
#define MAX_HALF_LINEAR_ERR 0.3f
|
extern bool gTestReadWrite;
|
||||||
|
|
||||||
extern bool gDebugTrace, gTestSmallImages, gEnablePitch, gTestMaxImages, gDeviceLt20;
|
|
||||||
extern bool gTestReadWrite;
|
|
||||||
|
|
||||||
#define MAX_TRIES 1
|
|
||||||
#define MAX_CLAMPED 1
|
|
||||||
|
|
||||||
const char *read1DKernelSourcePattern =
|
const char *read1DKernelSourcePattern =
|
||||||
"__kernel void sample_kernel( read_only image1d_t input, sampler_t sampler, __global int *results )\n"
|
"__kernel void sample_kernel( read_only image1d_t input, sampler_t sampler, __global int *results )\n"
|
||||||
|
|||||||
@@ -22,14 +22,8 @@
|
|||||||
#include <setjmp.h>
|
#include <setjmp.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define MAX_ERR 0.005f
|
extern bool gDeviceLt20;
|
||||||
#define MAX_HALF_LINEAR_ERR 0.3f
|
extern bool gTestReadWrite;
|
||||||
|
|
||||||
extern bool gDebugTrace, gTestSmallImages, gEnablePitch, gTestMaxImages, gDeviceLt20;
|
|
||||||
extern bool gTestReadWrite;
|
|
||||||
|
|
||||||
#define MAX_TRIES 1
|
|
||||||
#define MAX_CLAMPED 1
|
|
||||||
|
|
||||||
const char *read1DArrayKernelSourcePattern =
|
const char *read1DArrayKernelSourcePattern =
|
||||||
"__kernel void sample_kernel( read_only image1d_array_t input, sampler_t sampler, __global int *results )\n"
|
"__kernel void sample_kernel( read_only image1d_array_t input, sampler_t sampler, __global int *results )\n"
|
||||||
|
|||||||
@@ -22,13 +22,7 @@
|
|||||||
#include <setjmp.h>
|
#include <setjmp.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define MAX_ERR 0.005f
|
extern bool gDeviceLt20;
|
||||||
#define MAX_HALF_LINEAR_ERR 0.3f
|
|
||||||
|
|
||||||
extern bool gDebugTrace, gTestSmallImages, gEnablePitch, gTestMaxImages, gDeviceLt20;
|
|
||||||
|
|
||||||
#define MAX_TRIES 1
|
|
||||||
#define MAX_CLAMPED 1
|
|
||||||
|
|
||||||
const char *read1DBufferKernelSourcePattern =
|
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"
|
"__kernel void sample_kernel( read_only image1d_buffer_t inputA, read_only image1d_t inputB, sampler_t sampler, __global int *results )\n"
|
||||||
|
|||||||
@@ -16,11 +16,8 @@
|
|||||||
#include "../testBase.h"
|
#include "../testBase.h"
|
||||||
#include <float.h>
|
#include <float.h>
|
||||||
|
|
||||||
#define MAX_ERR 0.005f
|
extern bool gDeviceLt20;
|
||||||
#define MAX_HALF_LINEAR_ERR 0.3f
|
extern bool gTestReadWrite;
|
||||||
|
|
||||||
extern bool gDebugTrace, gTestSmallImages, gEnablePitch, gTestMaxImages, gDeviceLt20;
|
|
||||||
extern bool gTestReadWrite;
|
|
||||||
|
|
||||||
const char *read2DArrayKernelSourcePattern =
|
const char *read2DArrayKernelSourcePattern =
|
||||||
"__kernel void sample_kernel( read_only %s input, sampler_t sampler, __global int *results )\n"
|
"__kernel void sample_kernel( read_only %s input, sampler_t sampler, __global int *results )\n"
|
||||||
|
|||||||
@@ -16,11 +16,8 @@
|
|||||||
#include "../testBase.h"
|
#include "../testBase.h"
|
||||||
#include <float.h>
|
#include <float.h>
|
||||||
|
|
||||||
#define MAX_ERR 0.005f
|
extern bool gDeviceLt20;
|
||||||
#define MAX_HALF_LINEAR_ERR 0.3f
|
extern bool gTestReadWrite;
|
||||||
|
|
||||||
extern bool gDebugTrace, gTestSmallImages, gEnablePitch, gTestMaxImages, gDeviceLt20;
|
|
||||||
extern bool gTestReadWrite;
|
|
||||||
|
|
||||||
const char *read3DKernelSourcePattern =
|
const char *read3DKernelSourcePattern =
|
||||||
"__kernel void sample_kernel( read_only image3d_t input, sampler_t sampler, __global int *results )\n"
|
"__kernel void sample_kernel( read_only image3d_t input, sampler_t sampler, __global int *results )\n"
|
||||||
|
|||||||
Reference in New Issue
Block a user