diff --git a/test_conformance/images/kernel_read_write/test_loops.cpp b/test_conformance/images/kernel_read_write/test_loops.cpp index ea1e1c7c..60144e05 100644 --- a/test_conformance/images/kernel_read_write/test_loops.cpp +++ b/test_conformance/images/kernel_read_write/test_loops.cpp @@ -175,6 +175,18 @@ int test_read_image_formats(cl_device_id device, cl_context context, bool flipFlop[2] = { false, true }; int normalizedIdx, floatCoordIdx; + if (gTestMipmaps) + { + if (0 == is_extension_available(device, "cl_khr_mipmap_image")) + { + log_info("-----------------------------------------------------\n"); + log_info("This device does not support " + "cl_khr_mipmap_image.\nSkipping mipmapped image test. \n"); + log_info( + "-----------------------------------------------------\n\n"); + return 0; + } + } // Use this run if we were told to only run a certain filter mode if (gFilterModeToUse != (cl_filter_mode)-1