lavapipe: enable shader clock

Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17868>
This commit is contained in:
Dave Airlie 2021-04-06 11:27:07 +10:00 committed by Marge Bot
parent c6cc3dece0
commit e145912654
4 changed files with 11 additions and 1 deletions

View file

@ -516,7 +516,7 @@ Khronos extensions that are not part of any Vulkan version:
VK_KHR_push_descriptor DONE (anv, lvp, radv, tu)
VK_KHR_ray_query in progress
VK_KHR_ray_tracing_pipeline in progress
VK_KHR_shader_clock DONE (anv, radv)
VK_KHR_shader_clock DONE (anv, lvp, radv)
VK_KHR_shader_integer_dot_product DONE (anv, radv, tu)
VK_KHR_shader_subgroup_uniform_control_flow DONE (anv, radv)
VK_KHR_shared_presentable_image not started

View file

@ -1 +1,2 @@
GL_ARB_shader_clock on llvmpipe
VK_KHR_shader_clock on lavapipe

View file

@ -122,6 +122,7 @@ static const struct vk_device_extension_table lvp_device_extensions_supported =
.KHR_sampler_mirror_clamp_to_edge = true,
.KHR_separate_depth_stencil_layouts = true,
.KHR_shader_atomic_int64 = true,
.KHR_shader_clock = true,
.KHR_shader_draw_parameters = true,
.KHR_shader_float16_int8 = true,
.KHR_shader_integer_dot_product = true,
@ -861,6 +862,13 @@ VKAPI_ATTR void VKAPI_CALL lvp_GetPhysicalDeviceFeatures2(
features->shaderZeroInitializeWorkgroupMemory = true;
break;
}
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_CLOCK_FEATURES_KHR: {
VkPhysicalDeviceShaderClockFeaturesKHR *features =
(VkPhysicalDeviceShaderClockFeaturesKHR *)ext;
features->shaderSubgroupClock = true;
features->shaderDeviceClock = true;
break;
}
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TEXEL_BUFFER_ALIGNMENT_FEATURES_EXT: {
VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT *features =
(VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT *)ext;

View file

@ -411,6 +411,7 @@ lvp_shader_compile_to_ir(struct lvp_pipeline *pipeline,
.device_group = true,
.draw_parameters = true,
.shader_viewport_index_layer = true,
.shader_clock = true,
.multiview = true,
.physical_storage_buffer_address = true,
.int64_atomics = true,