summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYilong Li <liyl@google.com>2021-11-17 14:58:56 -0800
committerYilong Li <liyl@google.com>2021-11-17 15:11:30 -0800
commit8ec0a180767965cb3e09cb04dafe0a0df1bb6d2a (patch)
treef1f1bf3b370bc37ed210ef647bf4aa6fc0169fc4
parentc70e5f5c33700364cc97c9b4aacfa8bf1ab699e3 (diff)
downloadgfxstream-protocols-8ec0a180767965cb3e09cb04dafe0a0df1bb6d2a.tar.gz
Reland "macOS: Remove Vulkan cereal marshaling / decoding code f"
This reverts commit 6f67693d2fae2c5c9493cd8563497cb00297bf59. vkCreateMetalSurfaceEXT() and VkMetalSurfaceCreateInfoEXT may refer to a pointer to a opaque struct "CAMetalLayer*", which makes it unable for marshaling/unmarshaling and encoding/decoding. We should exclude the method and the struct in vulkan-cereal. Original-Change-Id: I467ca422df655ad2498f524adedd7bbe6f899390 Change-Id: Ib558e02bd82a51f75300e63cee72ae17912f727e
-rw-r--r--registry/vulkan/xml/cereal/decoder.py3
-rw-r--r--registry/vulkan/xml/cereal/marshalingdefs.py10
2 files changed, 13 insertions, 0 deletions
diff --git a/registry/vulkan/xml/cereal/decoder.py b/registry/vulkan/xml/cereal/decoder.py
index f83a3876..ba514ee0 100644
--- a/registry/vulkan/xml/cereal/decoder.py
+++ b/registry/vulkan/xml/cereal/decoder.py
@@ -711,6 +711,9 @@ custom_decodes = {
# VK_KHR_xcb_surface
"vkCreateXcbSurfaceKHR": decode_unsupported_api,
"vkGetPhysicalDeviceXcbPresentationSupportKHR": decode_unsupported_api,
+
+ # VK_EXT_metal_surface
+ "vkCreateMetalSurfaceEXT": decode_unsupported_api,
}
class VulkanDecoder(VulkanWrapperGenerator):
diff --git a/registry/vulkan/xml/cereal/marshalingdefs.py b/registry/vulkan/xml/cereal/marshalingdefs.py
index 83a03ab0..a351d86d 100644
--- a/registry/vulkan/xml/cereal/marshalingdefs.py
+++ b/registry/vulkan/xml/cereal/marshalingdefs.py
@@ -414,4 +414,14 @@ __builtin_trap();
"reservedmarshaling": "",
"reservedunmarshaling": "",
},
+ "VkMetalSurfaceCreateInfoEXT": {
+ "common": """
+// This struct should never be marshaled / unmarshaled.
+__builtin_trap();
+""",
+ "marshaling": "",
+ "unmarshaling": "",
+ "reservedmarshaling": "",
+ "reservedunmarshaling": "",
+ },
}