mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
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:
parent
652e0d8ccf
commit
1430798eac
1 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue