diff options
author | Jan Vesely <jan.vesely@rutgers.edu> | 2016-01-15 17:38:43 -0500 |
---|---|---|
committer | Jan Vesely <jan.vesely@rutgers.edu> | 2016-01-27 16:39:37 -0500 |
commit | c258135bcc3aaa6513b06db10e859a424d9370a0 (patch) | |
tree | 8176a07a21313fd62ae93483f34e22e1edff3db5 | |
parent | a48bb0c261690a72b650219bb9d07ce28a987e51 (diff) |
cl: Don't warn when using deprecated functions.
Deprecated features are required to be supported until they are removed.
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
-rw-r--r-- | tests/cl/api/get-image-info.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/tests/cl/api/get-image-info.c b/tests/cl/api/get-image-info.c index b315ae963..2d653b103 100644 --- a/tests/cl/api/get-image-info.c +++ b/tests/cl/api/get-image-info.c @@ -88,23 +88,17 @@ piglit_cl_test(const int argc, &image_desc, NULL, &errNo); - } else { - fprintf(stderr, "Could not create image. Piglit was compiled against OpenCL version >= 1.2 and cannot run this test for versions < 1.2 because clCreateImage function is not present.\n"); - return PIGLIT_WARN; - } -#else //CL_VERSION_1_2 - if(env->version <= 11) { + } else +#endif //CL_VERSION_1_2 + { image = clCreateImage2D(env->context->cl_ctx, CL_MEM_READ_WRITE, &image_format, 128, 128, 0, NULL, &errNo); - } else { - fprintf(stderr, "Could not create image. Piglit was compiled against OpenCL version < 1.2 and cannot run this test for versions >= 1.2 because clCreateImage2D function was deprecated.\n"); - return PIGLIT_WARN; } -#endif //CL_VERSION_1_2 + if(!piglit_cl_check_error(errNo, CL_SUCCESS)) { fprintf(stderr, "Failed (error code: %s): Create an image.\n", |