Skip to content

Commit 8d0e69d

Browse files
Remove unused bools in loader_device
The per-version bools aren't used anywhere, so removing them causes no issues.
1 parent 792ddba commit 8d0e69d

2 files changed

Lines changed: 0 additions & 12 deletions

File tree

loader/loader.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6460,15 +6460,6 @@ VKAPI_ATTR VkResult VKAPI_CALL terminator_CreateDevice(VkPhysicalDevice physical
64606460

64616461
VkPhysicalDeviceProperties properties;
64626462
icd_term->dispatch.GetPhysicalDeviceProperties(phys_dev_term->phys_dev, &properties);
6463-
if (properties.apiVersion >= VK_API_VERSION_1_1) {
6464-
dev->driver_extensions.version_1_1_enabled = true;
6465-
}
6466-
if (properties.apiVersion >= VK_API_VERSION_1_2) {
6467-
dev->driver_extensions.version_1_2_enabled = true;
6468-
}
6469-
if (properties.apiVersion >= VK_API_VERSION_1_3) {
6470-
dev->driver_extensions.version_1_3_enabled = true;
6471-
}
64726463

64736464
loader_log(icd_term->this_instance, VULKAN_LOADER_LAYER_BIT | VULKAN_LOADER_DRIVER_BIT, 0,
64746465
" Using \"%s\" with driver: \"%s\"", properties.deviceName, icd_term->scanned_icd->lib_name);

loader/loader_common.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,9 +250,6 @@ struct loader_device {
250250
bool ext_debug_marker_enabled;
251251
bool ext_debug_utils_enabled;
252252
bool ext_full_screen_exclusive_enabled;
253-
bool version_1_1_enabled;
254-
bool version_1_2_enabled;
255-
bool version_1_3_enabled;
256253
} driver_extensions;
257254

258255
struct loader_device *next;

0 commit comments

Comments
 (0)