From a4505d37ffe7ea7e4a66b97a861420380e1e13de Mon Sep 17 00:00:00 2001 From: Charles Giessen Date: Tue, 28 Jul 2020 14:29:09 -0600 Subject: [PATCH] vulkaninfo: fix device ext list having bad items vkconfig exposed an issue in the vulkan-loader which resulted in two different sizes returned from vkEnumerateDeviceExtensionProperties(). A full fix requires a change to the loader, but this commit stops the issue from happening in vulkaninfo. Change-Id: I808d1fd13868711675aae5c91ea5100ec8cbc316 --- vulkaninfo/vulkaninfo.h | 1 + 1 file changed, 1 insertion(+) diff --git a/vulkaninfo/vulkaninfo.h b/vulkaninfo/vulkaninfo.h index c83691b..8eca1ea 100644 --- a/vulkaninfo/vulkaninfo.h +++ b/vulkaninfo/vulkaninfo.h @@ -240,6 +240,7 @@ auto GetVectorInit(const char *func_name, F &&f, T init, Ts &&... ts) -> std::ve if (err) THROW_VK_ERR(func_name, err); results.resize(count, init); err = f(ts..., &count, results.data()); + results.resize(count); } while (err == VK_INCOMPLETE); if (err) THROW_VK_ERR(func_name, err); return results; -- 2.7.4