diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/renderer_vulkan/vk_compute_pipeline.cpp | 4 | ||||
| -rw-r--r-- | src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp | 2 | ||||
| -rw-r--r-- | src/video_core/vulkan_common/vulkan_device.h | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/video_core/renderer_vulkan/vk_compute_pipeline.cpp b/src/video_core/renderer_vulkan/vk_compute_pipeline.cpp index 6e9f66262..6611c1de3 100644 --- a/src/video_core/renderer_vulkan/vk_compute_pipeline.cpp +++ b/src/video_core/renderer_vulkan/vk_compute_pipeline.cpp | |||
| @@ -95,7 +95,7 @@ void ComputePipeline::Configure(Tegra::Engines::KeplerCompute& kepler_compute, | |||
| 95 | ASSERT(((qmd.const_buffer_enable_mask >> desc.cbuf_index) & 1) != 0); | 95 | ASSERT(((qmd.const_buffer_enable_mask >> desc.cbuf_index) & 1) != 0); |
| 96 | const u32 index_offset{index << desc.size_shift}; | 96 | const u32 index_offset{index << desc.size_shift}; |
| 97 | const u32 offset{desc.cbuf_offset + index_offset}; | 97 | const u32 offset{desc.cbuf_offset + index_offset}; |
| 98 | const GPUVAddr addr{cbufs[desc.cbuf_index].Address() + desc.cbuf_offset}; | 98 | const GPUVAddr addr{cbufs[desc.cbuf_index].Address() + offset}; |
| 99 | if constexpr (std::is_same_v<decltype(desc), const Shader::TextureDescriptor&> || | 99 | if constexpr (std::is_same_v<decltype(desc), const Shader::TextureDescriptor&> || |
| 100 | std::is_same_v<decltype(desc), const Shader::TextureBufferDescriptor&>) { | 100 | std::is_same_v<decltype(desc), const Shader::TextureBufferDescriptor&>) { |
| 101 | if (desc.has_secondary) { | 101 | if (desc.has_secondary) { |
| @@ -136,7 +136,7 @@ void ComputePipeline::Configure(Tegra::Engines::KeplerCompute& kepler_compute, | |||
| 136 | ImageId* texture_buffer_ids{image_view_ids.data()}; | 136 | ImageId* texture_buffer_ids{image_view_ids.data()}; |
| 137 | size_t index{}; | 137 | size_t index{}; |
| 138 | const auto add_buffer{[&](const auto& desc) { | 138 | const auto add_buffer{[&](const auto& desc) { |
| 139 | for (u32 index = 0; index < desc.count; ++index) { | 139 | for (u32 i = 0; index < desc.count; ++i) { |
| 140 | bool is_written{false}; | 140 | bool is_written{false}; |
| 141 | if constexpr (std::is_same_v<decltype(desc), const Shader::ImageBufferDescriptor&>) { | 141 | if constexpr (std::is_same_v<decltype(desc), const Shader::ImageBufferDescriptor&>) { |
| 142 | is_written = desc.is_written; | 142 | is_written = desc.is_written; |
diff --git a/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp b/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp index e43db280f..a8b402253 100644 --- a/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp +++ b/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp | |||
| @@ -226,7 +226,7 @@ void GraphicsPipeline::Configure(bool is_indexed) { | |||
| 226 | for (size_t stage = 0; stage < Maxwell::MaxShaderStage; ++stage) { | 226 | for (size_t stage = 0; stage < Maxwell::MaxShaderStage; ++stage) { |
| 227 | size_t index{}; | 227 | size_t index{}; |
| 228 | const auto add_buffer{[&](const auto& desc) { | 228 | const auto add_buffer{[&](const auto& desc) { |
| 229 | for (u32 index = 0; index < desc.count; ++index) { | 229 | for (u32 i = 0; i < desc.count; ++i) { |
| 230 | bool is_written{false}; | 230 | bool is_written{false}; |
| 231 | if constexpr (std::is_same_v<decltype(desc), | 231 | if constexpr (std::is_same_v<decltype(desc), |
| 232 | const Shader::ImageBufferDescriptor&>) { | 232 | const Shader::ImageBufferDescriptor&>) { |
diff --git a/src/video_core/vulkan_common/vulkan_device.h b/src/video_core/vulkan_common/vulkan_device.h index 4415558bb..ebe073293 100644 --- a/src/video_core/vulkan_common/vulkan_device.h +++ b/src/video_core/vulkan_common/vulkan_device.h | |||
| @@ -4,10 +4,10 @@ | |||
| 4 | 4 | ||
| 5 | #pragma once | 5 | #pragma once |
| 6 | 6 | ||
| 7 | #include <span> | ||
| 7 | #include <string> | 8 | #include <string> |
| 8 | #include <string_view> | 9 | #include <string_view> |
| 9 | #include <unordered_map> | 10 | #include <unordered_map> |
| 10 | #include <span> | ||
| 11 | #include <vector> | 11 | #include <vector> |
| 12 | 12 | ||
| 13 | #include "common/common_types.h" | 13 | #include "common/common_types.h" |