vulkan: render_cache: More clang compilation fixes
This commit is contained in:
parent
1c40e46cd1
commit
b65c7e6297
|
@ -760,6 +760,9 @@ bool RenderCache::ParseConfiguration(RenderConfiguration* config) {
|
||||||
case ColorRenderTargetFormat::k_2_10_10_10_FLOAT_unknown:
|
case ColorRenderTargetFormat::k_2_10_10_10_FLOAT_unknown:
|
||||||
config->color[i].format = ColorRenderTargetFormat::k_2_10_10_10_FLOAT;
|
config->color[i].format = ColorRenderTargetFormat::k_2_10_10_10_FLOAT;
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
//The rest are good
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -840,7 +843,7 @@ bool RenderCache::ConfigureRenderPass(VkCommandBuffer command_buffer,
|
||||||
color_key.edram_format = static_cast<uint16_t>(config->color[i].format);
|
color_key.edram_format = static_cast<uint16_t>(config->color[i].format);
|
||||||
target_color_attachments[i] =
|
target_color_attachments[i] =
|
||||||
FindOrCreateTileView(command_buffer, color_key);
|
FindOrCreateTileView(command_buffer, color_key);
|
||||||
if (!target_color_attachments) {
|
if (!target_color_attachments[i]) {
|
||||||
XELOGE("Failed to get tile view for color attachment");
|
XELOGE("Failed to get tile view for color attachment");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -1145,6 +1148,9 @@ void RenderCache::BlitToImage(VkCommandBuffer command_buffer,
|
||||||
case ColorRenderTargetFormat::k_2_10_10_10_FLOAT_unknown:
|
case ColorRenderTargetFormat::k_2_10_10_10_FLOAT_unknown:
|
||||||
format = uint32_t(ColorRenderTargetFormat::k_2_10_10_10_FLOAT);
|
format = uint32_t(ColorRenderTargetFormat::k_2_10_10_10_FLOAT);
|
||||||
break;
|
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:
|
case ColorRenderTargetFormat::k_2_10_10_10_FLOAT_unknown:
|
||||||
format = ColorRenderTargetFormat::k_2_10_10_10_FLOAT;
|
format = ColorRenderTargetFormat::k_2_10_10_10_FLOAT;
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
//Rest are OK
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t tile_width = num_samples == MsaaSamples::k4X ? 40 : 80;
|
uint32_t tile_width = num_samples == MsaaSamples::k4X ? 40 : 80;
|
||||||
|
|
Loading…
Reference in New Issue