mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 08:50:13 +01:00
tu: Add GetPhysicalDeviceFeatures2() support for more VK 1.2 core features.
You can get them from the big blob of features, or through extension-specific structs. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12944>
This commit is contained in:
parent
ab5e77d854
commit
24a539e94c
1 changed files with 27 additions and 0 deletions
|
|
@ -594,6 +594,12 @@ tu_GetPhysicalDeviceFeatures2(VkPhysicalDevice physicalDevice,
|
|||
CORE_FEATURE(1, 1, multiviewTessellationShader);
|
||||
break;
|
||||
}
|
||||
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGELESS_FRAMEBUFFER_FEATURES_KHR: {
|
||||
VkPhysicalDeviceImagelessFramebufferFeaturesKHR *features =
|
||||
(VkPhysicalDeviceImagelessFramebufferFeaturesKHR *)ext;
|
||||
CORE_FEATURE(1, 2, imagelessFramebuffer);
|
||||
break;
|
||||
}
|
||||
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_DRAW_PARAMETERS_FEATURES: {
|
||||
VkPhysicalDeviceShaderDrawParametersFeatures *features =
|
||||
(VkPhysicalDeviceShaderDrawParametersFeatures *) ext;
|
||||
|
|
@ -646,6 +652,27 @@ tu_GetPhysicalDeviceFeatures2(VkPhysicalDevice physicalDevice,
|
|||
CORE_FEATURE(1, 2, runtimeDescriptorArray);
|
||||
break;
|
||||
}
|
||||
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_8BIT_STORAGE_FEATURES_KHR: {
|
||||
VkPhysicalDevice8BitStorageFeaturesKHR *features =
|
||||
(VkPhysicalDevice8BitStorageFeaturesKHR *)ext;
|
||||
CORE_FEATURE(1, 2, storageBuffer8BitAccess);
|
||||
CORE_FEATURE(1, 2, uniformAndStorageBuffer8BitAccess);
|
||||
CORE_FEATURE(1, 2, storagePushConstant8);
|
||||
break;
|
||||
}
|
||||
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_BUFFER_DEVICE_ADDRESS_FEATURES_KHR: {
|
||||
VkPhysicalDeviceBufferDeviceAddressFeaturesKHR *features = (void *)ext;
|
||||
CORE_FEATURE(1, 2, bufferDeviceAddress);
|
||||
CORE_FEATURE(1, 2, bufferDeviceAddressCaptureReplay);
|
||||
CORE_FEATURE(1, 2, bufferDeviceAddressMultiDevice);
|
||||
break;
|
||||
}
|
||||
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_SUBGROUP_EXTENDED_TYPES_FEATURES_KHR: {
|
||||
VkPhysicalDeviceShaderSubgroupExtendedTypesFeaturesKHR *features =
|
||||
(VkPhysicalDeviceShaderSubgroupExtendedTypesFeaturesKHR *)ext;
|
||||
CORE_FEATURE(1, 2, shaderSubgroupExtendedTypes);
|
||||
break;
|
||||
}
|
||||
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_CONDITIONAL_RENDERING_FEATURES_EXT: {
|
||||
VkPhysicalDeviceConditionalRenderingFeaturesEXT *features =
|
||||
(VkPhysicalDeviceConditionalRenderingFeaturesEXT *) ext;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue