From c18b7a2082d182d87f1f7482e7d4517be8c2f6c2 Mon Sep 17 00:00:00 2001 From: Yiwei Zhang Date: Tue, 16 May 2023 21:36:22 -0700 Subject: [PATCH] venus: sync to latest protocol from header v1.3.248 This is to make later protocol update CL to be easily backported to older branches. Signed-off-by: Yiwei Zhang Part-of: --- src/virtio/venus-protocol/vn_protocol_driver.h | 2 +- .../venus-protocol/vn_protocol_driver_info.h | 2 +- .../venus-protocol/vn_protocol_driver_types.h | 36 ++++++++++++++++++++++ 3 files changed, 38 insertions(+), 2 deletions(-) diff --git a/src/virtio/venus-protocol/vn_protocol_driver.h b/src/virtio/venus-protocol/vn_protocol_driver.h index c9b07ac..6c3f6e8 100644 --- a/src/virtio/venus-protocol/vn_protocol_driver.h +++ b/src/virtio/venus-protocol/vn_protocol_driver.h @@ -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 diff --git a/src/virtio/venus-protocol/vn_protocol_driver_info.h b/src/virtio/venus-protocol/vn_protocol_driver_info.h index 133d895..bb0ff47 100644 --- a/src/virtio/venus-protocol/vn_protocol_driver_info.h +++ b/src/virtio/venus-protocol/vn_protocol_driver_info.h @@ -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 diff --git a/src/virtio/venus-protocol/vn_protocol_driver_types.h b/src/virtio/venus-protocol/vn_protocol_driver_types.h index 7f588ce..80f4d93 100644 --- a/src/virtio/venus-protocol/vn_protocol_driver_types.h +++ b/src/virtio/venus-protocol/vn_protocol_driver_types.h @@ -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 -- 2.7.4