mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-11-19 16:01:57 +09:00
[MG_Backend] (Disaggregated): P5f fm - keep failed storage upgrades out of the sync fast path
This commit is contained in:
@@ -2616,7 +2616,7 @@ namespace MobileGL::MG_Backend::DirectVulkan {
|
|||||||
(void)inserted;
|
(void)inserted;
|
||||||
TextureResource& resource = it->second;
|
TextureResource& resource = it->second;
|
||||||
if (resource.image != VK_NULL_HANDLE && resource.syncedWireSerial == record.Serial &&
|
if (resource.image != VK_NULL_HANDLE && resource.syncedWireSerial == record.Serial &&
|
||||||
record.PendingUploads.empty() && (!requireStorage || resource.storageUsageResolved)) {
|
record.PendingUploads.empty() && (!requireStorage || (resource.usageFlags & VK_IMAGE_USAGE_STORAGE_BIT) != 0)) {
|
||||||
return &resource;
|
return &resource;
|
||||||
}
|
}
|
||||||
if (!SyncWireTextureShape(record, resource, requireStorage)) {
|
if (!SyncWireTextureShape(record, resource, requireStorage)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user