lavapipe: enable KHR_uniform_buffer_standard_layout

I think the frontend should handle all of this fine.

Acked-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9590>
This commit is contained in:
Dave Airlie 2021-03-15 07:53:24 +10:00 committed by Marge Bot
parent 7e412a5d33
commit db8e2aad5e
2 changed files with 8 additions and 1 deletions

View File

@ -463,7 +463,7 @@ Vulkan 1.2 -- all DONE: anv
VK_KHR_shader_subgroup_extended_types DONE (anv/gen8+, radv)
VK_KHR_spirv_1_4 DONE (anv, radv)
VK_KHR_timeline_semaphore DONE (anv, radv)
VK_KHR_uniform_buffer_standard_layout DONE (anv, radv)
VK_KHR_uniform_buffer_standard_layout DONE (anv, lvp, radv)
VK_KHR_vulkan_memory_model DONE (anv, radv)
VK_EXT_descriptor_indexing DONE (anv/gen9+, radv)
VK_EXT_host_query_reset DONE (anv, radv, tu)

View File

@ -115,6 +115,7 @@ static const struct vk_device_extension_table lvp_device_extensions_supported =
#ifdef LVP_USE_WSI_PLATFORM
.KHR_swapchain = true,
#endif
.KHR_uniform_buffer_standard_layout = true,
.KHR_variable_pointers = true,
.EXT_calibrated_timestamps = true,
.EXT_conditional_rendering = true,
@ -504,6 +505,12 @@ VKAPI_ATTR void VKAPI_CALL lvp_GetPhysicalDeviceFeatures2(
features->multiviewTessellationShader = true;
break;
}
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_UNIFORM_BUFFER_STANDARD_LAYOUT_FEATURES_KHR: {
VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR *features =
(VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR *)ext;
features->uniformBufferStandardLayout = true;
break;
}
default:
break;
}