mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-24 07:59: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
@@ -86,10 +86,11 @@ static int test_image_info( cl_context context, cl_command_queue queue,
|
||||
return CheckGLObjectInfo(streams[0], object_type, glTexture, glTarget, 0);
|
||||
}
|
||||
|
||||
static int test_image_format_get_info(
|
||||
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_get_info(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;
|
||||
|
||||
@@ -197,9 +198,11 @@ static int test_image_format_get_info(
|
||||
&actualType, (void **)&outBuffer );
|
||||
}
|
||||
|
||||
int test_images_get_info_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_get_info_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