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:
Corentin Wallez 2020-06-11 13:37:36 +00:00 committed by Commit Bot service account
parent 0dc70785d8
commit ba3c6becdf
1 changed files with 4 additions and 4 deletions

View File

@ -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;