From 5ed79c2d2ba7fa2589d19a382e59ae22c6c14f40 Mon Sep 17 00:00:00 2001 From: Boris Brezillon Date: Wed, 23 Apr 2025 12:40:48 +0200 Subject: [PATCH] panvk: Advertise support for VK_KHR_shader_terminate_invocation This is already supported, we just need to toggle the switch. Signed-off-by: Boris Brezillon Reviewed-by: Lars-Ivar Hesselberg Simonsen Part-of: --- docs/relnotes/new_features.txt | 1 + src/panfrost/vulkan/panvk_physical_device.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/relnotes/new_features.txt b/docs/relnotes/new_features.txt index 24aa01a22ed..786b4c7e2b4 100644 --- a/docs/relnotes/new_features.txt +++ b/docs/relnotes/new_features.txt @@ -15,3 +15,4 @@ VK_KHR_shader_quad_control on panvk/v10+ multiDrawIndirect on panvk/v10+ VK_KHR_draw_indirect_count on panvk/v10+ VK_KHR_shader_integer_dot_product on panvk +VK_KHR_shader_terminate_invocation on panvk diff --git a/src/panfrost/vulkan/panvk_physical_device.c b/src/panfrost/vulkan/panvk_physical_device.c index 87a95472802..46bbee33242 100644 --- a/src/panfrost/vulkan/panvk_physical_device.c +++ b/src/panfrost/vulkan/panvk_physical_device.c @@ -267,6 +267,7 @@ get_device_extensions(const struct panvk_physical_device *device, .KHR_shader_subgroup_extended_types = has_vk1_1, .KHR_shader_subgroup_rotate = true, .KHR_shader_subgroup_uniform_control_flow = has_vk1_1, + .KHR_shader_terminate_invocation = true, .KHR_spirv_1_4 = arch >= 10, .KHR_storage_buffer_storage_class = true, #ifdef PANVK_USE_WSI_PLATFORM @@ -473,7 +474,7 @@ get_features(const struct panvk_physical_device *device, .pipelineCreationCacheControl = true, .privateData = true, .shaderDemoteToHelperInvocation = false, - .shaderTerminateInvocation = false, + .shaderTerminateInvocation = true, .subgroupSizeControl = true, .computeFullSubgroups = true, .synchronization2 = true,