mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-23 01:19:16 +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())};
|
auto mappings{ctx.channelCtx.asCtx->gmmu.TranslateRange(textureHeader.Iova(), guest.GetSize())};
|
||||||
guest.mappings.assign(mappings.begin(), mappings.end());
|
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());
|
Logger::Warn("Unmapped texture in pool: 0x{:X}", textureHeader.Iova());
|
||||||
if (!nullTextureView)
|
if (!nullTextureView)
|
||||||
nullTextureView = CreateNullTexture(ctx);
|
nullTextureView = CreateNullTexture(ctx);
|
||||||
|
Loading…
Reference in New Issue
Block a user