Treat partially unmapped textures as unmapped

This commit is contained in:
Billy Laws 2023-03-27 22:11:57 +01:00
parent bbe4872a95
commit bbc8ccb823
1 changed files with 1 additions and 1 deletions

View File

@ -346,7 +346,7 @@ namespace skyline::gpu::interconnect {
auto mappings{ctx.channelCtx.asCtx->gmmu.TranslateRange(textureHeader.Iova(), guest.GetSize())};
guest.mappings.assign(mappings.begin(), mappings.end());
if (guest.mappings.empty() || !guest.mappings.front().valid() || guest.mappings.front().empty()) {
if (guest.mappings.empty() || !std::all_of(guest.mappings.begin(), guest.mappings.end(), [](auto map) { return map.valid(); }) || guest.mappings.front().empty()) {
Logger::Warn("Unmapped texture in pool: 0x{:X}", textureHeader.Iova());
if (!nullTextureView)
nullTextureView = CreateNullTexture(ctx);