|
|
|
@ -1,4 +1,4 @@ |
|
|
|
|
/* This file is generated by venus-protocol git-e05ae158. */ |
|
|
|
|
/* This file is generated by venus-protocol. See vn_protocol_renderer.h. */ |
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Copyright 2020 Google LLC |
|
|
|
@ -244,6 +244,62 @@ vn_replace_VkMemoryOpaqueCaptureAddressAllocateInfo_handle(VkMemoryOpaqueCapture |
|
|
|
|
} while (pnext); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/* struct VkImportMemoryResourceInfoMESA chain */ |
|
|
|
|
|
|
|
|
|
static inline void * |
|
|
|
|
vn_decode_VkImportMemoryResourceInfoMESA_pnext_temp(struct vn_cs_decoder *dec) |
|
|
|
|
{ |
|
|
|
|
/* no known/supported struct */ |
|
|
|
|
if (vn_decode_simple_pointer(dec)) |
|
|
|
|
vn_cs_decoder_set_fatal(dec); |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static inline void |
|
|
|
|
vn_decode_VkImportMemoryResourceInfoMESA_self_temp(struct vn_cs_decoder *dec, VkImportMemoryResourceInfoMESA *val) |
|
|
|
|
{ |
|
|
|
|
/* skip val->{sType,pNext} */ |
|
|
|
|
vn_decode_uint32_t(dec, &val->resourceId); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static inline void |
|
|
|
|
vn_decode_VkImportMemoryResourceInfoMESA_temp(struct vn_cs_decoder *dec, VkImportMemoryResourceInfoMESA *val) |
|
|
|
|
{ |
|
|
|
|
VkStructureType stype; |
|
|
|
|
vn_decode_VkStructureType(dec, &stype); |
|
|
|
|
assert(stype == VK_STRUCTURE_TYPE_IMPORT_MEMORY_RESOURCE_INFO_MESA); |
|
|
|
|
|
|
|
|
|
val->sType = stype; |
|
|
|
|
val->pNext = vn_decode_VkImportMemoryResourceInfoMESA_pnext_temp(dec); |
|
|
|
|
vn_decode_VkImportMemoryResourceInfoMESA_self_temp(dec, val); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static inline void |
|
|
|
|
vn_replace_VkImportMemoryResourceInfoMESA_handle_self(VkImportMemoryResourceInfoMESA *val) |
|
|
|
|
{ |
|
|
|
|
/* skip val->sType */ |
|
|
|
|
/* skip val->pNext */ |
|
|
|
|
/* skip val->resourceId */ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static inline void |
|
|
|
|
vn_replace_VkImportMemoryResourceInfoMESA_handle(VkImportMemoryResourceInfoMESA *val) |
|
|
|
|
{ |
|
|
|
|
struct VkBaseOutStructure *pnext = (struct VkBaseOutStructure *)val; |
|
|
|
|
|
|
|
|
|
do { |
|
|
|
|
switch ((int32_t)pnext->sType) { |
|
|
|
|
case VK_STRUCTURE_TYPE_IMPORT_MEMORY_RESOURCE_INFO_MESA: |
|
|
|
|
vn_replace_VkImportMemoryResourceInfoMESA_handle_self((VkImportMemoryResourceInfoMESA *)pnext); |
|
|
|
|
break; |
|
|
|
|
default: |
|
|
|
|
/* ignore unknown/unsupported struct */ |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
pnext = pnext->pNext; |
|
|
|
|
} while (pnext); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/* struct VkMemoryAllocateInfo chain */ |
|
|
|
|
|
|
|
|
|
static inline void * |
|
|
|
@ -289,6 +345,14 @@ vn_decode_VkMemoryAllocateInfo_pnext_temp(struct vn_cs_decoder *dec) |
|
|
|
|
vn_decode_VkMemoryOpaqueCaptureAddressAllocateInfo_self_temp(dec, (VkMemoryOpaqueCaptureAddressAllocateInfo *)pnext); |
|
|
|
|
} |
|
|
|
|
break; |
|
|
|
|
case VK_STRUCTURE_TYPE_IMPORT_MEMORY_RESOURCE_INFO_MESA: |
|
|
|
|
pnext = vn_cs_decoder_alloc_temp(dec, sizeof(VkImportMemoryResourceInfoMESA)); |
|
|
|
|
if (pnext) { |
|
|
|
|
pnext->sType = stype; |
|
|
|
|
pnext->pNext = vn_decode_VkMemoryAllocateInfo_pnext_temp(dec); |
|
|
|
|
vn_decode_VkImportMemoryResourceInfoMESA_self_temp(dec, (VkImportMemoryResourceInfoMESA *)pnext); |
|
|
|
|
} |
|
|
|
|
break; |
|
|
|
|
default: |
|
|
|
|
/* unexpected struct */ |
|
|
|
|
pnext = NULL; |
|
|
|
@ -350,6 +414,9 @@ vn_replace_VkMemoryAllocateInfo_handle(VkMemoryAllocateInfo *val) |
|
|
|
|
case VK_STRUCTURE_TYPE_MEMORY_OPAQUE_CAPTURE_ADDRESS_ALLOCATE_INFO: |
|
|
|
|
vn_replace_VkMemoryOpaqueCaptureAddressAllocateInfo_handle_self((VkMemoryOpaqueCaptureAddressAllocateInfo *)pnext); |
|
|
|
|
break; |
|
|
|
|
case VK_STRUCTURE_TYPE_IMPORT_MEMORY_RESOURCE_INFO_MESA: |
|
|
|
|
vn_replace_VkImportMemoryResourceInfoMESA_handle_self((VkImportMemoryResourceInfoMESA *)pnext); |
|
|
|
|
break; |
|
|
|
|
default: |
|
|
|
|
/* ignore unknown/unsupported struct */ |
|
|
|
|
break; |
|
|
|
|