Skip to content

Commit

Permalink
Actually set supports_driver_properties.
Browse files Browse the repository at this point in the history
  • Loading branch information
Themaister committed Jun 8, 2024
1 parent de17772 commit c7e27df
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vulkan/context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1607,6 +1607,7 @@ bool Context::create_device(VkPhysicalDevice gpu_, VkSurfaceKHR surface,
if (ext.device_api_core_version < VK_API_VERSION_1_2)
{
ext.driver_id = driver_properties.driverID;
ext.supports_driver_properties = has_extension(VK_KHR_DRIVER_PROPERTIES_EXTENSION_NAME);
ext.vk12_props.driverID = ext.driver_id;
memcpy(ext.vk11_props.deviceUUID, id_properties.deviceUUID, sizeof(id_properties.deviceUUID));
memcpy(ext.vk11_props.driverUUID, id_properties.driverUUID, sizeof(id_properties.driverUUID));
Expand All @@ -1619,7 +1620,10 @@ bool Context::create_device(VkPhysicalDevice gpu_, VkSurfaceKHR surface,
ext.vk11_props.subgroupSize = subgroup_properties.subgroupSize;
}
else
{
ext.driver_id = ext.vk12_props.driverID;
ext.supports_driver_properties = true;
}

if (ext.device_api_core_version < VK_API_VERSION_1_3)
{
Expand Down

0 comments on commit c7e27df

Please sign in to comment.