mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-26 07:04:17 +01:00
Treat partially unmapped textures as unmapped
This commit is contained in:
parent
bbe4872a95
commit
bbc8ccb823
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user