mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-26 08:49:02 +00:00
Remove unused code in clFillImage (#1036)
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/testHarness.h"
|
#include "../harness/testHarness.h"
|
||||||
|
|
||||||
bool gDebugTrace;
|
bool gDebugTrace;
|
||||||
@@ -37,7 +31,6 @@ cl_channel_order gChannelOrderToUse = (cl_channel_order)-1;
|
|||||||
extern int test_image_set( cl_device_id device, cl_context context, cl_command_queue queue, MethodsToTest testMethod );
|
extern int test_image_set( cl_device_id device, cl_context context, cl_command_queue queue, MethodsToTest testMethod );
|
||||||
static void printUsage( const char *execName );
|
static void printUsage( const char *execName );
|
||||||
|
|
||||||
#define MAX_ALLOWED_STD_DEVIATION_IN_MB 8.0
|
|
||||||
|
|
||||||
int test_1D(cl_device_id device, cl_context context, cl_command_queue queue, int num_elements)
|
int test_1D(cl_device_id device, cl_context context, cl_command_queue queue, int num_elements)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -15,14 +15,6 @@
|
|||||||
//
|
//
|
||||||
#include "../testBase.h"
|
#include "../testBase.h"
|
||||||
|
|
||||||
#define MAX_ERR 0.005f
|
|
||||||
#define MAX_HALF_LINEAR_ERR 0.3f
|
|
||||||
|
|
||||||
extern bool gDebugTrace, gDisableOffsets, gTestSmallImages, gEnablePitch, gTestMaxImages;
|
|
||||||
extern cl_filter_mode gFilterModeToUse;
|
|
||||||
extern cl_addressing_mode gAddressModeToUse;
|
|
||||||
extern uint64_t gRoundingStartValue;
|
|
||||||
|
|
||||||
// Defined in test_fill_2D_3D.cpp
|
// Defined in test_fill_2D_3D.cpp
|
||||||
extern int test_fill_image_generic( cl_context context, cl_command_queue queue, image_descriptor *imageInfo,
|
extern int test_fill_image_generic( cl_context context, cl_command_queue queue, image_descriptor *imageInfo,
|
||||||
const size_t origin[], const size_t region[], ExplicitType outputType, MTdata d );
|
const size_t origin[], const size_t region[], ExplicitType outputType, MTdata d );
|
||||||
|
|||||||
@@ -15,14 +15,6 @@
|
|||||||
//
|
//
|
||||||
#include "../testBase.h"
|
#include "../testBase.h"
|
||||||
|
|
||||||
#define MAX_ERR 0.005f
|
|
||||||
#define MAX_HALF_LINEAR_ERR 0.3f
|
|
||||||
|
|
||||||
extern bool gDebugTrace, gDisableOffsets, gTestSmallImages, gEnablePitch, gTestMaxImages;
|
|
||||||
extern cl_filter_mode gFilterModeToUse;
|
|
||||||
extern cl_addressing_mode gAddressModeToUse;
|
|
||||||
extern uint64_t gRoundingStartValue;
|
|
||||||
|
|
||||||
// Defined in test_fill_2D_3D.cpp
|
// Defined in test_fill_2D_3D.cpp
|
||||||
extern int test_fill_image_generic( cl_context context, cl_command_queue queue, image_descriptor *imageInfo,
|
extern int test_fill_image_generic( cl_context context, cl_command_queue queue, image_descriptor *imageInfo,
|
||||||
const size_t origin[], const size_t region[], ExplicitType outputType, MTdata d );
|
const size_t origin[], const size_t region[], ExplicitType outputType, MTdata d );
|
||||||
|
|||||||
@@ -15,14 +15,6 @@
|
|||||||
//
|
//
|
||||||
#include "../testBase.h"
|
#include "../testBase.h"
|
||||||
|
|
||||||
#define MAX_ERR 0.005f
|
|
||||||
#define MAX_HALF_LINEAR_ERR 0.3f
|
|
||||||
|
|
||||||
extern bool gDebugTrace, gDisableOffsets, gTestSmallImages, gEnablePitch, gTestMaxImages;
|
|
||||||
extern cl_filter_mode gFilterModeToUse;
|
|
||||||
extern cl_addressing_mode gAddressModeToUse;
|
|
||||||
extern uint64_t gRoundingStartValue;
|
|
||||||
|
|
||||||
// Defined in test_fill_2D_3D.cpp
|
// Defined in test_fill_2D_3D.cpp
|
||||||
extern int test_fill_image_generic( cl_context context, cl_command_queue queue, image_descriptor *imageInfo,
|
extern int test_fill_image_generic( cl_context context, cl_command_queue queue, image_descriptor *imageInfo,
|
||||||
const size_t origin[], const size_t region[], ExplicitType outputType, MTdata d );
|
const size_t origin[], const size_t region[], ExplicitType outputType, MTdata d );
|
||||||
|
|||||||
@@ -15,13 +15,6 @@
|
|||||||
//
|
//
|
||||||
#include "../testBase.h"
|
#include "../testBase.h"
|
||||||
|
|
||||||
#define MAX_ERR 0.005f
|
|
||||||
#define MAX_HALF_LINEAR_ERR 0.3f
|
|
||||||
|
|
||||||
extern bool gDebugTrace, gDisableOffsets, gTestSmallImages, gTestMaxImages, gEnablePitch;
|
|
||||||
extern cl_filter_mode gFilterModeToUse;
|
|
||||||
extern cl_addressing_mode gAddressModeToUse;
|
|
||||||
|
|
||||||
// Defined in test_fill_2D_3D.cpp
|
// Defined in test_fill_2D_3D.cpp
|
||||||
extern int test_fill_image_generic( cl_context context, cl_command_queue queue, image_descriptor *imageInfo,
|
extern int test_fill_image_generic( cl_context context, cl_command_queue queue, image_descriptor *imageInfo,
|
||||||
const size_t origin[], const size_t region[], ExplicitType outputType, MTdata d );
|
const size_t origin[], const size_t region[], ExplicitType outputType, MTdata d );
|
||||||
|
|||||||
@@ -15,13 +15,6 @@
|
|||||||
//
|
//
|
||||||
#include "../testBase.h"
|
#include "../testBase.h"
|
||||||
|
|
||||||
#define MAX_ERR 0.005f
|
|
||||||
#define MAX_HALF_LINEAR_ERR 0.3f
|
|
||||||
|
|
||||||
extern bool gDebugTrace, gDisableOffsets, gTestSmallImages, gTestMaxImages, gEnablePitch;
|
|
||||||
extern cl_filter_mode gFilterModeToUse;
|
|
||||||
extern cl_addressing_mode gAddressModeToUse;
|
|
||||||
|
|
||||||
// Defined in test_fill_2D_3D.cpp
|
// Defined in test_fill_2D_3D.cpp
|
||||||
extern int test_fill_image_generic( cl_context context, cl_command_queue queue, image_descriptor *imageInfo,
|
extern int test_fill_image_generic( cl_context context, cl_command_queue queue, image_descriptor *imageInfo,
|
||||||
const size_t origin[], const size_t region[], ExplicitType outputType, MTdata d );
|
const size_t origin[], const size_t region[], ExplicitType outputType, MTdata d );
|
||||||
|
|||||||
@@ -15,23 +15,13 @@
|
|||||||
//
|
//
|
||||||
#include "../testBase.h"
|
#include "../testBase.h"
|
||||||
|
|
||||||
#define MAX_ERR 0.005f
|
|
||||||
#define MAX_HALF_LINEAR_ERR 0.3f
|
|
||||||
|
|
||||||
extern bool gDebugTrace, gDisableOffsets, gTestSmallImages, gTestMaxImages, gEnablePitch;
|
|
||||||
extern cl_filter_mode gFilterModeToUse;
|
|
||||||
extern cl_addressing_mode gAddressModeToUse;
|
|
||||||
extern uint64_t gRoundingStartValue;
|
|
||||||
|
|
||||||
extern void read_image_pixel_float( void *imageData, image_descriptor *imageInfo, int x, int y, int z, float *outData );
|
extern void read_image_pixel_float( void *imageData, image_descriptor *imageInfo, int x, int y, int z, float *outData );
|
||||||
|
|
||||||
|
|
||||||
static void CL_CALLBACK free_pitch_buffer( cl_mem image, void *buf )
|
static void CL_CALLBACK free_pitch_buffer( cl_mem image, void *buf )
|
||||||
{
|
{
|
||||||
free( buf );
|
free( buf );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
cl_mem create_image( cl_context context, cl_command_queue queue, BufferOwningPtr<char>& data, image_descriptor *imageInfo, int *error )
|
cl_mem create_image( cl_context context, cl_command_queue queue, BufferOwningPtr<char>& data, image_descriptor *imageInfo, int *error )
|
||||||
{
|
{
|
||||||
cl_mem img;
|
cl_mem img;
|
||||||
|
|||||||
@@ -16,14 +16,7 @@
|
|||||||
#include "../testBase.h"
|
#include "../testBase.h"
|
||||||
#include "../common.h"
|
#include "../common.h"
|
||||||
|
|
||||||
extern bool gDebugTrace;
|
|
||||||
extern cl_filter_mode gFilterModeToUse;
|
|
||||||
extern cl_addressing_mode gAddressModeToUse;
|
|
||||||
extern int gTypesToTest;
|
extern int gTypesToTest;
|
||||||
extern int gNormalizedModeToUse;
|
|
||||||
extern cl_channel_type gChannelTypeToUse;
|
|
||||||
extern cl_channel_order gChannelOrderToUse;
|
|
||||||
|
|
||||||
|
|
||||||
extern int test_fill_image_set_1D( cl_device_id device, cl_context context, cl_command_queue queue, cl_image_format *format, ExplicitType outputType );
|
extern int test_fill_image_set_1D( cl_device_id device, cl_context context, cl_command_queue queue, cl_image_format *format, ExplicitType outputType );
|
||||||
extern int test_fill_image_set_2D( cl_device_id device, cl_context context, cl_command_queue queue, cl_image_format *format, ExplicitType outputType );
|
extern int test_fill_image_set_2D( cl_device_id device, cl_context context, cl_command_queue queue, cl_image_format *format, ExplicitType outputType );
|
||||||
|
|||||||
Reference in New Issue
Block a user