mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-06-25 11:56:18 +00:00
tile_manager: Downgrade assert to error (#3067)
This commit is contained in:
parent
c20d02dd40
commit
12f4a8f073
1 changed files with 4 additions and 1 deletions
|
@ -269,7 +269,10 @@ std::pair<vk::Buffer, u32> TileManager::TryDetile(vk::Buffer in_buffer, u32 in_o
|
|||
params.height = info.size.height;
|
||||
if (info.tiling_mode == AmdGpu::TilingMode::Texture_Volume ||
|
||||
info.tiling_mode == AmdGpu::TilingMode::Display_MicroTiled) {
|
||||
ASSERT(info.resources.levels == 1);
|
||||
if (info.resources.levels != 1) {
|
||||
LOG_ERROR(Render_Vulkan, "Unexpected mipmaps for volume and display tilings {}",
|
||||
info.resources.levels);
|
||||
}
|
||||
const auto tiles_per_row = info.pitch / 8u;
|
||||
const auto tiles_per_slice = tiles_per_row * ((info.size.height + 7u) / 8u);
|
||||
params.sizes[0] = tiles_per_row;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue