From d06eb3f52fb48954549b0d7a72c93db5ff8855b4 Mon Sep 17 00:00:00 2001 From: CamilleLaVey Date: Sat, 7 Mar 2026 01:32:27 -0400 Subject: [PATCH] [vulkan] Changed info.color_output_type gate --- .../renderer_vulkan/vk_pipeline_cache.cpp | 20 +++++++++---------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp b/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp index cf20e53175..85234838b8 100644 --- a/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp +++ b/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp @@ -260,19 +260,17 @@ Shader::RuntimeInfo MakeRuntimeInfo(std::span program info.active_color_outputs[0] = true; } - if (device.IsMoltenVK()) { - for (size_t i = 0; i < 8; ++i) { - const auto format = static_cast(key.state.color_formats[i]); - const auto pixel_format = VideoCore::Surface::PixelFormatFromRenderTargetFormat(format); - if (VideoCore::Surface::IsPixelFormatInteger(pixel_format)) { - if (VideoCore::Surface::IsPixelFormatSignedInteger(pixel_format)) { - info.color_output_types[i] = Shader::AttributeType::SignedInt; - } else { - info.color_output_types[i] = Shader::AttributeType::UnsignedInt; - } + for (size_t i = 0; i < 8; ++i) { + const auto format = static_cast(key.state.color_formats[i]); + const auto pixel_format = VideoCore::Surface::PixelFormatFromRenderTargetFormat(format); + if (VideoCore::Surface::IsPixelFormatInteger(pixel_format)) { + if (VideoCore::Surface::IsPixelFormatSignedInteger(pixel_format)) { + info.color_output_types[i] = Shader::AttributeType::SignedInt; } else { - info.color_output_types[i] = Shader::AttributeType::Float; + info.color_output_types[i] = Shader::AttributeType::UnsignedInt; } + } else { + info.color_output_types[i] = Shader::AttributeType::Float; } } break;