venus: sync to latest protocol from header v1.3.248
authorYiwei Zhang <zzyiwei@chromium.org>
Wed, 17 May 2023 04:36:22 +0000 (21:36 -0700)
committerMarge Bot <emma+marge@anholt.net>
Tue, 30 May 2023 22:52:11 +0000 (22:52 +0000)
This is to make later protocol update CL to be easily backported to
older branches.

Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23090>

src/virtio/venus-protocol/vn_protocol_driver.h
src/virtio/venus-protocol/vn_protocol_driver_info.h
src/virtio/venus-protocol/vn_protocol_driver_types.h

index c9b07ac..6c3f6e8 100644 (file)
@@ -1,4 +1,4 @@
-/* This file is generated by venus-protocol git-36572e74. */
+/* This file is generated by venus-protocol git-f9ff73df. */
 
 /*
  * Copyright 2020 Google LLC
index 133d895..bb0ff47 100644 (file)
@@ -134,7 +134,7 @@ vn_info_wire_format_version(void)
 static inline uint32_t
 vn_info_vk_xml_version(void)
 {
-    return VK_MAKE_API_VERSION(0, 1, 3, 228);
+    return VK_MAKE_API_VERSION(0, 1, 3, 248);
 }
 
 static inline int
index 7f588ce..80f4d93 100644 (file)
@@ -1030,6 +1030,24 @@ vn_decode_VkShaderStageFlagBits(struct vn_cs_decoder *dec, VkShaderStageFlagBits
     vn_decode_int32_t(dec, (int32_t *)val);
 }
 
+static inline size_t
+vn_sizeof_VkShaderStageFlagBits_array(const VkShaderStageFlagBits *val, uint32_t count)
+{
+    return vn_sizeof_int32_t_array((const int32_t *)val, count);
+}
+
+static inline void
+vn_encode_VkShaderStageFlagBits_array(struct vn_cs_encoder *enc, const VkShaderStageFlagBits *val, uint32_t count)
+{
+    vn_encode_int32_t_array(enc, (const int32_t *)val, count);
+}
+
+static inline void
+vn_decode_VkShaderStageFlagBits_array(struct vn_cs_decoder *dec, VkShaderStageFlagBits *val, uint32_t count)
+{
+    vn_decode_int32_t_array(dec, (int32_t *)val, count);
+}
+
 /* enum VkImageUsageFlagBits */
 
 static inline size_t
@@ -2881,6 +2899,24 @@ vn_decode_VkObjectType(struct vn_cs_decoder *dec, VkObjectType *val)
     vn_decode_int32_t(dec, (int32_t *)val);
 }
 
+static inline size_t
+vn_sizeof_VkObjectType_array(const VkObjectType *val, uint32_t count)
+{
+    return vn_sizeof_int32_t_array((const int32_t *)val, count);
+}
+
+static inline void
+vn_encode_VkObjectType_array(struct vn_cs_encoder *enc, const VkObjectType *val, uint32_t count)
+{
+    vn_encode_int32_t_array(enc, (const int32_t *)val, count);
+}
+
+static inline void
+vn_decode_VkObjectType_array(struct vn_cs_decoder *dec, VkObjectType *val, uint32_t count)
+{
+    vn_decode_int32_t_array(dec, (int32_t *)val, count);
+}
+
 /* enum VkDescriptorUpdateTemplateType */
 
 static inline size_t