[GPU] RT size function adjustments for Vulkan convenience

This commit is contained in:
Triang3l
2021-06-19 13:57:04 +03:00
parent f6e48d5386
commit 4a95f72fba
2 changed files with 8 additions and 2 deletions

View File

@@ -845,7 +845,9 @@ RenderTargetCache::GetConfigDepthFloat24Conversion() {
uint32_t RenderTargetCache::GetRenderTargetHeight(
uint32_t pitch_tiles_at_32bpp, xenos::MsaaSamples msaa_samples) const {
assert_not_zero(pitch_tiles_at_32bpp);
if (!pitch_tiles_at_32bpp) {
return 0;
}
// Down to the end of EDRAM.
uint32_t tile_rows = (xenos::kEdramTileCount + (pitch_tiles_at_32bpp - 1)) /
pitch_tiles_at_32bpp;