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:
parent
0b29732cd8
commit
9d0d18d952
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue