tests: Add EnvVar to print driver info

Change-Id: Ibbdca100ded9e88fab3f5e40f7a52ecf10d4751c
diff --git a/tests/vkrenderframework.cpp b/tests/vkrenderframework.cpp
index 88dcedc..5c07c9c 100644
--- a/tests/vkrenderframework.cpp
+++ b/tests/vkrenderframework.cpp
@@ -501,6 +501,18 @@
     }
 
     debug_reporter_.Create(instance_);
+
+    static bool driver_printed = false;
+    if (GetEnvironment("VK_LAYER_TESTS_PRINT_DRIVER") != "" && !driver_printed) {
+        if (InstanceExtensionSupported(VK_KHR_GET_PHYSICAL_DEVICE_PROPERTIES_2_EXTENSION_NAME)) {
+            auto driver_properties = LvlInitStruct<VkPhysicalDeviceDriverProperties>();
+            auto physical_device_properties2 = LvlInitStruct<VkPhysicalDeviceProperties2>(&driver_properties);
+            vk::GetPhysicalDeviceProperties2(gpu_, &physical_device_properties2);
+            printf("Driver Name = %s\n", driver_properties.driverName);
+            printf("Driver Info = %s\n", driver_properties.driverInfo);
+        }
+        driver_printed = true;
+    }
 }
 
 void VkRenderFramework::ShutdownFramework() {