mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-11-20 00:11:56 +09:00
[Magma] diagnose unavailable owned mip readback bytes
This commit is contained in:
@@ -2023,7 +2023,14 @@ namespace MobileGL::MG_Backend::DirectVulkan {
|
|||||||
return false; // a failed sync cannot substitute CPU bytes for this native image
|
return false; // a failed sync cannot substitute CPU bytes for this native image
|
||||||
}
|
}
|
||||||
if (!store.IsCovered(key, upload, level) || store.IsLevelGpuDirty(key, upload, level) ||
|
if (!store.IsCovered(key, upload, level) || store.IsLevelGpuDirty(key, upload, level) ||
|
||||||
store.LevelExtentOrUndefined(key, upload, level) != extent) return false;
|
store.LevelExtentOrUndefined(key, upload, level) != extent) {
|
||||||
|
const auto actual = store.LevelExtentOrUndefined(key, upload, level);
|
||||||
|
MGLOG_E("Magma unbacked read: {%u,%u} target=%u level=%u covered=%d gpuDirty=%d extent=%dx%dx%d requested=%dx%dx%d bytes=%zu",
|
||||||
|
handle.Slot, handle.Gen, upload, level, store.IsCovered(key, upload, level),
|
||||||
|
store.IsLevelGpuDirty(key, upload, level), actual.x(), actual.y(), actual.z(),
|
||||||
|
extent.x(), extent.y(), extent.z(), store.LevelByteSize(key, upload, level));
|
||||||
|
return false;
|
||||||
|
}
|
||||||
const auto logical = static_cast<TextureInternalFormat>(record.Desc.InternalFormat);
|
const auto logical = static_cast<TextureInternalFormat>(record.Desc.InternalFormat);
|
||||||
const auto formatInfo = ResolveTextureFormatInfo(logical);
|
const auto formatInfo = ResolveTextureFormatInfo(logical);
|
||||||
format = formatInfo.format;
|
format = formatInfo.format;
|
||||||
|
|||||||
Reference in New Issue
Block a user