mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
venus: sync protocol for conditionally ignored dyn arrays
Signed-off-by: Juston Li <justonli@google.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29661>
This commit is contained in:
parent
f04bb49465
commit
5ac539d70d
5 changed files with 9 additions and 9 deletions
|
|
@ -1,4 +1,4 @@
|
|||
/* This file is generated by venus-protocol git-028d2c84. */
|
||||
/* This file is generated by venus-protocol git-3717cd34. */
|
||||
|
||||
/*
|
||||
* Copyright 2020 Google LLC
|
||||
|
|
|
|||
|
|
@ -167,7 +167,7 @@ vn_sizeof_VkBufferCreateInfo_self(const VkBufferCreateInfo *val)
|
|||
size += vn_sizeof_VkFlags(&val->usage);
|
||||
size += vn_sizeof_VkSharingMode(&val->sharingMode);
|
||||
size += vn_sizeof_uint32_t(&val->queueFamilyIndexCount);
|
||||
if (val->pQueueFamilyIndices) {
|
||||
if (val->sharingMode == VK_SHARING_MODE_CONCURRENT) {
|
||||
size += vn_sizeof_array_size(val->queueFamilyIndexCount);
|
||||
size += vn_sizeof_uint32_t_array(val->pQueueFamilyIndices, val->queueFamilyIndexCount);
|
||||
} else {
|
||||
|
|
@ -234,7 +234,7 @@ vn_encode_VkBufferCreateInfo_self(struct vn_cs_encoder *enc, const VkBufferCreat
|
|||
vn_encode_VkFlags(enc, &val->usage);
|
||||
vn_encode_VkSharingMode(enc, &val->sharingMode);
|
||||
vn_encode_uint32_t(enc, &val->queueFamilyIndexCount);
|
||||
if (val->pQueueFamilyIndices) {
|
||||
if (val->sharingMode == VK_SHARING_MODE_CONCURRENT) {
|
||||
vn_encode_array_size(enc, val->queueFamilyIndexCount);
|
||||
vn_encode_uint32_t_array(enc, val->pQueueFamilyIndices, val->queueFamilyIndexCount);
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -21457,7 +21457,7 @@ vn_sizeof_VkPhysicalDeviceImageDrmFormatModifierInfoEXT_self(const VkPhysicalDev
|
|||
size += vn_sizeof_uint64_t(&val->drmFormatModifier);
|
||||
size += vn_sizeof_VkSharingMode(&val->sharingMode);
|
||||
size += vn_sizeof_uint32_t(&val->queueFamilyIndexCount);
|
||||
if (val->pQueueFamilyIndices) {
|
||||
if (val->sharingMode == VK_SHARING_MODE_CONCURRENT) {
|
||||
size += vn_sizeof_array_size(val->queueFamilyIndexCount);
|
||||
size += vn_sizeof_uint32_t_array(val->pQueueFamilyIndices, val->queueFamilyIndexCount);
|
||||
} else {
|
||||
|
|
@ -21492,7 +21492,7 @@ vn_encode_VkPhysicalDeviceImageDrmFormatModifierInfoEXT_self(struct vn_cs_encode
|
|||
vn_encode_uint64_t(enc, &val->drmFormatModifier);
|
||||
vn_encode_VkSharingMode(enc, &val->sharingMode);
|
||||
vn_encode_uint32_t(enc, &val->queueFamilyIndexCount);
|
||||
if (val->pQueueFamilyIndices) {
|
||||
if (val->sharingMode == VK_SHARING_MODE_CONCURRENT) {
|
||||
vn_encode_array_size(enc, val->queueFamilyIndexCount);
|
||||
vn_encode_uint32_t_array(enc, val->pQueueFamilyIndices, val->queueFamilyIndexCount);
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -187,7 +187,7 @@ vn_sizeof_VkFramebufferCreateInfo_self(const VkFramebufferCreateInfo *val)
|
|||
size += vn_sizeof_VkFlags(&val->flags);
|
||||
size += vn_sizeof_VkRenderPass(&val->renderPass);
|
||||
size += vn_sizeof_uint32_t(&val->attachmentCount);
|
||||
if (val->pAttachments) {
|
||||
if (!(val->flags & VK_FRAMEBUFFER_CREATE_IMAGELESS_BIT)) {
|
||||
size += vn_sizeof_array_size(val->attachmentCount);
|
||||
for (uint32_t i = 0; i < val->attachmentCount; i++)
|
||||
size += vn_sizeof_VkImageView(&val->pAttachments[i]);
|
||||
|
|
@ -242,7 +242,7 @@ vn_encode_VkFramebufferCreateInfo_self(struct vn_cs_encoder *enc, const VkFrameb
|
|||
vn_encode_VkFlags(enc, &val->flags);
|
||||
vn_encode_VkRenderPass(enc, &val->renderPass);
|
||||
vn_encode_uint32_t(enc, &val->attachmentCount);
|
||||
if (val->pAttachments) {
|
||||
if (!(val->flags & VK_FRAMEBUFFER_CREATE_IMAGELESS_BIT)) {
|
||||
vn_encode_array_size(enc, val->attachmentCount);
|
||||
for (uint32_t i = 0; i < val->attachmentCount; i++)
|
||||
vn_encode_VkImageView(enc, &val->pAttachments[i]);
|
||||
|
|
|
|||
|
|
@ -370,7 +370,7 @@ vn_sizeof_VkImageCreateInfo_self(const VkImageCreateInfo *val)
|
|||
size += vn_sizeof_VkFlags(&val->usage);
|
||||
size += vn_sizeof_VkSharingMode(&val->sharingMode);
|
||||
size += vn_sizeof_uint32_t(&val->queueFamilyIndexCount);
|
||||
if (val->pQueueFamilyIndices) {
|
||||
if (val->sharingMode == VK_SHARING_MODE_CONCURRENT) {
|
||||
size += vn_sizeof_array_size(val->queueFamilyIndexCount);
|
||||
size += vn_sizeof_uint32_t_array(val->pQueueFamilyIndices, val->queueFamilyIndexCount);
|
||||
} else {
|
||||
|
|
@ -458,7 +458,7 @@ vn_encode_VkImageCreateInfo_self(struct vn_cs_encoder *enc, const VkImageCreateI
|
|||
vn_encode_VkFlags(enc, &val->usage);
|
||||
vn_encode_VkSharingMode(enc, &val->sharingMode);
|
||||
vn_encode_uint32_t(enc, &val->queueFamilyIndexCount);
|
||||
if (val->pQueueFamilyIndices) {
|
||||
if (val->sharingMode == VK_SHARING_MODE_CONCURRENT) {
|
||||
vn_encode_array_size(enc, val->queueFamilyIndexCount);
|
||||
vn_encode_uint32_t_array(enc, val->pQueueFamilyIndices, val->queueFamilyIndexCount);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue