summaryrefslogtreecommitdiff
path: root/src/video_core/renderer_vulkan
diff options
context:
space:
mode:
Diffstat (limited to 'src/video_core/renderer_vulkan')
-rw-r--r--src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp2
-rw-r--r--src/video_core/renderer_vulkan/vk_shader_decompiler.cpp3
2 files changed, 2 insertions, 3 deletions
diff --git a/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp b/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp
index f8a1bcf34..970979fa1 100644
--- a/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp
+++ b/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp
@@ -230,7 +230,7 @@ vk::Pipeline VKGraphicsPipeline::CreatePipeline(const RenderPassParams& renderpa
230 if (!attribute.enabled) { 230 if (!attribute.enabled) {
231 continue; 231 continue;
232 } 232 }
233 if (input_attributes.find(static_cast<u32>(index)) == input_attributes.end()) { 233 if (!input_attributes.contains(static_cast<u32>(index))) {
234 // Skip attributes not used by the vertex shaders. 234 // Skip attributes not used by the vertex shaders.
235 continue; 235 continue;
236 } 236 }
diff --git a/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp b/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp
index 5748eab3a..ca12b3793 100644
--- a/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp
+++ b/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp
@@ -2125,8 +2125,7 @@ private:
2125 OpStore(z_pointer, depth); 2125 OpStore(z_pointer, depth);
2126 } 2126 }
2127 if (stage == ShaderType::Fragment) { 2127 if (stage == ShaderType::Fragment) {
2128 const auto SafeGetRegister = [&](u32 reg) { 2128 const auto SafeGetRegister = [this](u32 reg) {
2129 // TODO(Rodrigo): Replace with contains once C++20 releases
2130 if (const auto it = registers.find(reg); it != registers.end()) { 2129 if (const auto it = registers.find(reg); it != registers.end()) {
2131 return OpLoad(t_float, it->second); 2130 return OpLoad(t_float, it->second);
2132 } 2131 }