mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-23 07:39:01 +00:00
[NFC] Declare format tables as const (#1493)
Without const, these variables would be flagged up by `-Wunused-variable`. Drop `struct` from the declarations as that is not needed in C++. Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
This commit is contained in:
committed by
GitHub
parent
1d74c85ff3
commit
5d5bffba13
@@ -386,10 +386,9 @@ static int test_image_read( cl_context context, cl_command_queue queue,
|
||||
width, height, depth, sampleNum, outFormat, outType, outResultBuffer );
|
||||
}
|
||||
|
||||
static int test_image_format_read(
|
||||
cl_context context, cl_command_queue queue,
|
||||
size_t width, size_t height, size_t depth,
|
||||
GLenum target, struct format* fmt, MTdata data)
|
||||
static int test_image_format_read(cl_context context, cl_command_queue queue,
|
||||
size_t width, size_t height, size_t depth,
|
||||
GLenum target, const format *fmt, MTdata data)
|
||||
{
|
||||
int error = 0;
|
||||
|
||||
@@ -645,9 +644,10 @@ static int test_image_format_read(
|
||||
}
|
||||
}
|
||||
|
||||
int test_images_read_common( cl_device_id device, cl_context context,
|
||||
cl_command_queue queue, struct format* formats, size_t nformats,
|
||||
GLenum *targets, size_t ntargets, sizevec_t *sizes, size_t nsizes )
|
||||
int test_images_read_common(cl_device_id device, cl_context context,
|
||||
cl_command_queue queue, const format *formats,
|
||||
size_t nformats, GLenum *targets, size_t ntargets,
|
||||
sizevec_t *sizes, size_t nsizes)
|
||||
{
|
||||
int error = 0;
|
||||
RandomSeed seed(gRandomSeed);
|
||||
|
||||
Reference in New Issue
Block a user