diff --git a/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp b/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp index 8f231a4352..31f8cab38f 100644 --- a/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp +++ b/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp @@ -677,7 +677,7 @@ void GraphicsPipeline::MakePipeline(VkRenderPass render_pass) { .sType = VK_STRUCTURE_TYPE_PIPELINE_TESSELLATION_STATE_CREATE_INFO, .pNext = nullptr, .flags = 0, - .patchControlPoints = key.state.patch_control_points_minus_one.Value() + 1, + .patchControlPoints = static_cast(key.state.patch_control_points_minus_one.Value()) + 1, }; std::array swizzles; std::ranges::transform(key.state.viewport_swizzles, swizzles.begin(), UnpackViewportSwizzle); diff --git a/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp b/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp index bcfc4b8b4d..e14d037858 100644 --- a/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp +++ b/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp @@ -195,7 +195,7 @@ Shader::RuntimeInfo MakeRuntimeInfo(std::span program case Shader::Stage::TessellationEval: info.tess_clockwise = key.state.tessellation_clockwise != 0; info.tess_primitive = [&key] { - const u32 raw{key.state.tessellation_primitive.Value()}; + const u32 raw = static_cast(key.state.tessellation_primitive.Value()); switch (static_cast(raw)) { case Maxwell::Tessellation::DomainType::Isolines: return Shader::TessPrimitive::Isolines; @@ -208,7 +208,7 @@ Shader::RuntimeInfo MakeRuntimeInfo(std::span program return Shader::TessPrimitive::Triangles; }(); info.tess_spacing = [&] { - const u32 raw{key.state.tessellation_spacing}; + const u32 raw = static_cast(key.state.tessellation_spacing.Value()); switch (static_cast(raw)) { case Maxwell::Tessellation::Spacing::Integer: return Shader::TessSpacing::Equal;