mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Added support to run the CTS with Vulkan validation layers (#2246)
Fixes #2116 according to task description. As approved 25Mar25
This commit is contained in:
@@ -40,8 +40,8 @@ struct VulkanTestBase
|
||||
cl_command_queue queue, cl_int nelems)
|
||||
: device(device), context(context), num_elems(nelems)
|
||||
{
|
||||
vkDevice.reset(
|
||||
new VulkanDevice(getAssociatedVulkanPhysicalDevice(device)));
|
||||
vkDevice.reset(new VulkanDevice(
|
||||
getAssociatedVulkanPhysicalDevice(device, useValidationLayers)));
|
||||
|
||||
cl_platform_id platform;
|
||||
cl_int error = clGetDeviceInfo(device, CL_DEVICE_PLATFORM,
|
||||
@@ -101,7 +101,7 @@ int MakeAndRunTest(cl_device_id device, cl_context context,
|
||||
return TEST_SKIPPED_ITSELF;
|
||||
}
|
||||
|
||||
if (!checkVkSupport())
|
||||
if (!checkVkSupport(useValidationLayers))
|
||||
{
|
||||
log_info("Vulkan supported GPU not found \n");
|
||||
log_info("TEST SKIPPED \n");
|
||||
|
||||
Reference in New Issue
Block a user