a/vk: Normalize member names in extensions

This commit is contained in:
Ryan Pavlik 2021-11-09 10:04:07 -06:00
parent 01c02897dc
commit 9fc992d540
2 changed files with 5 additions and 5 deletions

View file

@ -1223,7 +1223,7 @@ fill_in_has_extensions(struct vk_bundle *vk, const char **device_extensions, uin
// Reset before filling out. // Reset before filling out.
vk->has_GOOGLE_display_timing = false; vk->has_GOOGLE_display_timing = false;
vk->has_EXT_global_priority = false; vk->has_EXT_global_priority = false;
vk->has_VK_EXT_robustness2 = false; vk->has_EXT_robustness2 = false;
for (uint32_t i = 0; i < num_device_extensions; i++) { for (uint32_t i = 0; i < num_device_extensions; i++) {
const char *ext = device_extensions[i]; const char *ext = device_extensions[i];
@ -1236,7 +1236,7 @@ fill_in_has_extensions(struct vk_bundle *vk, const char **device_extensions, uin
} }
#ifdef VK_EXT_robustness2 #ifdef VK_EXT_robustness2
if (strcmp(ext, VK_EXT_ROBUSTNESS_2_EXTENSION_NAME) == 0) { if (strcmp(ext, VK_EXT_ROBUSTNESS_2_EXTENSION_NAME) == 0) {
vk->has_VK_EXT_robustness2 = true; vk->has_EXT_robustness2 = true;
} }
#endif #endif
} }
@ -1346,7 +1346,7 @@ filter_device_features(struct vk_bundle *vk,
}; };
#ifdef VK_EXT_robustness2 #ifdef VK_EXT_robustness2
if (vk->has_VK_EXT_robustness2) { if (vk->has_EXT_robustness2) {
physical_device_features.pNext = physical_device_features.pNext; physical_device_features.pNext = physical_device_features.pNext;
physical_device_features.pNext = (void *)&robust_info; physical_device_features.pNext = (void *)&robust_info;
} }
@ -1475,7 +1475,7 @@ vk_create_device(struct vk_bundle *vk,
}; };
#ifdef VK_EXT_robustness2 #ifdef VK_EXT_robustness2
if (vk->has_VK_EXT_robustness2) { if (vk->has_EXT_robustness2) {
// This struct is a in/out struct, while device_create_info has a const pNext. // This struct is a in/out struct, while device_create_info has a const pNext.
robust_info.pNext = (void *)device_create_info.pNext; robust_info.pNext = (void *)device_create_info.pNext;
device_create_info.pNext = (void *)&robust_info; device_create_info.pNext = (void *)&robust_info;

View file

@ -50,7 +50,7 @@ struct vk_bundle
bool has_GOOGLE_display_timing; bool has_GOOGLE_display_timing;
bool has_EXT_global_priority; bool has_EXT_global_priority;
bool has_VK_EXT_robustness2; bool has_EXT_robustness2;
bool is_tegra; bool is_tegra;