vkr: do not assert pAllocator

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org>
macos/master
Chia-I Wu 3 years ago
parent 0fdb1e5dd6
commit 248a49f97b
  1. 2
      src/venus-protocol/vn_protocol_renderer.h
  2. 4
      src/venus-protocol/vn_protocol_renderer_buffer.h
  3. 4
      src/venus-protocol/vn_protocol_renderer_buffer_view.h
  4. 4
      src/venus-protocol/vn_protocol_renderer_command_pool.h
  5. 4
      src/venus-protocol/vn_protocol_renderer_descriptor_pool.h
  6. 4
      src/venus-protocol/vn_protocol_renderer_descriptor_set_layout.h
  7. 4
      src/venus-protocol/vn_protocol_renderer_descriptor_update_template.h
  8. 4
      src/venus-protocol/vn_protocol_renderer_device.h
  9. 4
      src/venus-protocol/vn_protocol_renderer_device_memory.h
  10. 4
      src/venus-protocol/vn_protocol_renderer_event.h
  11. 4
      src/venus-protocol/vn_protocol_renderer_fence.h
  12. 4
      src/venus-protocol/vn_protocol_renderer_framebuffer.h
  13. 4
      src/venus-protocol/vn_protocol_renderer_image.h
  14. 4
      src/venus-protocol/vn_protocol_renderer_image_view.h
  15. 4
      src/venus-protocol/vn_protocol_renderer_instance.h
  16. 6
      src/venus-protocol/vn_protocol_renderer_pipeline.h
  17. 4
      src/venus-protocol/vn_protocol_renderer_pipeline_cache.h
  18. 4
      src/venus-protocol/vn_protocol_renderer_pipeline_layout.h
  19. 4
      src/venus-protocol/vn_protocol_renderer_query_pool.h
  20. 6
      src/venus-protocol/vn_protocol_renderer_render_pass.h
  21. 4
      src/venus-protocol/vn_protocol_renderer_sampler.h
  22. 4
      src/venus-protocol/vn_protocol_renderer_sampler_ycbcr_conversion.h
  23. 4
      src/venus-protocol/vn_protocol_renderer_semaphore.h
  24. 4
      src/venus-protocol/vn_protocol_renderer_shader_module.h

@ -1,4 +1,4 @@
/* This file is generated by venus-protocol git-b183acfe. */
/* This file is generated by venus-protocol git-296988a6. */
/*
* Copyright 2020 Google LLC

@ -659,7 +659,7 @@ static inline void vn_decode_vkCreateBuffer_args_temp(struct vn_cs_decoder *dec,
args->pCreateInfo = NULL;
}
if (vn_decode_simple_pointer(dec)) {
assert(false);
vn_cs_decoder_set_fatal(dec);
} else {
args->pAllocator = NULL;
}
@ -698,7 +698,7 @@ static inline void vn_decode_vkDestroyBuffer_args_temp(struct vn_cs_decoder *dec
vn_decode_VkDevice_lookup(dec, &args->device);
vn_decode_VkBuffer_lookup(dec, &args->buffer);
if (vn_decode_simple_pointer(dec)) {
assert(false);
vn_cs_decoder_set_fatal(dec);
} else {
args->pAllocator = NULL;
}

@ -86,7 +86,7 @@ static inline void vn_decode_vkCreateBufferView_args_temp(struct vn_cs_decoder *
args->pCreateInfo = NULL;
}
if (vn_decode_simple_pointer(dec)) {
assert(false);
vn_cs_decoder_set_fatal(dec);
} else {
args->pAllocator = NULL;
}
@ -125,7 +125,7 @@ static inline void vn_decode_vkDestroyBufferView_args_temp(struct vn_cs_decoder
vn_decode_VkDevice_lookup(dec, &args->device);
vn_decode_VkBufferView_lookup(dec, &args->bufferView);
if (vn_decode_simple_pointer(dec)) {
assert(false);
vn_cs_decoder_set_fatal(dec);
} else {
args->pAllocator = NULL;
}

@ -80,7 +80,7 @@ static inline void vn_decode_vkCreateCommandPool_args_temp(struct vn_cs_decoder
args->pCreateInfo = NULL;
}
if (vn_decode_simple_pointer(dec)) {
assert(false);
vn_cs_decoder_set_fatal(dec);
} else {
args->pAllocator = NULL;
}
@ -119,7 +119,7 @@ static inline void vn_decode_vkDestroyCommandPool_args_temp(struct vn_cs_decoder
vn_decode_VkDevice_lookup(dec, &args->device);
vn_decode_VkCommandPool_lookup(dec, &args->commandPool);
if (vn_decode_simple_pointer(dec)) {
assert(false);
vn_cs_decoder_set_fatal(dec);
} else {
args->pAllocator = NULL;
}

@ -112,7 +112,7 @@ static inline void vn_decode_vkCreateDescriptorPool_args_temp(struct vn_cs_decod
args->pCreateInfo = NULL;
}
if (vn_decode_simple_pointer(dec)) {
assert(false);
vn_cs_decoder_set_fatal(dec);
} else {
args->pAllocator = NULL;
}
@ -151,7 +151,7 @@ static inline void vn_decode_vkDestroyDescriptorPool_args_temp(struct vn_cs_deco
vn_decode_VkDevice_lookup(dec, &args->device);
vn_decode_VkDescriptorPool_lookup(dec, &args->descriptorPool);
if (vn_decode_simple_pointer(dec)) {
assert(false);
vn_cs_decoder_set_fatal(dec);
} else {
args->pAllocator = NULL;
}

@ -363,7 +363,7 @@ static inline void vn_decode_vkCreateDescriptorSetLayout_args_temp(struct vn_cs_
args->pCreateInfo = NULL;
}
if (vn_decode_simple_pointer(dec)) {
assert(false);
vn_cs_decoder_set_fatal(dec);
} else {
args->pAllocator = NULL;
}
@ -402,7 +402,7 @@ static inline void vn_decode_vkDestroyDescriptorSetLayout_args_temp(struct vn_cs
vn_decode_VkDevice_lookup(dec, &args->device);
vn_decode_VkDescriptorSetLayout_lookup(dec, &args->descriptorSetLayout);
if (vn_decode_simple_pointer(dec)) {
assert(false);
vn_cs_decoder_set_fatal(dec);
} else {
args->pAllocator = NULL;
}

@ -128,7 +128,7 @@ static inline void vn_decode_vkCreateDescriptorUpdateTemplate_args_temp(struct v
args->pCreateInfo = NULL;
}
if (vn_decode_simple_pointer(dec)) {
assert(false);
vn_cs_decoder_set_fatal(dec);
} else {
args->pAllocator = NULL;
}
@ -167,7 +167,7 @@ static inline void vn_decode_vkDestroyDescriptorUpdateTemplate_args_temp(struct
vn_decode_VkDevice_lookup(dec, &args->device);
vn_decode_VkDescriptorUpdateTemplate_lookup(dec, &args->descriptorUpdateTemplate);
if (vn_decode_simple_pointer(dec)) {
assert(false);
vn_cs_decoder_set_fatal(dec);
} else {
args->pAllocator = NULL;
}

@ -7671,7 +7671,7 @@ static inline void vn_decode_vkCreateDevice_args_temp(struct vn_cs_decoder *dec,
args->pCreateInfo = NULL;
}
if (vn_decode_simple_pointer(dec)) {
assert(false);
vn_cs_decoder_set_fatal(dec);
} else {
args->pAllocator = NULL;
}
@ -7709,7 +7709,7 @@ static inline void vn_decode_vkDestroyDevice_args_temp(struct vn_cs_decoder *dec
{
vn_decode_VkDevice_lookup(dec, &args->device);
if (vn_decode_simple_pointer(dec)) {
assert(false);
vn_cs_decoder_set_fatal(dec);
} else {
args->pAllocator = NULL;
}

@ -611,7 +611,7 @@ static inline void vn_decode_vkAllocateMemory_args_temp(struct vn_cs_decoder *de
args->pAllocateInfo = NULL;
}
if (vn_decode_simple_pointer(dec)) {
assert(false);
vn_cs_decoder_set_fatal(dec);
} else {
args->pAllocator = NULL;
}
@ -650,7 +650,7 @@ static inline void vn_decode_vkFreeMemory_args_temp(struct vn_cs_decoder *dec, s
vn_decode_VkDevice_lookup(dec, &args->device);
vn_decode_VkDeviceMemory_lookup(dec, &args->memory);
if (vn_decode_simple_pointer(dec)) {
assert(false);
vn_cs_decoder_set_fatal(dec);
} else {
args->pAllocator = NULL;
}

@ -78,7 +78,7 @@ static inline void vn_decode_vkCreateEvent_args_temp(struct vn_cs_decoder *dec,
args->pCreateInfo = NULL;
}
if (vn_decode_simple_pointer(dec)) {
assert(false);
vn_cs_decoder_set_fatal(dec);
} else {
args->pAllocator = NULL;
}
@ -117,7 +117,7 @@ static inline void vn_decode_vkDestroyEvent_args_temp(struct vn_cs_decoder *dec,
vn_decode_VkDevice_lookup(dec, &args->device);
vn_decode_VkEvent_lookup(dec, &args->event);
if (vn_decode_simple_pointer(dec)) {
assert(false);
vn_cs_decoder_set_fatal(dec);
} else {
args->pAllocator = NULL;
}

@ -158,7 +158,7 @@ static inline void vn_decode_vkCreateFence_args_temp(struct vn_cs_decoder *dec,
args->pCreateInfo = NULL;
}
if (vn_decode_simple_pointer(dec)) {
assert(false);
vn_cs_decoder_set_fatal(dec);
} else {
args->pAllocator = NULL;
}
@ -197,7 +197,7 @@ static inline void vn_decode_vkDestroyFence_args_temp(struct vn_cs_decoder *dec,
vn_decode_VkDevice_lookup(dec, &args->device);
vn_decode_VkFence_lookup(dec, &args->fence);
if (vn_decode_simple_pointer(dec)) {
assert(false);
vn_cs_decoder_set_fatal(dec);
} else {
args->pAllocator = NULL;
}

@ -273,7 +273,7 @@ static inline void vn_decode_vkCreateFramebuffer_args_temp(struct vn_cs_decoder
args->pCreateInfo = NULL;
}
if (vn_decode_simple_pointer(dec)) {
assert(false);
vn_cs_decoder_set_fatal(dec);
} else {
args->pAllocator = NULL;
}
@ -312,7 +312,7 @@ static inline void vn_decode_vkDestroyFramebuffer_args_temp(struct vn_cs_decoder
vn_decode_VkDevice_lookup(dec, &args->device);
vn_decode_VkFramebuffer_lookup(dec, &args->framebuffer);
if (vn_decode_simple_pointer(dec)) {
assert(false);
vn_cs_decoder_set_fatal(dec);
} else {
args->pAllocator = NULL;
}

@ -1187,7 +1187,7 @@ static inline void vn_decode_vkCreateImage_args_temp(struct vn_cs_decoder *dec,
args->pCreateInfo = NULL;
}
if (vn_decode_simple_pointer(dec)) {
assert(false);
vn_cs_decoder_set_fatal(dec);
} else {
args->pAllocator = NULL;
}
@ -1226,7 +1226,7 @@ static inline void vn_decode_vkDestroyImage_args_temp(struct vn_cs_decoder *dec,
vn_decode_VkDevice_lookup(dec, &args->device);
vn_decode_VkImage_lookup(dec, &args->image);
if (vn_decode_simple_pointer(dec)) {
assert(false);
vn_cs_decoder_set_fatal(dec);
} else {
args->pAllocator = NULL;
}

@ -179,7 +179,7 @@ static inline void vn_decode_vkCreateImageView_args_temp(struct vn_cs_decoder *d
args->pCreateInfo = NULL;
}
if (vn_decode_simple_pointer(dec)) {
assert(false);
vn_cs_decoder_set_fatal(dec);
} else {
args->pAllocator = NULL;
}
@ -218,7 +218,7 @@ static inline void vn_decode_vkDestroyImageView_args_temp(struct vn_cs_decoder *
vn_decode_VkDevice_lookup(dec, &args->device);
vn_decode_VkImageView_lookup(dec, &args->imageView);
if (vn_decode_simple_pointer(dec)) {
assert(false);
vn_cs_decoder_set_fatal(dec);
} else {
args->pAllocator = NULL;
}

@ -207,7 +207,7 @@ static inline void vn_decode_vkCreateInstance_args_temp(struct vn_cs_decoder *de
args->pCreateInfo = NULL;
}
if (vn_decode_simple_pointer(dec)) {
assert(false);
vn_cs_decoder_set_fatal(dec);
} else {
args->pAllocator = NULL;
}
@ -243,7 +243,7 @@ static inline void vn_decode_vkDestroyInstance_args_temp(struct vn_cs_decoder *d
{
vn_decode_VkInstance_lookup(dec, &args->instance);
if (vn_decode_simple_pointer(dec)) {
assert(false);
vn_cs_decoder_set_fatal(dec);
} else {
args->pAllocator = NULL;
}

@ -1325,7 +1325,7 @@ static inline void vn_decode_vkCreateGraphicsPipelines_args_temp(struct vn_cs_de
args->pCreateInfos = NULL;
}
if (vn_decode_simple_pointer(dec)) {
assert(false);
vn_cs_decoder_set_fatal(dec);
} else {
args->pAllocator = NULL;
}
@ -1389,7 +1389,7 @@ static inline void vn_decode_vkCreateComputePipelines_args_temp(struct vn_cs_dec
args->pCreateInfos = NULL;
}
if (vn_decode_simple_pointer(dec)) {
assert(false);
vn_cs_decoder_set_fatal(dec);
} else {
args->pAllocator = NULL;
}
@ -1442,7 +1442,7 @@ static inline void vn_decode_vkDestroyPipeline_args_temp(struct vn_cs_decoder *d
vn_decode_VkDevice_lookup(dec, &args->device);
vn_decode_VkPipeline_lookup(dec, &args->pipeline);
if (vn_decode_simple_pointer(dec)) {
assert(false);
vn_cs_decoder_set_fatal(dec);
} else {
args->pAllocator = NULL;
}

@ -90,7 +90,7 @@ static inline void vn_decode_vkCreatePipelineCache_args_temp(struct vn_cs_decode
args->pCreateInfo = NULL;
}
if (vn_decode_simple_pointer(dec)) {
assert(false);
vn_cs_decoder_set_fatal(dec);
} else {
args->pAllocator = NULL;
}
@ -129,7 +129,7 @@ static inline void vn_decode_vkDestroyPipelineCache_args_temp(struct vn_cs_decod
vn_decode_VkDevice_lookup(dec, &args->device);
vn_decode_VkPipelineCache_lookup(dec, &args->pipelineCache);
if (vn_decode_simple_pointer(dec)) {
assert(false);
vn_cs_decoder_set_fatal(dec);
} else {
args->pAllocator = NULL;
}

@ -128,7 +128,7 @@ static inline void vn_decode_vkCreatePipelineLayout_args_temp(struct vn_cs_decod
args->pCreateInfo = NULL;
}
if (vn_decode_simple_pointer(dec)) {
assert(false);
vn_cs_decoder_set_fatal(dec);
} else {
args->pAllocator = NULL;
}
@ -167,7 +167,7 @@ static inline void vn_decode_vkDestroyPipelineLayout_args_temp(struct vn_cs_deco
vn_decode_VkDevice_lookup(dec, &args->device);
vn_decode_VkPipelineLayout_lookup(dec, &args->pipelineLayout);
if (vn_decode_simple_pointer(dec)) {
assert(false);
vn_cs_decoder_set_fatal(dec);
} else {
args->pAllocator = NULL;
}

@ -84,7 +84,7 @@ static inline void vn_decode_vkCreateQueryPool_args_temp(struct vn_cs_decoder *d
args->pCreateInfo = NULL;
}
if (vn_decode_simple_pointer(dec)) {
assert(false);
vn_cs_decoder_set_fatal(dec);
} else {
args->pAllocator = NULL;
}
@ -123,7 +123,7 @@ static inline void vn_decode_vkDestroyQueryPool_args_temp(struct vn_cs_decoder *
vn_decode_VkDevice_lookup(dec, &args->device);
vn_decode_VkQueryPool_lookup(dec, &args->queryPool);
if (vn_decode_simple_pointer(dec)) {
assert(false);
vn_cs_decoder_set_fatal(dec);
} else {
args->pAllocator = NULL;
}

@ -1198,7 +1198,7 @@ static inline void vn_decode_vkCreateRenderPass_args_temp(struct vn_cs_decoder *
args->pCreateInfo = NULL;
}
if (vn_decode_simple_pointer(dec)) {
assert(false);
vn_cs_decoder_set_fatal(dec);
} else {
args->pAllocator = NULL;
}
@ -1237,7 +1237,7 @@ static inline void vn_decode_vkDestroyRenderPass_args_temp(struct vn_cs_decoder
vn_decode_VkDevice_lookup(dec, &args->device);
vn_decode_VkRenderPass_lookup(dec, &args->renderPass);
if (vn_decode_simple_pointer(dec)) {
assert(false);
vn_cs_decoder_set_fatal(dec);
} else {
args->pAllocator = NULL;
}
@ -1300,7 +1300,7 @@ static inline void vn_decode_vkCreateRenderPass2_args_temp(struct vn_cs_decoder
args->pCreateInfo = NULL;
}
if (vn_decode_simple_pointer(dec)) {
assert(false);
vn_cs_decoder_set_fatal(dec);
} else {
args->pAllocator = NULL;
}

@ -199,7 +199,7 @@ static inline void vn_decode_vkCreateSampler_args_temp(struct vn_cs_decoder *dec
args->pCreateInfo = NULL;
}
if (vn_decode_simple_pointer(dec)) {
assert(false);
vn_cs_decoder_set_fatal(dec);
} else {
args->pAllocator = NULL;
}
@ -238,7 +238,7 @@ static inline void vn_decode_vkDestroySampler_args_temp(struct vn_cs_decoder *de
vn_decode_VkDevice_lookup(dec, &args->device);
vn_decode_VkSampler_lookup(dec, &args->sampler);
if (vn_decode_simple_pointer(dec)) {
assert(false);
vn_cs_decoder_set_fatal(dec);
} else {
args->pAllocator = NULL;
}

@ -92,7 +92,7 @@ static inline void vn_decode_vkCreateSamplerYcbcrConversion_args_temp(struct vn_
args->pCreateInfo = NULL;
}
if (vn_decode_simple_pointer(dec)) {
assert(false);
vn_cs_decoder_set_fatal(dec);
} else {
args->pAllocator = NULL;
}
@ -131,7 +131,7 @@ static inline void vn_decode_vkDestroySamplerYcbcrConversion_args_temp(struct vn
vn_decode_VkDevice_lookup(dec, &args->device);
vn_decode_VkSamplerYcbcrConversion_lookup(dec, &args->ycbcrConversion);
if (vn_decode_simple_pointer(dec)) {
assert(false);
vn_cs_decoder_set_fatal(dec);
} else {
args->pAllocator = NULL;
}

@ -335,7 +335,7 @@ static inline void vn_decode_vkCreateSemaphore_args_temp(struct vn_cs_decoder *d
args->pCreateInfo = NULL;
}
if (vn_decode_simple_pointer(dec)) {
assert(false);
vn_cs_decoder_set_fatal(dec);
} else {
args->pAllocator = NULL;
}
@ -374,7 +374,7 @@ static inline void vn_decode_vkDestroySemaphore_args_temp(struct vn_cs_decoder *
vn_decode_VkDevice_lookup(dec, &args->device);
vn_decode_VkSemaphore_lookup(dec, &args->semaphore);
if (vn_decode_simple_pointer(dec)) {
assert(false);
vn_cs_decoder_set_fatal(dec);
} else {
args->pAllocator = NULL;
}

@ -90,7 +90,7 @@ static inline void vn_decode_vkCreateShaderModule_args_temp(struct vn_cs_decoder
args->pCreateInfo = NULL;
}
if (vn_decode_simple_pointer(dec)) {
assert(false);
vn_cs_decoder_set_fatal(dec);
} else {
args->pAllocator = NULL;
}
@ -129,7 +129,7 @@ static inline void vn_decode_vkDestroyShaderModule_args_temp(struct vn_cs_decode
vn_decode_VkDevice_lookup(dec, &args->device);
vn_decode_VkShaderModule_lookup(dec, &args->shaderModule);
if (vn_decode_simple_pointer(dec)) {
assert(false);
vn_cs_decoder_set_fatal(dec);
} else {
args->pAllocator = NULL;
}

Loading…
Cancel
Save