Fix compilation on ChromeOS

TBR=enga@chromium.org
Bug: dawn:200
Change-Id: I35a414a25deed9d1d66e7ce510a704aaa0548fa9
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/28820
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
Corentin Wallez 2020-09-23 07:21:06 +00:00 committed by Commit Bot service account
parent 0b29732cd8
commit 9d0d18d952
1 changed files with 2 additions and 2 deletions

View File

@ -151,8 +151,8 @@ namespace dawn_native { namespace vulkan {
// assertion failure
void IgnoreSignalSemaphore(wgpu::Texture wrappedTexture) {
dawn_native::vulkan::ExternalImageExportInfoDmaBuf exportInfo;
dawn_native::vulkan::ExportVulkanImage(wrappedTexture.Get(), VK_IMAGE_LAYOUT_GENERAL, &exportInfo));
for (int handle : info.semaphoreHandles) {
dawn_native::vulkan::ExportVulkanImage(wrappedTexture.Get(), VK_IMAGE_LAYOUT_GENERAL, &exportInfo);
for (int handle : exportInfo.semaphoreHandles) {
ASSERT_NE(handle, -1);
close(handle);
}