mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Use std::vector for format lists in images suite (#1105)
* Use std::vector for format lists in images suite Avoids memory deallocation issues and generally simplifies the code. * Fixup formatting with git-clang-format
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
#include "harness/conversions.h"
|
||||
|
||||
#include <array>
|
||||
#include <vector>
|
||||
|
||||
extern cl_channel_type gChannelTypeToUse;
|
||||
extern cl_channel_order gChannelOrderToUse;
|
||||
@@ -40,13 +41,13 @@ struct ImageTestTypes
|
||||
|
||||
extern std::array<ImageTestTypes, 3> imageTestTypes;
|
||||
|
||||
int filter_formats(cl_image_format *formatList, bool *filterFlags,
|
||||
unsigned int formatCount,
|
||||
int filter_formats(const std::vector<cl_image_format> &formatList,
|
||||
std::vector<bool> &filterFlags,
|
||||
cl_channel_type *channelDataTypesToFilter,
|
||||
bool testMipmaps = false);
|
||||
int get_format_list(cl_context context, cl_mem_object_type imageType,
|
||||
cl_image_format *&outFormatList,
|
||||
unsigned int &outFormatCount, cl_mem_flags flags);
|
||||
std::vector<cl_image_format> &outFormatList,
|
||||
cl_mem_flags flags);
|
||||
size_t random_in_ranges(size_t minimum, size_t rangeA, size_t rangeB, MTdata d);
|
||||
|
||||
#endif // IMAGES_COMMON_H
|
||||
|
||||
Reference in New Issue
Block a user