~mmach/netext73/mesa-ryzen

« back to all changes in this revision

Viewing changes to src/virtio/venus-protocol/vn_protocol_driver_types.h

  • Committer: mmach
  • Date: 2023-11-02 21:31:35 UTC
  • Revision ID: netbit73@gmail.com-20231102213135-18d4tzh7tj0uz752
2023-11-02 22:11:57

Show diffs side-by-side

added added

removed removed

Lines of Context:
1030
1030
    vn_decode_int32_t(dec, (int32_t *)val);
1031
1031
}
1032
1032
 
 
1033
static inline size_t
 
1034
vn_sizeof_VkShaderStageFlagBits_array(const VkShaderStageFlagBits *val, uint32_t count)
 
1035
{
 
1036
    return vn_sizeof_int32_t_array((const int32_t *)val, count);
 
1037
}
 
1038
 
 
1039
static inline void
 
1040
vn_encode_VkShaderStageFlagBits_array(struct vn_cs_encoder *enc, const VkShaderStageFlagBits *val, uint32_t count)
 
1041
{
 
1042
    vn_encode_int32_t_array(enc, (const int32_t *)val, count);
 
1043
}
 
1044
 
 
1045
static inline void
 
1046
vn_decode_VkShaderStageFlagBits_array(struct vn_cs_decoder *dec, VkShaderStageFlagBits *val, uint32_t count)
 
1047
{
 
1048
    vn_decode_int32_t_array(dec, (int32_t *)val, count);
 
1049
}
 
1050
 
1033
1051
/* enum VkImageUsageFlagBits */
1034
1052
 
1035
1053
static inline size_t
2881
2899
    vn_decode_int32_t(dec, (int32_t *)val);
2882
2900
}
2883
2901
 
 
2902
static inline size_t
 
2903
vn_sizeof_VkObjectType_array(const VkObjectType *val, uint32_t count)
 
2904
{
 
2905
    return vn_sizeof_int32_t_array((const int32_t *)val, count);
 
2906
}
 
2907
 
 
2908
static inline void
 
2909
vn_encode_VkObjectType_array(struct vn_cs_encoder *enc, const VkObjectType *val, uint32_t count)
 
2910
{
 
2911
    vn_encode_int32_t_array(enc, (const int32_t *)val, count);
 
2912
}
 
2913
 
 
2914
static inline void
 
2915
vn_decode_VkObjectType_array(struct vn_cs_decoder *dec, VkObjectType *val, uint32_t count)
 
2916
{
 
2917
    vn_decode_int32_t_array(dec, (int32_t *)val, count);
 
2918
}
 
2919
 
2884
2920
/* enum VkDescriptorUpdateTemplateType */
2885
2921
 
2886
2922
static inline size_t