layers: Add check for maintenance1 in test

Change-Id: I6981c356207b132d9154336258f5d4f84d6ae912
diff --git a/tests/layer_validation_tests.cpp b/tests/layer_validation_tests.cpp
index dc44646..c42b40a 100644
--- a/tests/layer_validation_tests.cpp
+++ b/tests/layer_validation_tests.cpp
@@ -13407,7 +13407,8 @@
         &formProps);
 
     // If not, skip this part of the test.
-    if (res || !m_device->phy().features().sparseBinding) {
+    if (res || !m_device->phy().features().sparseBinding ||
+        !DeviceExtensionSupported(gpu(), nullptr, VK_KHR_MAINTENANCE1_EXTENSION_NAME)) {
         return;
     }