nvk: Only advertise VK_KHR_shader_terminate_invocation if using NAK

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26197>
This commit is contained in:
Faith Ekstrand 2023-11-14 16:22:21 -06:00 committed by Marge Bot
parent fcfa68a632
commit 82061b1b9d

View file

@ -81,7 +81,8 @@ nvk_get_device_extensions(const struct nv_device_info *info,
.KHR_shader_clock = true,
.KHR_shader_draw_parameters = true,
.KHR_shader_non_semantic_info = true,
.KHR_shader_terminate_invocation = true,
.KHR_shader_terminate_invocation =
(nvk_nak_stages(info) & VK_SHADER_STAGE_FRAGMENT_BIT) != 0,
.KHR_spirv_1_4 = true,
.KHR_storage_buffer_storage_class = true,
.KHR_timeline_semaphore = true,