mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-25 16:29:03 +00:00
Remove unused code in clReadWriteImage (#1043)
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,30 +13,20 @@
|
|||||||
// 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"
|
||||||
|
|
||||||
bool gDebugTrace;
|
bool gDebugTrace;
|
||||||
bool gTestSmallImages;
|
bool gTestSmallImages;
|
||||||
bool gTestMaxImages;
|
bool gTestMaxImages;
|
||||||
bool gUseRamp;
|
|
||||||
bool gTestMipmaps;
|
bool gTestMipmaps;
|
||||||
int gTypesToTest;
|
|
||||||
cl_channel_type gChannelTypeToUse = (cl_channel_type)-1;
|
cl_channel_type gChannelTypeToUse = (cl_channel_type)-1;
|
||||||
cl_channel_order gChannelOrderToUse = (cl_channel_order)-1;
|
cl_channel_order gChannelOrderToUse = (cl_channel_order)-1;
|
||||||
bool gEnablePitch = false;
|
bool gEnablePitch = 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 image_type );
|
extern int test_image_set( cl_device_id device, cl_context context, cl_command_queue queue, cl_mem_object_type image_type );
|
||||||
@@ -99,8 +89,6 @@ int main(int argc, const char *argv[])
|
|||||||
gTestMaxImages = true;
|
gTestMaxImages = true;
|
||||||
else if( strcmp( argv[i], "use_pitches" ) == 0 )
|
else if( strcmp( argv[i], "use_pitches" ) == 0 )
|
||||||
gEnablePitch = true;
|
gEnablePitch = true;
|
||||||
else if( strcmp( argv[i], "use_ramps" ) == 0 )
|
|
||||||
gUseRamp = true;
|
|
||||||
else if( strcmp( argv[i], "test_mipmaps") == 0 ) {
|
else if( strcmp( argv[i], "test_mipmaps") == 0 ) {
|
||||||
gTestMipmaps = true;
|
gTestMipmaps = true;
|
||||||
// Don't test pitches with mipmaps right now.
|
// Don't test pitches with mipmaps right now.
|
||||||
@@ -142,7 +130,6 @@ static void printUsage( const char *execName )
|
|||||||
log_info( "\tsmall_images - Runs every format through a loop of widths 1-13 and heights 1-9, instead of random sizes\n" );
|
log_info( "\tsmall_images - Runs every format through a loop of widths 1-13 and heights 1-9, instead of random sizes\n" );
|
||||||
log_info( "\tmax_images - Runs every format through a set of size combinations with the max values, max values - 1, and max values / 128\n" );
|
log_info( "\tmax_images - Runs every format through a set of size combinations with the max values, max values - 1, and max values / 128\n" );
|
||||||
log_info( "\tuse_pitches - Enables row and slice pitches\n" );
|
log_info( "\tuse_pitches - Enables row and slice pitches\n" );
|
||||||
log_info( "\tuse_ramp - Instead of random data, uses images filled with ramps (and 0xff on any padding pixels) to ease debugging\n" );
|
|
||||||
log_info( "\ttest_mipmaps - Test mipmapped images\n" );
|
log_info( "\ttest_mipmaps - Test mipmapped images\n" );
|
||||||
log_info( "\trandomize - Uses random seed\n" );
|
log_info( "\trandomize - Uses random seed\n" );
|
||||||
log_info( "\n" );
|
log_info( "\n" );
|
||||||
|
|||||||
@@ -16,16 +16,6 @@
|
|||||||
#include "../testBase.h"
|
#include "../testBase.h"
|
||||||
#include "../common.h"
|
#include "../common.h"
|
||||||
|
|
||||||
extern cl_filter_mode gFilterModeToUse;
|
|
||||||
extern cl_addressing_mode gAddressModeToUse;
|
|
||||||
extern int gTypesToTest;
|
|
||||||
extern int gNormalizedModeToUse;
|
|
||||||
extern cl_channel_type gChannelTypeToUse;
|
|
||||||
|
|
||||||
|
|
||||||
extern bool gDebugTrace;
|
|
||||||
extern bool gTestMipmaps;
|
|
||||||
|
|
||||||
extern int test_read_image_set_1D( cl_device_id device, cl_context context, cl_command_queue queue, cl_image_format *format );
|
extern int test_read_image_set_1D( cl_device_id device, cl_context context, cl_command_queue queue, cl_image_format *format );
|
||||||
extern int test_read_image_set_2D( cl_device_id device, cl_context context, cl_command_queue queue, cl_image_format *format );
|
extern int test_read_image_set_2D( cl_device_id device, cl_context context, cl_command_queue queue, cl_image_format *format );
|
||||||
extern int test_read_image_set_3D( cl_device_id device, cl_context context, cl_command_queue queue, cl_image_format *format );
|
extern int test_read_image_set_3D( cl_device_id device, cl_context context, cl_command_queue queue, cl_image_format *format );
|
||||||
|
|||||||
@@ -15,15 +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, gTestMipmaps;
|
|
||||||
extern cl_filter_mode gFilterModeToUse;
|
|
||||||
extern cl_addressing_mode gAddressModeToUse;
|
|
||||||
extern uint64_t gRoundingStartValue;
|
|
||||||
|
|
||||||
|
|
||||||
int test_read_image_1D( cl_context context, cl_command_queue queue, image_descriptor *imageInfo, MTdata d )
|
int test_read_image_1D( cl_context context, cl_command_queue queue, image_descriptor *imageInfo, MTdata d )
|
||||||
{
|
{
|
||||||
int error;
|
int error;
|
||||||
|
|||||||
@@ -15,15 +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, gTestMipmaps;
|
|
||||||
extern cl_filter_mode gFilterModeToUse;
|
|
||||||
extern cl_addressing_mode gAddressModeToUse;
|
|
||||||
extern uint64_t gRoundingStartValue;
|
|
||||||
|
|
||||||
|
|
||||||
int test_read_image_1D_array( cl_context context, cl_command_queue queue, image_descriptor *imageInfo, MTdata d )
|
int test_read_image_1D_array( cl_context context, cl_command_queue queue, image_descriptor *imageInfo, MTdata d )
|
||||||
{
|
{
|
||||||
int error;
|
int error;
|
||||||
|
|||||||
@@ -15,15 +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, gTestMipmaps;
|
|
||||||
extern cl_filter_mode gFilterModeToUse;
|
|
||||||
extern cl_addressing_mode gAddressModeToUse;
|
|
||||||
extern uint64_t gRoundingStartValue;
|
|
||||||
|
|
||||||
|
|
||||||
int test_read_image_2D( cl_context context, cl_command_queue queue, image_descriptor *imageInfo, MTdata d )
|
int test_read_image_2D( cl_context context, cl_command_queue queue, image_descriptor *imageInfo, MTdata d )
|
||||||
{
|
{
|
||||||
int error;
|
int error;
|
||||||
|
|||||||
@@ -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, gEnablePitch, gTestMaxImages, gTestMipmaps;
|
|
||||||
extern cl_filter_mode gFilterModeToUse;
|
|
||||||
extern cl_addressing_mode gAddressModeToUse;
|
|
||||||
|
|
||||||
int test_read_image_2D_array( cl_context context, cl_command_queue queue, image_descriptor *imageInfo, MTdata d )
|
int test_read_image_2D_array( cl_context context, cl_command_queue queue, image_descriptor *imageInfo, MTdata d )
|
||||||
{
|
{
|
||||||
int error;
|
int error;
|
||||||
|
|||||||
@@ -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, gEnablePitch, gTestMaxImages, gTestMipmaps;
|
|
||||||
extern cl_filter_mode gFilterModeToUse;
|
|
||||||
extern cl_addressing_mode gAddressModeToUse;
|
|
||||||
|
|
||||||
int test_read_image_3D( cl_context context, cl_command_queue queue, image_descriptor *imageInfo, MTdata d )
|
int test_read_image_3D( cl_context context, cl_command_queue queue, image_descriptor *imageInfo, MTdata d )
|
||||||
{
|
{
|
||||||
int error;
|
int error;
|
||||||
|
|||||||
Reference in New Issue
Block a user