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 <luoyonggang@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36862>
This commit is contained in:
Yonggang Luo 2025-08-14 06:34:33 +08:00 committed by Marge Bot
parent 652e0d8ccf
commit 1430798eac

View file

@ -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) {