vulkan.h: Remove vkGetFormatInfo, add features/limits (#12827, v125)
NOTES:
1/ Some layers impact from vkGetFormatInfo ->
vkGetPhysicalDeviceFormatInfo; some checks are currently disabled in
ParamChecker pending discussion on the best way to do this. Similar
checks in Image layer implemented via additional layer_data member
to link back from VkDevice -> VkPhysicalDevice.
2/ VkPhysicalDeviceFeatures, VkPhysicalDeviceLimits members all zero
for now; also some further churn to be done to the contents of these
structures.
Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
diff --git a/tests/init.cpp b/tests/init.cpp
index f353fad..cb0c445 100644
--- a/tests/init.cpp
+++ b/tests/init.cpp
@@ -350,7 +350,6 @@
VkResult err;
VkImage image;
uint32_t w, h, mipCount;
- size_t size;
VkFormat fmt;
VkFormatProperties image_fmt;
size_t data_size;
@@ -379,10 +378,7 @@
* fixed structure.
*/
- size = sizeof(image_fmt);
- err = vkGetFormatInfo(device(), fmt,
- VK_FORMAT_INFO_TYPE_PROPERTIES,
- &size, &image_fmt);
+ err = vkGetPhysicalDeviceFormatInfo(objs[m_device_id], fmt, &image_fmt);
ASSERT_VK_SUCCESS(err);
// typedef struct VkImageCreateInfo_