Silence warning for MacOS
MacOS tests have been spamming a lot of lines of this warning from
SwiftShader, sometimes hiding the actual cause of an issue:
../../third_party/swiftshader/src/Vulkan/VkDeviceMemory.cpp:235 WARNING: VkMemoryAllocateInfo->pNext sType = 1000178000
This CL properly silences this warning.
Bug: chromium:1185611
Change-Id: Ic9c84c0d57dc142904626bbb3c8a0af5c3cff40d
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/54008
Presubmit-Ready: Alexis Hétu <sugoi@google.com>
Kokoro-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
Tested-by: Alexis Hétu <sugoi@google.com>
Commit-Queue: Alexis Hétu <sugoi@google.com>
diff --git a/src/Vulkan/VkDeviceMemory.cpp b/src/Vulkan/VkDeviceMemory.cpp
index 76cfe20..42a4664 100644
--- a/src/Vulkan/VkDeviceMemory.cpp
+++ b/src/Vulkan/VkDeviceMemory.cpp
@@ -231,6 +231,10 @@
// "If the pNext chain includes a VkMemoryDedicatedAllocateInfo structure, then that structure
// includes a handle of the sole buffer or image resource that the memory *can* be bound to."
break;
+ case VK_STRUCTURE_TYPE_IMPORT_MEMORY_HOST_POINTER_INFO_EXT:
+ // This will be handled at a later point within vk::findTraits() by
+ // ExternalMemoryHost::AllocateInfo()
+ break;
default:
WARN("VkMemoryAllocateInfo->pNext sType = %s", vk::Stringify(createInfo->sType).c_str());
}