Fix compilation error of MemoryServiceDmaBuf on ChromeOS
Bug: dawn:457 Change-Id: Id90d392470764b651bff8a804b8f3b54b6383047 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/23100 Commit-Queue: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
parent
0dc70785d8
commit
ba3c6becdf
|
@ -64,10 +64,10 @@ namespace dawn_native { namespace vulkan { namespace external_memory {
|
|||
const VulkanGlobalInfo& globalInfo =
|
||||
ToBackend(mDevice->GetAdapter())->GetBackend()->GetGlobalInfo();
|
||||
|
||||
mSupported = globalInfo.HasExt(InstanceExt::GetPhysicalDeviceProperties2 &&
|
||||
globalInfo.HasExt(InstanceExt::ExternalMemoryCapabilities) && deviceInfo.externalMemory &&
|
||||
deviceInfo.externalMemoryFD && deviceInfo.externalMemoryDmaBuf &&
|
||||
deviceInfo.imageDrmFormatModifier;
|
||||
mSupported = globalInfo.HasExt(InstanceExt::GetPhysicalDeviceProperties2) &&
|
||||
globalInfo.HasExt(InstanceExt::ExternalMemoryCapabilities) &&
|
||||
deviceInfo.externalMemory && deviceInfo.externalMemoryFD &&
|
||||
deviceInfo.externalMemoryDmaBuf && deviceInfo.imageDrmFormatModifier;
|
||||
}
|
||||
|
||||
Service::~Service() = default;
|
||||
|
|
Loading…
Reference in New Issue