tests: Adjust VkLayerTest.RequiredParameter
Replace vkEnumeratePhysicalDevices call with a call to
vkGetPhysicalDeviceQueueFamilyProperties in the RequiredParameter
layer test. This test specifes NULL for a required parameter,
expecting the parameter_validation layer to report an error. A
recent driver update on some platforms has installed an implicit
layer in front of parameter_validation, which crashes in
vkEnumeratePhysicalDevices due to the NULL parameter.
Change-Id: I46ebdec4d87b5b0039a9e39adf0e646d591f48cf
diff --git a/tests/layer_validation_tests.cpp b/tests/layer_validation_tests.cpp
index ddf8d07..8689374 100644
--- a/tests/layer_validation_tests.cpp
+++ b/tests/layer_validation_tests.cpp
@@ -568,10 +568,10 @@
m_errorMonitor->SetDesiredFailureMsg(
VK_DEBUG_REPORT_ERROR_BIT_EXT,
- "required parameter pPhysicalDeviceCount specified as NULL");
+ "required parameter pQueueFamilyPropertyCount specified as NULL");
// Specify NULL for pointer to array count
// Expected to trigger an error with parameter_validation::validate_array
- vkEnumeratePhysicalDevices(instance(), NULL, NULL);
+ vkGetPhysicalDeviceQueueFamilyProperties(gpu(), NULL, NULL);
m_errorMonitor->VerifyFound();
m_errorMonitor->SetDesiredFailureMsg(