[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:
Sven van Haastregt
2022-09-13 14:48:54 +01:00
committed by GitHub
parent 1d74c85ff3
commit 5d5bffba13
4 changed files with 36 additions and 32 deletions

View File

@@ -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);