mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-23 18:20:30 +01:00
venus: update venus-protocol headers
1. hide git hash from most generated files 2. fix VkImportMemoryResourceInfoMESA definition Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org> Reviewed-by: Chia-I Wu <olvaffe@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10259>
This commit is contained in:
parent
282e2c9496
commit
c79909779a
34 changed files with 99 additions and 34 deletions
|
|
@ -1,4 +1,4 @@
|
|||
/* This file is generated by venus-protocol git-e05ae158. */
|
||||
/* This file is generated by venus-protocol git-0f26f4b9. */
|
||||
|
||||
/*
|
||||
* Copyright 2020 Google LLC
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* This file is generated by venus-protocol git-e05ae158. */
|
||||
/* This file is generated by venus-protocol. See vn_protocol_driver.h. */
|
||||
|
||||
/*
|
||||
* Copyright 2020 Google LLC
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* This file is generated by venus-protocol git-e05ae158. */
|
||||
/* This file is generated by venus-protocol. See vn_protocol_driver.h. */
|
||||
|
||||
/*
|
||||
* Copyright 2020 Google LLC
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* This file is generated by venus-protocol git-e05ae158. */
|
||||
/* This file is generated by venus-protocol. See vn_protocol_driver.h. */
|
||||
|
||||
/*
|
||||
* Copyright 2020 Google LLC
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* This file is generated by venus-protocol git-e05ae158. */
|
||||
/* This file is generated by venus-protocol. See vn_protocol_driver.h. */
|
||||
|
||||
/*
|
||||
* Copyright 2020 Google LLC
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* This file is generated by venus-protocol git-e05ae158. */
|
||||
/* This file is generated by venus-protocol. See vn_protocol_driver.h. */
|
||||
|
||||
/*
|
||||
* Copyright 2020 Google LLC
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* This file is generated by venus-protocol git-e05ae158. */
|
||||
/* This file is generated by venus-protocol. See vn_protocol_driver.h. */
|
||||
|
||||
/*
|
||||
* Copyright 2020 Google LLC
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* This file is generated by venus-protocol git-e05ae158. */
|
||||
/* This file is generated by venus-protocol. See vn_protocol_driver.h. */
|
||||
|
||||
/*
|
||||
* Copyright 2020 Google LLC
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* This file is generated by venus-protocol git-e05ae158. */
|
||||
/* This file is generated by venus-protocol. See vn_protocol_driver.h. */
|
||||
|
||||
/*
|
||||
* Copyright 2020 Google LLC
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* This file is generated by venus-protocol git-e05ae158. */
|
||||
/* This file is generated by venus-protocol. See vn_protocol_driver.h. */
|
||||
|
||||
/*
|
||||
* Copyright 2020 Google LLC
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* This file is generated by venus-protocol git-e05ae158. */
|
||||
/* This file is generated by venus-protocol. See vn_protocol_driver.h. */
|
||||
|
||||
/*
|
||||
* Copyright 2020 Google LLC
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* This file is generated by venus-protocol git-e05ae158. */
|
||||
/* This file is generated by venus-protocol. See vn_protocol_driver.h. */
|
||||
|
||||
/*
|
||||
* Copyright 2020 Google LLC
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* This file is generated by venus-protocol git-e05ae158. */
|
||||
/* This file is generated by venus-protocol. See vn_protocol_driver.h. */
|
||||
|
||||
/*
|
||||
* Copyright 2020 Google LLC
|
||||
|
|
@ -233,6 +233,59 @@ vn_encode_VkMemoryOpaqueCaptureAddressAllocateInfo(struct vn_cs_encoder *enc, co
|
|||
vn_encode_VkMemoryOpaqueCaptureAddressAllocateInfo_self(enc, val);
|
||||
}
|
||||
|
||||
/* struct VkImportMemoryResourceInfoMESA chain */
|
||||
|
||||
static inline size_t
|
||||
vn_sizeof_VkImportMemoryResourceInfoMESA_pnext(const void *val)
|
||||
{
|
||||
/* no known/supported struct */
|
||||
return vn_sizeof_simple_pointer(NULL);
|
||||
}
|
||||
|
||||
static inline size_t
|
||||
vn_sizeof_VkImportMemoryResourceInfoMESA_self(const VkImportMemoryResourceInfoMESA *val)
|
||||
{
|
||||
size_t size = 0;
|
||||
/* skip val->{sType,pNext} */
|
||||
size += vn_sizeof_uint32_t(&val->resourceId);
|
||||
return size;
|
||||
}
|
||||
|
||||
static inline size_t
|
||||
vn_sizeof_VkImportMemoryResourceInfoMESA(const VkImportMemoryResourceInfoMESA *val)
|
||||
{
|
||||
size_t size = 0;
|
||||
|
||||
size += vn_sizeof_VkStructureType(&val->sType);
|
||||
size += vn_sizeof_VkImportMemoryResourceInfoMESA_pnext(val->pNext);
|
||||
size += vn_sizeof_VkImportMemoryResourceInfoMESA_self(val);
|
||||
|
||||
return size;
|
||||
}
|
||||
|
||||
static inline void
|
||||
vn_encode_VkImportMemoryResourceInfoMESA_pnext(struct vn_cs_encoder *enc, const void *val)
|
||||
{
|
||||
/* no known/supported struct */
|
||||
vn_encode_simple_pointer(enc, NULL);
|
||||
}
|
||||
|
||||
static inline void
|
||||
vn_encode_VkImportMemoryResourceInfoMESA_self(struct vn_cs_encoder *enc, const VkImportMemoryResourceInfoMESA *val)
|
||||
{
|
||||
/* skip val->{sType,pNext} */
|
||||
vn_encode_uint32_t(enc, &val->resourceId);
|
||||
}
|
||||
|
||||
static inline void
|
||||
vn_encode_VkImportMemoryResourceInfoMESA(struct vn_cs_encoder *enc, const VkImportMemoryResourceInfoMESA *val)
|
||||
{
|
||||
assert(val->sType == VK_STRUCTURE_TYPE_IMPORT_MEMORY_RESOURCE_INFO_MESA);
|
||||
vn_encode_VkStructureType(enc, &(VkStructureType){ VK_STRUCTURE_TYPE_IMPORT_MEMORY_RESOURCE_INFO_MESA });
|
||||
vn_encode_VkImportMemoryResourceInfoMESA_pnext(enc, val->pNext);
|
||||
vn_encode_VkImportMemoryResourceInfoMESA_self(enc, val);
|
||||
}
|
||||
|
||||
/* struct VkMemoryAllocateInfo chain */
|
||||
|
||||
static inline size_t
|
||||
|
|
@ -267,6 +320,12 @@ vn_sizeof_VkMemoryAllocateInfo_pnext(const void *val)
|
|||
size += vn_sizeof_VkMemoryAllocateInfo_pnext(pnext->pNext);
|
||||
size += vn_sizeof_VkMemoryOpaqueCaptureAddressAllocateInfo_self((const VkMemoryOpaqueCaptureAddressAllocateInfo *)pnext);
|
||||
return size;
|
||||
case VK_STRUCTURE_TYPE_IMPORT_MEMORY_RESOURCE_INFO_MESA:
|
||||
size += vn_sizeof_simple_pointer(pnext);
|
||||
size += vn_sizeof_VkStructureType(&pnext->sType);
|
||||
size += vn_sizeof_VkMemoryAllocateInfo_pnext(pnext->pNext);
|
||||
size += vn_sizeof_VkImportMemoryResourceInfoMESA_self((const VkImportMemoryResourceInfoMESA *)pnext);
|
||||
return size;
|
||||
default:
|
||||
/* ignore unknown/unsupported struct */
|
||||
break;
|
||||
|
|
@ -330,6 +389,12 @@ vn_encode_VkMemoryAllocateInfo_pnext(struct vn_cs_encoder *enc, const void *val)
|
|||
vn_encode_VkMemoryAllocateInfo_pnext(enc, pnext->pNext);
|
||||
vn_encode_VkMemoryOpaqueCaptureAddressAllocateInfo_self(enc, (const VkMemoryOpaqueCaptureAddressAllocateInfo *)pnext);
|
||||
return;
|
||||
case VK_STRUCTURE_TYPE_IMPORT_MEMORY_RESOURCE_INFO_MESA:
|
||||
vn_encode_simple_pointer(enc, pnext);
|
||||
vn_encode_VkStructureType(enc, &pnext->sType);
|
||||
vn_encode_VkMemoryAllocateInfo_pnext(enc, pnext->pNext);
|
||||
vn_encode_VkImportMemoryResourceInfoMESA_self(enc, (const VkImportMemoryResourceInfoMESA *)pnext);
|
||||
return;
|
||||
default:
|
||||
/* ignore unknown/unsupported struct */
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* This file is generated by venus-protocol git-e05ae158. */
|
||||
/* This file is generated by venus-protocol. See vn_protocol_driver.h. */
|
||||
|
||||
/*
|
||||
* Copyright 2020 Google LLC
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* This file is generated by venus-protocol git-e05ae158. */
|
||||
/* This file is generated by venus-protocol. See vn_protocol_driver.h. */
|
||||
|
||||
/*
|
||||
* Copyright 2020 Google LLC
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* This file is generated by venus-protocol git-e05ae158. */
|
||||
/* This file is generated by venus-protocol. See vn_protocol_driver.h. */
|
||||
|
||||
/*
|
||||
* Copyright 2020 Google LLC
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* This file is generated by venus-protocol git-e05ae158. */
|
||||
/* This file is generated by venus-protocol. See vn_protocol_driver.h. */
|
||||
|
||||
/*
|
||||
* Copyright 2020 Google LLC
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* This file is generated by venus-protocol git-e05ae158. */
|
||||
/* This file is generated by venus-protocol. See vn_protocol_driver.h. */
|
||||
|
||||
/*
|
||||
* Copyright 2020 Google LLC
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* This file is generated by venus-protocol git-e05ae158. */
|
||||
/* This file is generated by venus-protocol. See vn_protocol_driver.h. */
|
||||
|
||||
/*
|
||||
* Copyright 2020 Google LLC
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* This file is generated by venus-protocol git-e05ae158. */
|
||||
/* This file is generated by venus-protocol. See vn_protocol_driver.h. */
|
||||
|
||||
/*
|
||||
* Copyright 2020 Google LLC
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* This file is generated by venus-protocol git-e05ae158. */
|
||||
/* This file is generated by venus-protocol. See vn_protocol_driver.h. */
|
||||
|
||||
/*
|
||||
* Copyright 2020 Google LLC
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* This file is generated by venus-protocol git-e05ae158. */
|
||||
/* This file is generated by venus-protocol. See vn_protocol_driver.h. */
|
||||
|
||||
/*
|
||||
* Copyright 2020 Google LLC
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* This file is generated by venus-protocol git-e05ae158. */
|
||||
/* This file is generated by venus-protocol. See vn_protocol_driver.h. */
|
||||
|
||||
/*
|
||||
* Copyright 2020 Google LLC
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* This file is generated by venus-protocol git-e05ae158. */
|
||||
/* This file is generated by venus-protocol. See vn_protocol_driver.h. */
|
||||
|
||||
/*
|
||||
* Copyright 2020 Google LLC
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* This file is generated by venus-protocol git-e05ae158. */
|
||||
/* This file is generated by venus-protocol. See vn_protocol_driver.h. */
|
||||
|
||||
/*
|
||||
* Copyright 2020 Google LLC
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* This file is generated by venus-protocol git-e05ae158. */
|
||||
/* This file is generated by venus-protocol. See vn_protocol_driver.h. */
|
||||
|
||||
/*
|
||||
* Copyright 2020 Google LLC
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* This file is generated by venus-protocol git-e05ae158. */
|
||||
/* This file is generated by venus-protocol. See vn_protocol_driver.h. */
|
||||
|
||||
/*
|
||||
* Copyright 2020 Google LLC
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* This file is generated by venus-protocol git-e05ae158. */
|
||||
/* This file is generated by venus-protocol. See vn_protocol_driver.h. */
|
||||
|
||||
/*
|
||||
* Copyright 2020 Google LLC
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* This file is generated by venus-protocol git-e05ae158. */
|
||||
/* This file is generated by venus-protocol. See vn_protocol_driver.h. */
|
||||
|
||||
/*
|
||||
* Copyright 2020 Google LLC
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* This file is generated by venus-protocol git-e05ae158. */
|
||||
/* This file is generated by venus-protocol. See vn_protocol_driver.h. */
|
||||
|
||||
/*
|
||||
* Copyright 2020 Google LLC
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* This file is generated by venus-protocol git-e05ae158. */
|
||||
/* This file is generated by venus-protocol. See vn_protocol_driver.h. */
|
||||
|
||||
/*
|
||||
* Copyright 2020 Google LLC
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* This file is generated by venus-protocol git-e05ae158. */
|
||||
/* This file is generated by venus-protocol. See vn_protocol_driver.h. */
|
||||
|
||||
/*
|
||||
* Copyright 2020 Google LLC
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* This file is generated by venus-protocol git-e05ae158. */
|
||||
/* This file is generated by venus-protocol. See vn_protocol_driver.h. */
|
||||
|
||||
/*
|
||||
* Copyright 2020 Google LLC
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* This file is generated by venus-protocol git-e05ae158. */
|
||||
/* This file is generated by venus-protocol. See vn_protocol_driver.h. */
|
||||
|
||||
/*
|
||||
* Copyright 2020 Google LLC
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue