From b65c7e62970e3b1cc12aa9226b3909c42eb8be61 Mon Sep 17 00:00:00 2001 From: Doug Johnson Date: Sun, 9 Jul 2017 16:14:04 -0600 Subject: [PATCH] vulkan: render_cache: More clang compilation fixes --- src/xenia/gpu/vulkan/render_cache.cc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/xenia/gpu/vulkan/render_cache.cc b/src/xenia/gpu/vulkan/render_cache.cc index 8cdcd86f0..90729bde3 100644 --- a/src/xenia/gpu/vulkan/render_cache.cc +++ b/src/xenia/gpu/vulkan/render_cache.cc @@ -760,6 +760,9 @@ bool RenderCache::ParseConfiguration(RenderConfiguration* config) { case ColorRenderTargetFormat::k_2_10_10_10_FLOAT_unknown: config->color[i].format = ColorRenderTargetFormat::k_2_10_10_10_FLOAT; break; + default: + //The rest are good + break; } } } else { @@ -840,7 +843,7 @@ bool RenderCache::ConfigureRenderPass(VkCommandBuffer command_buffer, color_key.edram_format = static_cast(config->color[i].format); target_color_attachments[i] = FindOrCreateTileView(command_buffer, color_key); - if (!target_color_attachments) { + if (!target_color_attachments[i]) { XELOGE("Failed to get tile view for color attachment"); return false; } @@ -1145,6 +1148,9 @@ void RenderCache::BlitToImage(VkCommandBuffer command_buffer, case ColorRenderTargetFormat::k_2_10_10_10_FLOAT_unknown: format = uint32_t(ColorRenderTargetFormat::k_2_10_10_10_FLOAT); break; + default: + //Rest are OK + break; } } @@ -1258,6 +1264,9 @@ void RenderCache::ClearEDRAMColor(VkCommandBuffer command_buffer, case ColorRenderTargetFormat::k_2_10_10_10_FLOAT_unknown: format = ColorRenderTargetFormat::k_2_10_10_10_FLOAT; break; + default: + //Rest are OK + break; } uint32_t tile_width = num_samples == MsaaSamples::k4X ? 40 : 80;