From 1430798eacfa75956d5b6490c266854b8d5abc53 Mon Sep 17 00:00:00 2001 From: Yonggang Luo Date: Thu, 14 Aug 2025 06:34:33 +0800 Subject: [PATCH] radv: Fixes warning implicit conversion from enum type ../src/amd/vulkan/radv_pipeline_rt.c(142): error C2220: the following warning is treated as an error ../src/amd/vulkan/radv_pipeline_rt.c(142): warning C5286: implicit conversion from enum type 'VkShaderGroupShaderKHR' to enum type 'VkRayTracingShaderGroupTypeKHR'; use an explicit cast to silence this warning ../src/amd/vulkan/radv_pipeline_rt.c(142): note: to simplify migration, consider the temporary use of /Wv:18 flag with the version of the compiler with which you used to build without warnings Signed-off-by: Yonggang Luo Reviewed-by: Samuel Pitoiset Part-of: --- src/amd/vulkan/radv_pipeline_rt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/amd/vulkan/radv_pipeline_rt.c b/src/amd/vulkan/radv_pipeline_rt.c index 02f59b50a9d..b0cda64b02f 100644 --- a/src/amd/vulkan/radv_pipeline_rt.c +++ b/src/amd/vulkan/radv_pipeline_rt.c @@ -139,8 +139,8 @@ radv_create_group_handles(struct radv_device *device, const VkRayTracingPipeline groups[i].handle.any_hit_index = handle_from_stages(device, stage->sha1, capture_replay); } break; - case VK_SHADER_GROUP_SHADER_MAX_ENUM_KHR: - UNREACHABLE("VK_SHADER_GROUP_SHADER_MAX_ENUM_KHR"); + default: + UNREACHABLE("Invalid RT shader group type"); } if (group_info->pShaderGroupCaptureReplayHandle) {