summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_vulkan
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-07-24 04:54:59 +0200
committerGitHub <noreply@github.com>2020-07-24 04:54:59 +0200
commit1d7de0a8ee04713c5d8011f379524ff53cb8c483 (patch)
tree5882cfedf9f540b858b169503e1362ff5a59d3d3 /src/video_core/renderer_vulkan
parentMerge pull request #4353 from ameerj/gc-refactor (diff)
parentvideo_core: Remove unused variables (diff)
downloadyuzu-1d7de0a8ee04713c5d8011f379524ff53cb8c483.tar
yuzu-1d7de0a8ee04713c5d8011f379524ff53cb8c483.tar.gz
yuzu-1d7de0a8ee04713c5d8011f379524ff53cb8c483.tar.bz2
yuzu-1d7de0a8ee04713c5d8011f379524ff53cb8c483.tar.lz
yuzu-1d7de0a8ee04713c5d8011f379524ff53cb8c483.tar.xz
yuzu-1d7de0a8ee04713c5d8011f379524ff53cb8c483.tar.zst
yuzu-1d7de0a8ee04713c5d8011f379524ff53cb8c483.zip
Diffstat (limited to 'src/video_core/renderer_vulkan')
-rw-r--r--src/video_core/renderer_vulkan/fixed_pipeline_state.cpp1
-rw-r--r--src/video_core/renderer_vulkan/vk_shader_decompiler.cpp5
2 files changed, 2 insertions, 4 deletions
diff --git a/src/video_core/renderer_vulkan/fixed_pipeline_state.cpp b/src/video_core/renderer_vulkan/fixed_pipeline_state.cpp
index d1f0ea932..81a39a3b8 100644
--- a/src/video_core/renderer_vulkan/fixed_pipeline_state.cpp
+++ b/src/video_core/renderer_vulkan/fixed_pipeline_state.cpp
@@ -40,7 +40,6 @@ constexpr std::array POLYGON_OFFSET_ENABLE_LUT = {
} // Anonymous namespace
void FixedPipelineState::Fill(const Maxwell& regs, bool has_extended_dynamic_state) {
- const auto& clip = regs.view_volume_clip_control;
const std::array enabled_lut = {regs.polygon_offset_point_enable,
regs.polygon_offset_line_enable,
regs.polygon_offset_fill_enable};
diff --git a/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp b/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp
index 694452fd8..cd7d7a4e4 100644
--- a/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp
+++ b/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp
@@ -706,9 +706,9 @@ private:
}
void DeclareInternalFlags() {
- constexpr std::array names = {"zero", "sign", "carry", "overflow"};
+ static constexpr std::array names{"zero", "sign", "carry", "overflow"};
+
for (std::size_t flag = 0; flag < INTERNAL_FLAGS_COUNT; ++flag) {
- const auto flag_code = static_cast<InternalFlag>(flag);
const Id id = OpVariable(t_prv_bool, spv::StorageClass::Private, v_false);
internal_flags[flag] = AddGlobalVariable(Name(id, names[flag]));
}
@@ -2804,7 +2804,6 @@ private:
std::map<GlobalMemoryBase, Id> global_buffers;
std::map<u32, TexelBuffer> uniform_texels;
std::map<u32, SampledImage> sampled_images;
- std::map<u32, TexelBuffer> storage_texels;
std::map<u32, StorageImage> images;
std::array<Id, Maxwell::NumRenderTargets> frag_colors{};