venus: sync latest protocol for more extension support
This sync also drops redundant vn_call_* helpers. Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33992>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* This file is generated by venus-protocol git-3800cbae. */
|
||||
/* This file is generated by venus-protocol git-dc3d8ddc. */
|
||||
|
||||
/*
|
||||
* Copyright 2020 Google LLC
|
||||
|
||||
@@ -923,19 +923,6 @@ static inline void vn_submit_vkGetAccelerationStructureBuildSizesKHR(struct vn_r
|
||||
}
|
||||
}
|
||||
|
||||
static inline void vn_call_vkDestroyAccelerationStructureKHR(struct vn_ring *vn_ring, VkDevice device, VkAccelerationStructureKHR accelerationStructure, const VkAllocationCallbacks* pAllocator)
|
||||
{
|
||||
VN_TRACE_FUNC();
|
||||
|
||||
struct vn_ring_submit_command submit;
|
||||
vn_submit_vkDestroyAccelerationStructureKHR(vn_ring, VK_COMMAND_GENERATE_REPLY_BIT_EXT, device, accelerationStructure, pAllocator, &submit);
|
||||
struct vn_cs_decoder *dec = vn_ring_get_command_reply(vn_ring, &submit);
|
||||
if (dec) {
|
||||
vn_decode_vkDestroyAccelerationStructureKHR_reply(dec, device, accelerationStructure, pAllocator);
|
||||
vn_ring_free_command_reply(vn_ring, &submit);
|
||||
}
|
||||
}
|
||||
|
||||
static inline void vn_async_vkDestroyAccelerationStructureKHR(struct vn_ring *vn_ring, VkDevice device, VkAccelerationStructureKHR accelerationStructure, const VkAllocationCallbacks* pAllocator)
|
||||
{
|
||||
struct vn_ring_submit_command submit;
|
||||
|
||||
@@ -1367,19 +1367,6 @@ static inline void vn_async_vkCreateBuffer(struct vn_ring *vn_ring, VkDevice dev
|
||||
vn_submit_vkCreateBuffer(vn_ring, 0, device, pCreateInfo, pAllocator, pBuffer, &submit);
|
||||
}
|
||||
|
||||
static inline void vn_call_vkDestroyBuffer(struct vn_ring *vn_ring, VkDevice device, VkBuffer buffer, const VkAllocationCallbacks* pAllocator)
|
||||
{
|
||||
VN_TRACE_FUNC();
|
||||
|
||||
struct vn_ring_submit_command submit;
|
||||
vn_submit_vkDestroyBuffer(vn_ring, VK_COMMAND_GENERATE_REPLY_BIT_EXT, device, buffer, pAllocator, &submit);
|
||||
struct vn_cs_decoder *dec = vn_ring_get_command_reply(vn_ring, &submit);
|
||||
if (dec) {
|
||||
vn_decode_vkDestroyBuffer_reply(dec, device, buffer, pAllocator);
|
||||
vn_ring_free_command_reply(vn_ring, &submit);
|
||||
}
|
||||
}
|
||||
|
||||
static inline void vn_async_vkDestroyBuffer(struct vn_ring *vn_ring, VkDevice device, VkBuffer buffer, const VkAllocationCallbacks* pAllocator)
|
||||
{
|
||||
struct vn_ring_submit_command submit;
|
||||
|
||||
@@ -297,19 +297,6 @@ static inline void vn_async_vkCreateBufferView(struct vn_ring *vn_ring, VkDevice
|
||||
vn_submit_vkCreateBufferView(vn_ring, 0, device, pCreateInfo, pAllocator, pView, &submit);
|
||||
}
|
||||
|
||||
static inline void vn_call_vkDestroyBufferView(struct vn_ring *vn_ring, VkDevice device, VkBufferView bufferView, const VkAllocationCallbacks* pAllocator)
|
||||
{
|
||||
VN_TRACE_FUNC();
|
||||
|
||||
struct vn_ring_submit_command submit;
|
||||
vn_submit_vkDestroyBufferView(vn_ring, VK_COMMAND_GENERATE_REPLY_BIT_EXT, device, bufferView, pAllocator, &submit);
|
||||
struct vn_cs_decoder *dec = vn_ring_get_command_reply(vn_ring, &submit);
|
||||
if (dec) {
|
||||
vn_decode_vkDestroyBufferView_reply(dec, device, bufferView, pAllocator);
|
||||
vn_ring_free_command_reply(vn_ring, &submit);
|
||||
}
|
||||
}
|
||||
|
||||
static inline void vn_async_vkDestroyBufferView(struct vn_ring *vn_ring, VkDevice device, VkBufferView bufferView, const VkAllocationCallbacks* pAllocator)
|
||||
{
|
||||
struct vn_ring_submit_command submit;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -398,19 +398,6 @@ static inline void vn_async_vkCreateCommandPool(struct vn_ring *vn_ring, VkDevic
|
||||
vn_submit_vkCreateCommandPool(vn_ring, 0, device, pCreateInfo, pAllocator, pCommandPool, &submit);
|
||||
}
|
||||
|
||||
static inline void vn_call_vkDestroyCommandPool(struct vn_ring *vn_ring, VkDevice device, VkCommandPool commandPool, const VkAllocationCallbacks* pAllocator)
|
||||
{
|
||||
VN_TRACE_FUNC();
|
||||
|
||||
struct vn_ring_submit_command submit;
|
||||
vn_submit_vkDestroyCommandPool(vn_ring, VK_COMMAND_GENERATE_REPLY_BIT_EXT, device, commandPool, pAllocator, &submit);
|
||||
struct vn_cs_decoder *dec = vn_ring_get_command_reply(vn_ring, &submit);
|
||||
if (dec) {
|
||||
vn_decode_vkDestroyCommandPool_reply(dec, device, commandPool, pAllocator);
|
||||
vn_ring_free_command_reply(vn_ring, &submit);
|
||||
}
|
||||
}
|
||||
|
||||
static inline void vn_async_vkDestroyCommandPool(struct vn_ring *vn_ring, VkDevice device, VkCommandPool commandPool, const VkAllocationCallbacks* pAllocator)
|
||||
{
|
||||
struct vn_ring_submit_command submit;
|
||||
@@ -439,19 +426,6 @@ static inline void vn_async_vkResetCommandPool(struct vn_ring *vn_ring, VkDevice
|
||||
vn_submit_vkResetCommandPool(vn_ring, 0, device, commandPool, flags, &submit);
|
||||
}
|
||||
|
||||
static inline void vn_call_vkTrimCommandPool(struct vn_ring *vn_ring, VkDevice device, VkCommandPool commandPool, VkCommandPoolTrimFlags flags)
|
||||
{
|
||||
VN_TRACE_FUNC();
|
||||
|
||||
struct vn_ring_submit_command submit;
|
||||
vn_submit_vkTrimCommandPool(vn_ring, VK_COMMAND_GENERATE_REPLY_BIT_EXT, device, commandPool, flags, &submit);
|
||||
struct vn_cs_decoder *dec = vn_ring_get_command_reply(vn_ring, &submit);
|
||||
if (dec) {
|
||||
vn_decode_vkTrimCommandPool_reply(dec, device, commandPool, flags);
|
||||
vn_ring_free_command_reply(vn_ring, &submit);
|
||||
}
|
||||
}
|
||||
|
||||
static inline void vn_async_vkTrimCommandPool(struct vn_ring *vn_ring, VkDevice device, VkCommandPool commandPool, VkCommandPoolTrimFlags flags)
|
||||
{
|
||||
struct vn_ring_submit_command submit;
|
||||
|
||||
@@ -414,6 +414,7 @@ typedef enum VkCommandTypeEXT {
|
||||
VK_COMMAND_TYPE_vkGetDeferredOperationMaxConcurrencyKHR_EXT = 301,
|
||||
VK_COMMAND_TYPE_vkGetDeferredOperationResultKHR_EXT = 302,
|
||||
VK_COMMAND_TYPE_vkDeferredOperationJoinKHR_EXT = 303,
|
||||
VK_COMMAND_TYPE_vkCmdSetDepthBias2EXT_EXT = 328,
|
||||
VK_COMMAND_TYPE_vkCmdSetVertexInputEXT_EXT = 255,
|
||||
VK_COMMAND_TYPE_vkCmdSetPatchControlPointsEXT_EXT = 233,
|
||||
VK_COMMAND_TYPE_vkCmdSetLogicOpEXT_EXT = 234,
|
||||
@@ -442,6 +443,8 @@ typedef enum VkCommandTypeEXT {
|
||||
VK_COMMAND_TYPE_vkCmdSetLineRasterizationModeEXT_EXT = 274,
|
||||
VK_COMMAND_TYPE_vkCmdSetLineStippleEnableEXT_EXT = 275,
|
||||
VK_COMMAND_TYPE_vkCmdSetDepthClipNegativeOneToOneEXT_EXT = 276,
|
||||
VK_COMMAND_TYPE_vkCmdSetAttachmentFeedbackLoopEnableEXT_EXT = 329,
|
||||
VK_COMMAND_TYPE_vkCmdSetDepthClampRangeEXT_EXT = 330,
|
||||
VK_COMMAND_TYPE_vkSetReplyCommandStreamMESA_EXT = 178,
|
||||
VK_COMMAND_TYPE_vkSeekReplyCommandStreamMESA_EXT = 179,
|
||||
VK_COMMAND_TYPE_vkExecuteCommandStreamsMESA_EXT = 180,
|
||||
|
||||
@@ -469,19 +469,6 @@ static inline void vn_async_vkCreateDescriptorPool(struct vn_ring *vn_ring, VkDe
|
||||
vn_submit_vkCreateDescriptorPool(vn_ring, 0, device, pCreateInfo, pAllocator, pDescriptorPool, &submit);
|
||||
}
|
||||
|
||||
static inline void vn_call_vkDestroyDescriptorPool(struct vn_ring *vn_ring, VkDevice device, VkDescriptorPool descriptorPool, const VkAllocationCallbacks* pAllocator)
|
||||
{
|
||||
VN_TRACE_FUNC();
|
||||
|
||||
struct vn_ring_submit_command submit;
|
||||
vn_submit_vkDestroyDescriptorPool(vn_ring, VK_COMMAND_GENERATE_REPLY_BIT_EXT, device, descriptorPool, pAllocator, &submit);
|
||||
struct vn_cs_decoder *dec = vn_ring_get_command_reply(vn_ring, &submit);
|
||||
if (dec) {
|
||||
vn_decode_vkDestroyDescriptorPool_reply(dec, device, descriptorPool, pAllocator);
|
||||
vn_ring_free_command_reply(vn_ring, &submit);
|
||||
}
|
||||
}
|
||||
|
||||
static inline void vn_async_vkDestroyDescriptorPool(struct vn_ring *vn_ring, VkDevice device, VkDescriptorPool descriptorPool, const VkAllocationCallbacks* pAllocator)
|
||||
{
|
||||
struct vn_ring_submit_command submit;
|
||||
|
||||
@@ -588,19 +588,6 @@ static inline void vn_async_vkFreeDescriptorSets(struct vn_ring *vn_ring, VkDevi
|
||||
vn_submit_vkFreeDescriptorSets(vn_ring, 0, device, descriptorPool, descriptorSetCount, pDescriptorSets, &submit);
|
||||
}
|
||||
|
||||
static inline void vn_call_vkUpdateDescriptorSets(struct vn_ring *vn_ring, VkDevice device, uint32_t descriptorWriteCount, const VkWriteDescriptorSet* pDescriptorWrites, uint32_t descriptorCopyCount, const VkCopyDescriptorSet* pDescriptorCopies)
|
||||
{
|
||||
VN_TRACE_FUNC();
|
||||
|
||||
struct vn_ring_submit_command submit;
|
||||
vn_submit_vkUpdateDescriptorSets(vn_ring, VK_COMMAND_GENERATE_REPLY_BIT_EXT, device, descriptorWriteCount, pDescriptorWrites, descriptorCopyCount, pDescriptorCopies, &submit);
|
||||
struct vn_cs_decoder *dec = vn_ring_get_command_reply(vn_ring, &submit);
|
||||
if (dec) {
|
||||
vn_decode_vkUpdateDescriptorSets_reply(dec, device, descriptorWriteCount, pDescriptorWrites, descriptorCopyCount, pDescriptorCopies);
|
||||
vn_ring_free_command_reply(vn_ring, &submit);
|
||||
}
|
||||
}
|
||||
|
||||
static inline void vn_async_vkUpdateDescriptorSets(struct vn_ring *vn_ring, VkDevice device, uint32_t descriptorWriteCount, const VkWriteDescriptorSet* pDescriptorWrites, uint32_t descriptorCopyCount, const VkCopyDescriptorSet* pDescriptorCopies)
|
||||
{
|
||||
struct vn_ring_submit_command submit;
|
||||
|
||||
@@ -788,19 +788,6 @@ static inline void vn_async_vkCreateDescriptorSetLayout(struct vn_ring *vn_ring,
|
||||
vn_submit_vkCreateDescriptorSetLayout(vn_ring, 0, device, pCreateInfo, pAllocator, pSetLayout, &submit);
|
||||
}
|
||||
|
||||
static inline void vn_call_vkDestroyDescriptorSetLayout(struct vn_ring *vn_ring, VkDevice device, VkDescriptorSetLayout descriptorSetLayout, const VkAllocationCallbacks* pAllocator)
|
||||
{
|
||||
VN_TRACE_FUNC();
|
||||
|
||||
struct vn_ring_submit_command submit;
|
||||
vn_submit_vkDestroyDescriptorSetLayout(vn_ring, VK_COMMAND_GENERATE_REPLY_BIT_EXT, device, descriptorSetLayout, pAllocator, &submit);
|
||||
struct vn_cs_decoder *dec = vn_ring_get_command_reply(vn_ring, &submit);
|
||||
if (dec) {
|
||||
vn_decode_vkDestroyDescriptorSetLayout_reply(dec, device, descriptorSetLayout, pAllocator);
|
||||
vn_ring_free_command_reply(vn_ring, &submit);
|
||||
}
|
||||
}
|
||||
|
||||
static inline void vn_async_vkDestroyDescriptorSetLayout(struct vn_ring *vn_ring, VkDevice device, VkDescriptorSetLayout descriptorSetLayout, const VkAllocationCallbacks* pAllocator)
|
||||
{
|
||||
struct vn_ring_submit_command submit;
|
||||
|
||||
@@ -304,19 +304,6 @@ static inline void vn_async_vkCreateDescriptorUpdateTemplate(struct vn_ring *vn_
|
||||
vn_submit_vkCreateDescriptorUpdateTemplate(vn_ring, 0, device, pCreateInfo, pAllocator, pDescriptorUpdateTemplate, &submit);
|
||||
}
|
||||
|
||||
static inline void vn_call_vkDestroyDescriptorUpdateTemplate(struct vn_ring *vn_ring, VkDevice device, VkDescriptorUpdateTemplate descriptorUpdateTemplate, const VkAllocationCallbacks* pAllocator)
|
||||
{
|
||||
VN_TRACE_FUNC();
|
||||
|
||||
struct vn_ring_submit_command submit;
|
||||
vn_submit_vkDestroyDescriptorUpdateTemplate(vn_ring, VK_COMMAND_GENERATE_REPLY_BIT_EXT, device, descriptorUpdateTemplate, pAllocator, &submit);
|
||||
struct vn_cs_decoder *dec = vn_ring_get_command_reply(vn_ring, &submit);
|
||||
if (dec) {
|
||||
vn_decode_vkDestroyDescriptorUpdateTemplate_reply(dec, device, descriptorUpdateTemplate, pAllocator);
|
||||
vn_ring_free_command_reply(vn_ring, &submit);
|
||||
}
|
||||
}
|
||||
|
||||
static inline void vn_async_vkDestroyDescriptorUpdateTemplate(struct vn_ring *vn_ring, VkDevice device, VkDescriptorUpdateTemplate descriptorUpdateTemplate, const VkAllocationCallbacks* pAllocator)
|
||||
{
|
||||
struct vn_ring_submit_command submit;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1614,38 +1614,12 @@ static inline void vn_async_vkAllocateMemory(struct vn_ring *vn_ring, VkDevice d
|
||||
vn_submit_vkAllocateMemory(vn_ring, 0, device, pAllocateInfo, pAllocator, pMemory, &submit);
|
||||
}
|
||||
|
||||
static inline void vn_call_vkFreeMemory(struct vn_ring *vn_ring, VkDevice device, VkDeviceMemory memory, const VkAllocationCallbacks* pAllocator)
|
||||
{
|
||||
VN_TRACE_FUNC();
|
||||
|
||||
struct vn_ring_submit_command submit;
|
||||
vn_submit_vkFreeMemory(vn_ring, VK_COMMAND_GENERATE_REPLY_BIT_EXT, device, memory, pAllocator, &submit);
|
||||
struct vn_cs_decoder *dec = vn_ring_get_command_reply(vn_ring, &submit);
|
||||
if (dec) {
|
||||
vn_decode_vkFreeMemory_reply(dec, device, memory, pAllocator);
|
||||
vn_ring_free_command_reply(vn_ring, &submit);
|
||||
}
|
||||
}
|
||||
|
||||
static inline void vn_async_vkFreeMemory(struct vn_ring *vn_ring, VkDevice device, VkDeviceMemory memory, const VkAllocationCallbacks* pAllocator)
|
||||
{
|
||||
struct vn_ring_submit_command submit;
|
||||
vn_submit_vkFreeMemory(vn_ring, 0, device, memory, pAllocator, &submit);
|
||||
}
|
||||
|
||||
static inline void vn_call_vkUnmapMemory(struct vn_ring *vn_ring, VkDevice device, VkDeviceMemory memory)
|
||||
{
|
||||
VN_TRACE_FUNC();
|
||||
|
||||
struct vn_ring_submit_command submit;
|
||||
vn_submit_vkUnmapMemory(vn_ring, VK_COMMAND_GENERATE_REPLY_BIT_EXT, device, memory, &submit);
|
||||
struct vn_cs_decoder *dec = vn_ring_get_command_reply(vn_ring, &submit);
|
||||
if (dec) {
|
||||
vn_decode_vkUnmapMemory_reply(dec, device, memory);
|
||||
vn_ring_free_command_reply(vn_ring, &submit);
|
||||
}
|
||||
}
|
||||
|
||||
static inline void vn_async_vkUnmapMemory(struct vn_ring *vn_ring, VkDevice device, VkDeviceMemory memory)
|
||||
{
|
||||
struct vn_ring_submit_command submit;
|
||||
|
||||
@@ -465,19 +465,6 @@ static inline void vn_async_vkCreateEvent(struct vn_ring *vn_ring, VkDevice devi
|
||||
vn_submit_vkCreateEvent(vn_ring, 0, device, pCreateInfo, pAllocator, pEvent, &submit);
|
||||
}
|
||||
|
||||
static inline void vn_call_vkDestroyEvent(struct vn_ring *vn_ring, VkDevice device, VkEvent event, const VkAllocationCallbacks* pAllocator)
|
||||
{
|
||||
VN_TRACE_FUNC();
|
||||
|
||||
struct vn_ring_submit_command submit;
|
||||
vn_submit_vkDestroyEvent(vn_ring, VK_COMMAND_GENERATE_REPLY_BIT_EXT, device, event, pAllocator, &submit);
|
||||
struct vn_cs_decoder *dec = vn_ring_get_command_reply(vn_ring, &submit);
|
||||
if (dec) {
|
||||
vn_decode_vkDestroyEvent_reply(dec, device, event, pAllocator);
|
||||
vn_ring_free_command_reply(vn_ring, &submit);
|
||||
}
|
||||
}
|
||||
|
||||
static inline void vn_async_vkDestroyEvent(struct vn_ring *vn_ring, VkDevice device, VkEvent event, const VkAllocationCallbacks* pAllocator)
|
||||
{
|
||||
struct vn_ring_submit_command submit;
|
||||
|
||||
@@ -663,19 +663,6 @@ static inline void vn_async_vkCreateFence(struct vn_ring *vn_ring, VkDevice devi
|
||||
vn_submit_vkCreateFence(vn_ring, 0, device, pCreateInfo, pAllocator, pFence, &submit);
|
||||
}
|
||||
|
||||
static inline void vn_call_vkDestroyFence(struct vn_ring *vn_ring, VkDevice device, VkFence fence, const VkAllocationCallbacks* pAllocator)
|
||||
{
|
||||
VN_TRACE_FUNC();
|
||||
|
||||
struct vn_ring_submit_command submit;
|
||||
vn_submit_vkDestroyFence(vn_ring, VK_COMMAND_GENERATE_REPLY_BIT_EXT, device, fence, pAllocator, &submit);
|
||||
struct vn_cs_decoder *dec = vn_ring_get_command_reply(vn_ring, &submit);
|
||||
if (dec) {
|
||||
vn_decode_vkDestroyFence_reply(dec, device, fence, pAllocator);
|
||||
vn_ring_free_command_reply(vn_ring, &submit);
|
||||
}
|
||||
}
|
||||
|
||||
static inline void vn_async_vkDestroyFence(struct vn_ring *vn_ring, VkDevice device, VkFence fence, const VkAllocationCallbacks* pAllocator)
|
||||
{
|
||||
struct vn_ring_submit_command submit;
|
||||
@@ -748,19 +735,6 @@ static inline void vn_async_vkWaitForFences(struct vn_ring *vn_ring, VkDevice de
|
||||
vn_submit_vkWaitForFences(vn_ring, 0, device, fenceCount, pFences, waitAll, timeout, &submit);
|
||||
}
|
||||
|
||||
static inline void vn_call_vkResetFenceResourceMESA(struct vn_ring *vn_ring, VkDevice device, VkFence fence)
|
||||
{
|
||||
VN_TRACE_FUNC();
|
||||
|
||||
struct vn_ring_submit_command submit;
|
||||
vn_submit_vkResetFenceResourceMESA(vn_ring, VK_COMMAND_GENERATE_REPLY_BIT_EXT, device, fence, &submit);
|
||||
struct vn_cs_decoder *dec = vn_ring_get_command_reply(vn_ring, &submit);
|
||||
if (dec) {
|
||||
vn_decode_vkResetFenceResourceMESA_reply(dec, device, fence);
|
||||
vn_ring_free_command_reply(vn_ring, &submit);
|
||||
}
|
||||
}
|
||||
|
||||
static inline void vn_async_vkResetFenceResourceMESA(struct vn_ring *vn_ring, VkDevice device, VkFence fence)
|
||||
{
|
||||
struct vn_ring_submit_command submit;
|
||||
|
||||
@@ -451,19 +451,6 @@ static inline void vn_async_vkCreateFramebuffer(struct vn_ring *vn_ring, VkDevic
|
||||
vn_submit_vkCreateFramebuffer(vn_ring, 0, device, pCreateInfo, pAllocator, pFramebuffer, &submit);
|
||||
}
|
||||
|
||||
static inline void vn_call_vkDestroyFramebuffer(struct vn_ring *vn_ring, VkDevice device, VkFramebuffer framebuffer, const VkAllocationCallbacks* pAllocator)
|
||||
{
|
||||
VN_TRACE_FUNC();
|
||||
|
||||
struct vn_ring_submit_command submit;
|
||||
vn_submit_vkDestroyFramebuffer(vn_ring, VK_COMMAND_GENERATE_REPLY_BIT_EXT, device, framebuffer, pAllocator, &submit);
|
||||
struct vn_cs_decoder *dec = vn_ring_get_command_reply(vn_ring, &submit);
|
||||
if (dec) {
|
||||
vn_decode_vkDestroyFramebuffer_reply(dec, device, framebuffer, pAllocator);
|
||||
vn_ring_free_command_reply(vn_ring, &submit);
|
||||
}
|
||||
}
|
||||
|
||||
static inline void vn_async_vkDestroyFramebuffer(struct vn_ring *vn_ring, VkDevice device, VkFramebuffer framebuffer, const VkAllocationCallbacks* pAllocator)
|
||||
{
|
||||
struct vn_ring_submit_command submit;
|
||||
|
||||
@@ -2917,19 +2917,6 @@ static inline void vn_async_vkCreateImage(struct vn_ring *vn_ring, VkDevice devi
|
||||
vn_submit_vkCreateImage(vn_ring, 0, device, pCreateInfo, pAllocator, pImage, &submit);
|
||||
}
|
||||
|
||||
static inline void vn_call_vkDestroyImage(struct vn_ring *vn_ring, VkDevice device, VkImage image, const VkAllocationCallbacks* pAllocator)
|
||||
{
|
||||
VN_TRACE_FUNC();
|
||||
|
||||
struct vn_ring_submit_command submit;
|
||||
vn_submit_vkDestroyImage(vn_ring, VK_COMMAND_GENERATE_REPLY_BIT_EXT, device, image, pAllocator, &submit);
|
||||
struct vn_cs_decoder *dec = vn_ring_get_command_reply(vn_ring, &submit);
|
||||
if (dec) {
|
||||
vn_decode_vkDestroyImage_reply(dec, device, image, pAllocator);
|
||||
vn_ring_free_command_reply(vn_ring, &submit);
|
||||
}
|
||||
}
|
||||
|
||||
static inline void vn_async_vkDestroyImage(struct vn_ring *vn_ring, VkDevice device, VkImage image, const VkAllocationCallbacks* pAllocator)
|
||||
{
|
||||
struct vn_ring_submit_command submit;
|
||||
|
||||
@@ -429,19 +429,6 @@ static inline void vn_async_vkCreateImageView(struct vn_ring *vn_ring, VkDevice
|
||||
vn_submit_vkCreateImageView(vn_ring, 0, device, pCreateInfo, pAllocator, pView, &submit);
|
||||
}
|
||||
|
||||
static inline void vn_call_vkDestroyImageView(struct vn_ring *vn_ring, VkDevice device, VkImageView imageView, const VkAllocationCallbacks* pAllocator)
|
||||
{
|
||||
VN_TRACE_FUNC();
|
||||
|
||||
struct vn_ring_submit_command submit;
|
||||
vn_submit_vkDestroyImageView(vn_ring, VK_COMMAND_GENERATE_REPLY_BIT_EXT, device, imageView, pAllocator, &submit);
|
||||
struct vn_cs_decoder *dec = vn_ring_get_command_reply(vn_ring, &submit);
|
||||
if (dec) {
|
||||
vn_decode_vkDestroyImageView_reply(dec, device, imageView, pAllocator);
|
||||
vn_ring_free_command_reply(vn_ring, &submit);
|
||||
}
|
||||
}
|
||||
|
||||
static inline void vn_async_vkDestroyImageView(struct vn_ring *vn_ring, VkDevice device, VkImageView imageView, const VkAllocationCallbacks* pAllocator)
|
||||
{
|
||||
struct vn_ring_submit_command submit;
|
||||
|
||||
@@ -19,10 +19,11 @@ struct vn_info_extension {
|
||||
};
|
||||
|
||||
/* sorted by extension names for bsearch */
|
||||
static const uint32_t _vn_info_extension_count = 163;
|
||||
static const struct vn_info_extension _vn_info_extensions[163] = {
|
||||
static const uint32_t _vn_info_extension_count = 173;
|
||||
static const struct vn_info_extension _vn_info_extensions[173] = {
|
||||
{ "VK_ARM_rasterization_order_attachment_access", 343, 1 },
|
||||
{ "VK_EXT_4444_formats", 341, 1 },
|
||||
{ "VK_EXT_attachment_feedback_loop_dynamic_state", 525, 1 },
|
||||
{ "VK_EXT_attachment_feedback_loop_layout", 340, 2 },
|
||||
{ "VK_EXT_blend_operation_advanced", 149, 2 },
|
||||
{ "VK_EXT_border_color_swizzle", 412, 1 },
|
||||
@@ -32,6 +33,8 @@ static const struct vn_info_extension _vn_info_extensions[163] = {
|
||||
{ "VK_EXT_conditional_rendering", 82, 2 },
|
||||
{ "VK_EXT_conservative_rasterization", 102, 1 },
|
||||
{ "VK_EXT_custom_border_color", 288, 12 },
|
||||
{ "VK_EXT_depth_bias_control", 284, 1 },
|
||||
{ "VK_EXT_depth_clamp_control", 583, 1 },
|
||||
{ "VK_EXT_depth_clamp_zero_one", 422, 1 },
|
||||
{ "VK_EXT_depth_clip_control", 356, 1 },
|
||||
{ "VK_EXT_depth_clip_enable", 103, 1 },
|
||||
@@ -43,6 +46,7 @@ static const struct vn_info_extension _vn_info_extensions[163] = {
|
||||
{ "VK_EXT_extended_dynamic_state3", 456, 2 },
|
||||
{ "VK_EXT_external_memory_acquire_unmodified", 454, 1 },
|
||||
{ "VK_EXT_external_memory_dma_buf", 126, 1 },
|
||||
{ "VK_EXT_filter_cubic", 171, 3 },
|
||||
{ "VK_EXT_fragment_shader_interlock", 252, 1 },
|
||||
{ "VK_EXT_global_priority", 175, 2 },
|
||||
{ "VK_EXT_global_priority_query", 389, 1 },
|
||||
@@ -55,12 +59,14 @@ static const struct vn_info_extension _vn_info_extensions[163] = {
|
||||
{ "VK_EXT_image_view_min_lod", 392, 1 },
|
||||
{ "VK_EXT_index_type_uint8", 266, 1 },
|
||||
{ "VK_EXT_inline_uniform_block", 139, 1 },
|
||||
{ "VK_EXT_legacy_dithering", 466, 2 },
|
||||
{ "VK_EXT_legacy_vertex_attributes", 496, 1 },
|
||||
{ "VK_EXT_line_rasterization", 260, 1 },
|
||||
{ "VK_EXT_load_store_op_none", 401, 1 },
|
||||
{ "VK_EXT_memory_budget", 238, 1 },
|
||||
{ "VK_EXT_multi_draw", 393, 1 },
|
||||
{ "VK_EXT_mutable_descriptor_type", 495, 1 },
|
||||
{ "VK_EXT_nested_command_buffer", 452, 1 },
|
||||
{ "VK_EXT_non_seamless_cube_map", 423, 1 },
|
||||
{ "VK_EXT_pci_bus_info", 213, 2 },
|
||||
{ "VK_EXT_pipeline_creation_cache_control", 298, 3 },
|
||||
@@ -97,6 +103,10 @@ static const struct vn_info_extension _vn_info_extensions[163] = {
|
||||
{ "VK_EXT_vertex_input_dynamic_state", 353, 2 },
|
||||
{ "VK_EXT_ycbcr_2plane_444_formats", 331, 1 },
|
||||
{ "VK_EXT_ycbcr_image_arrays", 253, 1 },
|
||||
{ "VK_GOOGLE_decorate_string", 225, 1 },
|
||||
{ "VK_GOOGLE_hlsl_functionality1", 224, 1 },
|
||||
{ "VK_GOOGLE_user_type", 290, 1 },
|
||||
{ "VK_IMG_filter_cubic", 16, 1 },
|
||||
{ "VK_KHR_16bit_storage", 84, 1 },
|
||||
{ "VK_KHR_8bit_storage", 178, 1 },
|
||||
{ "VK_KHR_acceleration_structure", 151, 13 },
|
||||
|
||||
@@ -683,19 +683,6 @@ static inline void vn_async_vkCreateInstance(struct vn_ring *vn_ring, const VkIn
|
||||
vn_submit_vkCreateInstance(vn_ring, 0, pCreateInfo, pAllocator, pInstance, &submit);
|
||||
}
|
||||
|
||||
static inline void vn_call_vkDestroyInstance(struct vn_ring *vn_ring, VkInstance instance, const VkAllocationCallbacks* pAllocator)
|
||||
{
|
||||
VN_TRACE_FUNC();
|
||||
|
||||
struct vn_ring_submit_command submit;
|
||||
vn_submit_vkDestroyInstance(vn_ring, VK_COMMAND_GENERATE_REPLY_BIT_EXT, instance, pAllocator, &submit);
|
||||
struct vn_cs_decoder *dec = vn_ring_get_command_reply(vn_ring, &submit);
|
||||
if (dec) {
|
||||
vn_decode_vkDestroyInstance_reply(dec, instance, pAllocator);
|
||||
vn_ring_free_command_reply(vn_ring, &submit);
|
||||
}
|
||||
}
|
||||
|
||||
static inline void vn_async_vkDestroyInstance(struct vn_ring *vn_ring, VkInstance instance, const VkAllocationCallbacks* pAllocator)
|
||||
{
|
||||
struct vn_ring_submit_command submit;
|
||||
|
||||
@@ -828,6 +828,64 @@ vn_encode_VkPipelineViewportDepthClipControlCreateInfoEXT(struct vn_cs_encoder *
|
||||
vn_encode_VkPipelineViewportDepthClipControlCreateInfoEXT_self(enc, val);
|
||||
}
|
||||
|
||||
/* struct VkPipelineViewportDepthClampControlCreateInfoEXT chain */
|
||||
|
||||
static inline size_t
|
||||
vn_sizeof_VkPipelineViewportDepthClampControlCreateInfoEXT_pnext(const void *val)
|
||||
{
|
||||
/* no known/supported struct */
|
||||
return vn_sizeof_simple_pointer(NULL);
|
||||
}
|
||||
|
||||
static inline size_t
|
||||
vn_sizeof_VkPipelineViewportDepthClampControlCreateInfoEXT_self(const VkPipelineViewportDepthClampControlCreateInfoEXT *val)
|
||||
{
|
||||
size_t size = 0;
|
||||
/* skip val->{sType,pNext} */
|
||||
size += vn_sizeof_VkDepthClampModeEXT(&val->depthClampMode);
|
||||
size += vn_sizeof_simple_pointer(val->pDepthClampRange);
|
||||
if (val->pDepthClampRange)
|
||||
size += vn_sizeof_VkDepthClampRangeEXT(val->pDepthClampRange);
|
||||
return size;
|
||||
}
|
||||
|
||||
static inline size_t
|
||||
vn_sizeof_VkPipelineViewportDepthClampControlCreateInfoEXT(const VkPipelineViewportDepthClampControlCreateInfoEXT *val)
|
||||
{
|
||||
size_t size = 0;
|
||||
|
||||
size += vn_sizeof_VkStructureType(&val->sType);
|
||||
size += vn_sizeof_VkPipelineViewportDepthClampControlCreateInfoEXT_pnext(val->pNext);
|
||||
size += vn_sizeof_VkPipelineViewportDepthClampControlCreateInfoEXT_self(val);
|
||||
|
||||
return size;
|
||||
}
|
||||
|
||||
static inline void
|
||||
vn_encode_VkPipelineViewportDepthClampControlCreateInfoEXT_pnext(struct vn_cs_encoder *enc, const void *val)
|
||||
{
|
||||
/* no known/supported struct */
|
||||
vn_encode_simple_pointer(enc, NULL);
|
||||
}
|
||||
|
||||
static inline void
|
||||
vn_encode_VkPipelineViewportDepthClampControlCreateInfoEXT_self(struct vn_cs_encoder *enc, const VkPipelineViewportDepthClampControlCreateInfoEXT *val)
|
||||
{
|
||||
/* skip val->{sType,pNext} */
|
||||
vn_encode_VkDepthClampModeEXT(enc, &val->depthClampMode);
|
||||
if (vn_encode_simple_pointer(enc, val->pDepthClampRange))
|
||||
vn_encode_VkDepthClampRangeEXT(enc, val->pDepthClampRange);
|
||||
}
|
||||
|
||||
static inline void
|
||||
vn_encode_VkPipelineViewportDepthClampControlCreateInfoEXT(struct vn_cs_encoder *enc, const VkPipelineViewportDepthClampControlCreateInfoEXT *val)
|
||||
{
|
||||
assert(val->sType == VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_DEPTH_CLAMP_CONTROL_CREATE_INFO_EXT);
|
||||
vn_encode_VkStructureType(enc, &(VkStructureType){ VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_DEPTH_CLAMP_CONTROL_CREATE_INFO_EXT });
|
||||
vn_encode_VkPipelineViewportDepthClampControlCreateInfoEXT_pnext(enc, val->pNext);
|
||||
vn_encode_VkPipelineViewportDepthClampControlCreateInfoEXT_self(enc, val);
|
||||
}
|
||||
|
||||
/* struct VkPipelineViewportStateCreateInfo chain */
|
||||
|
||||
static inline size_t
|
||||
@@ -846,6 +904,14 @@ vn_sizeof_VkPipelineViewportStateCreateInfo_pnext(const void *val)
|
||||
size += vn_sizeof_VkPipelineViewportStateCreateInfo_pnext(pnext->pNext);
|
||||
size += vn_sizeof_VkPipelineViewportDepthClipControlCreateInfoEXT_self((const VkPipelineViewportDepthClipControlCreateInfoEXT *)pnext);
|
||||
return size;
|
||||
case VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_DEPTH_CLAMP_CONTROL_CREATE_INFO_EXT:
|
||||
if (!vn_cs_renderer_protocol_has_extension(583 /* VK_EXT_depth_clamp_control */))
|
||||
break;
|
||||
size += vn_sizeof_simple_pointer(pnext);
|
||||
size += vn_sizeof_VkStructureType(&pnext->sType);
|
||||
size += vn_sizeof_VkPipelineViewportStateCreateInfo_pnext(pnext->pNext);
|
||||
size += vn_sizeof_VkPipelineViewportDepthClampControlCreateInfoEXT_self((const VkPipelineViewportDepthClampControlCreateInfoEXT *)pnext);
|
||||
return size;
|
||||
default:
|
||||
/* ignore unknown/unsupported struct */
|
||||
break;
|
||||
@@ -908,6 +974,14 @@ vn_encode_VkPipelineViewportStateCreateInfo_pnext(struct vn_cs_encoder *enc, con
|
||||
vn_encode_VkPipelineViewportStateCreateInfo_pnext(enc, pnext->pNext);
|
||||
vn_encode_VkPipelineViewportDepthClipControlCreateInfoEXT_self(enc, (const VkPipelineViewportDepthClipControlCreateInfoEXT *)pnext);
|
||||
return;
|
||||
case VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_DEPTH_CLAMP_CONTROL_CREATE_INFO_EXT:
|
||||
if (!vn_cs_renderer_protocol_has_extension(583 /* VK_EXT_depth_clamp_control */))
|
||||
break;
|
||||
vn_encode_simple_pointer(enc, pnext);
|
||||
vn_encode_VkStructureType(enc, &pnext->sType);
|
||||
vn_encode_VkPipelineViewportStateCreateInfo_pnext(enc, pnext->pNext);
|
||||
vn_encode_VkPipelineViewportDepthClampControlCreateInfoEXT_self(enc, (const VkPipelineViewportDepthClampControlCreateInfoEXT *)pnext);
|
||||
return;
|
||||
default:
|
||||
/* ignore unknown/unsupported struct */
|
||||
break;
|
||||
@@ -1279,6 +1353,14 @@ vn_sizeof_VkPipelineRasterizationStateCreateInfo_pnext(const void *val)
|
||||
size += vn_sizeof_VkPipelineRasterizationStateCreateInfo_pnext(pnext->pNext);
|
||||
size += vn_sizeof_VkPipelineRasterizationProvokingVertexStateCreateInfoEXT_self((const VkPipelineRasterizationProvokingVertexStateCreateInfoEXT *)pnext);
|
||||
return size;
|
||||
case VK_STRUCTURE_TYPE_DEPTH_BIAS_REPRESENTATION_INFO_EXT:
|
||||
if (!vn_cs_renderer_protocol_has_extension(284 /* VK_EXT_depth_bias_control */))
|
||||
break;
|
||||
size += vn_sizeof_simple_pointer(pnext);
|
||||
size += vn_sizeof_VkStructureType(&pnext->sType);
|
||||
size += vn_sizeof_VkPipelineRasterizationStateCreateInfo_pnext(pnext->pNext);
|
||||
size += vn_sizeof_VkDepthBiasRepresentationInfoEXT_self((const VkDepthBiasRepresentationInfoEXT *)pnext);
|
||||
return size;
|
||||
default:
|
||||
/* ignore unknown/unsupported struct */
|
||||
break;
|
||||
@@ -1367,6 +1449,14 @@ vn_encode_VkPipelineRasterizationStateCreateInfo_pnext(struct vn_cs_encoder *enc
|
||||
vn_encode_VkPipelineRasterizationStateCreateInfo_pnext(enc, pnext->pNext);
|
||||
vn_encode_VkPipelineRasterizationProvokingVertexStateCreateInfoEXT_self(enc, (const VkPipelineRasterizationProvokingVertexStateCreateInfoEXT *)pnext);
|
||||
return;
|
||||
case VK_STRUCTURE_TYPE_DEPTH_BIAS_REPRESENTATION_INFO_EXT:
|
||||
if (!vn_cs_renderer_protocol_has_extension(284 /* VK_EXT_depth_bias_control */))
|
||||
break;
|
||||
vn_encode_simple_pointer(enc, pnext);
|
||||
vn_encode_VkStructureType(enc, &pnext->sType);
|
||||
vn_encode_VkPipelineRasterizationStateCreateInfo_pnext(enc, pnext->pNext);
|
||||
vn_encode_VkDepthBiasRepresentationInfoEXT_self(enc, (const VkDepthBiasRepresentationInfoEXT *)pnext);
|
||||
return;
|
||||
default:
|
||||
/* ignore unknown/unsupported struct */
|
||||
break;
|
||||
@@ -3902,19 +3992,6 @@ static inline void vn_async_vkCreateComputePipelines(struct vn_ring *vn_ring, Vk
|
||||
vn_submit_vkCreateComputePipelines(vn_ring, 0, device, pipelineCache, createInfoCount, pCreateInfos, pAllocator, pPipelines, &submit);
|
||||
}
|
||||
|
||||
static inline void vn_call_vkDestroyPipeline(struct vn_ring *vn_ring, VkDevice device, VkPipeline pipeline, const VkAllocationCallbacks* pAllocator)
|
||||
{
|
||||
VN_TRACE_FUNC();
|
||||
|
||||
struct vn_ring_submit_command submit;
|
||||
vn_submit_vkDestroyPipeline(vn_ring, VK_COMMAND_GENERATE_REPLY_BIT_EXT, device, pipeline, pAllocator, &submit);
|
||||
struct vn_cs_decoder *dec = vn_ring_get_command_reply(vn_ring, &submit);
|
||||
if (dec) {
|
||||
vn_decode_vkDestroyPipeline_reply(dec, device, pipeline, pAllocator);
|
||||
vn_ring_free_command_reply(vn_ring, &submit);
|
||||
}
|
||||
}
|
||||
|
||||
static inline void vn_async_vkDestroyPipeline(struct vn_ring *vn_ring, VkDevice device, VkPipeline pipeline, const VkAllocationCallbacks* pAllocator)
|
||||
{
|
||||
struct vn_ring_submit_command submit;
|
||||
|
||||
@@ -456,19 +456,6 @@ static inline void vn_async_vkCreatePipelineCache(struct vn_ring *vn_ring, VkDev
|
||||
vn_submit_vkCreatePipelineCache(vn_ring, 0, device, pCreateInfo, pAllocator, pPipelineCache, &submit);
|
||||
}
|
||||
|
||||
static inline void vn_call_vkDestroyPipelineCache(struct vn_ring *vn_ring, VkDevice device, VkPipelineCache pipelineCache, const VkAllocationCallbacks* pAllocator)
|
||||
{
|
||||
VN_TRACE_FUNC();
|
||||
|
||||
struct vn_ring_submit_command submit;
|
||||
vn_submit_vkDestroyPipelineCache(vn_ring, VK_COMMAND_GENERATE_REPLY_BIT_EXT, device, pipelineCache, pAllocator, &submit);
|
||||
struct vn_cs_decoder *dec = vn_ring_get_command_reply(vn_ring, &submit);
|
||||
if (dec) {
|
||||
vn_decode_vkDestroyPipelineCache_reply(dec, device, pipelineCache, pAllocator);
|
||||
vn_ring_free_command_reply(vn_ring, &submit);
|
||||
}
|
||||
}
|
||||
|
||||
static inline void vn_async_vkDestroyPipelineCache(struct vn_ring *vn_ring, VkDevice device, VkPipelineCache pipelineCache, const VkAllocationCallbacks* pAllocator)
|
||||
{
|
||||
struct vn_ring_submit_command submit;
|
||||
|
||||
@@ -199,19 +199,6 @@ static inline void vn_async_vkCreatePipelineLayout(struct vn_ring *vn_ring, VkDe
|
||||
vn_submit_vkCreatePipelineLayout(vn_ring, 0, device, pCreateInfo, pAllocator, pPipelineLayout, &submit);
|
||||
}
|
||||
|
||||
static inline void vn_call_vkDestroyPipelineLayout(struct vn_ring *vn_ring, VkDevice device, VkPipelineLayout pipelineLayout, const VkAllocationCallbacks* pAllocator)
|
||||
{
|
||||
VN_TRACE_FUNC();
|
||||
|
||||
struct vn_ring_submit_command submit;
|
||||
vn_submit_vkDestroyPipelineLayout(vn_ring, VK_COMMAND_GENERATE_REPLY_BIT_EXT, device, pipelineLayout, pAllocator, &submit);
|
||||
struct vn_cs_decoder *dec = vn_ring_get_command_reply(vn_ring, &submit);
|
||||
if (dec) {
|
||||
vn_decode_vkDestroyPipelineLayout_reply(dec, device, pipelineLayout, pAllocator);
|
||||
vn_ring_free_command_reply(vn_ring, &submit);
|
||||
}
|
||||
}
|
||||
|
||||
static inline void vn_async_vkDestroyPipelineLayout(struct vn_ring *vn_ring, VkDevice device, VkPipelineLayout pipelineLayout, const VkAllocationCallbacks* pAllocator)
|
||||
{
|
||||
struct vn_ring_submit_command submit;
|
||||
|
||||
@@ -418,19 +418,6 @@ static inline void vn_async_vkCreatePrivateDataSlot(struct vn_ring *vn_ring, VkD
|
||||
vn_submit_vkCreatePrivateDataSlot(vn_ring, 0, device, pCreateInfo, pAllocator, pPrivateDataSlot, &submit);
|
||||
}
|
||||
|
||||
static inline void vn_call_vkDestroyPrivateDataSlot(struct vn_ring *vn_ring, VkDevice device, VkPrivateDataSlot privateDataSlot, const VkAllocationCallbacks* pAllocator)
|
||||
{
|
||||
VN_TRACE_FUNC();
|
||||
|
||||
struct vn_ring_submit_command submit;
|
||||
vn_submit_vkDestroyPrivateDataSlot(vn_ring, VK_COMMAND_GENERATE_REPLY_BIT_EXT, device, privateDataSlot, pAllocator, &submit);
|
||||
struct vn_cs_decoder *dec = vn_ring_get_command_reply(vn_ring, &submit);
|
||||
if (dec) {
|
||||
vn_decode_vkDestroyPrivateDataSlot_reply(dec, device, privateDataSlot, pAllocator);
|
||||
vn_ring_free_command_reply(vn_ring, &submit);
|
||||
}
|
||||
}
|
||||
|
||||
static inline void vn_async_vkDestroyPrivateDataSlot(struct vn_ring *vn_ring, VkDevice device, VkPrivateDataSlot privateDataSlot, const VkAllocationCallbacks* pAllocator)
|
||||
{
|
||||
struct vn_ring_submit_command submit;
|
||||
|
||||
@@ -437,19 +437,6 @@ static inline void vn_async_vkCreateQueryPool(struct vn_ring *vn_ring, VkDevice
|
||||
vn_submit_vkCreateQueryPool(vn_ring, 0, device, pCreateInfo, pAllocator, pQueryPool, &submit);
|
||||
}
|
||||
|
||||
static inline void vn_call_vkDestroyQueryPool(struct vn_ring *vn_ring, VkDevice device, VkQueryPool queryPool, const VkAllocationCallbacks* pAllocator)
|
||||
{
|
||||
VN_TRACE_FUNC();
|
||||
|
||||
struct vn_ring_submit_command submit;
|
||||
vn_submit_vkDestroyQueryPool(vn_ring, VK_COMMAND_GENERATE_REPLY_BIT_EXT, device, queryPool, pAllocator, &submit);
|
||||
struct vn_cs_decoder *dec = vn_ring_get_command_reply(vn_ring, &submit);
|
||||
if (dec) {
|
||||
vn_decode_vkDestroyQueryPool_reply(dec, device, queryPool, pAllocator);
|
||||
vn_ring_free_command_reply(vn_ring, &submit);
|
||||
}
|
||||
}
|
||||
|
||||
static inline void vn_async_vkDestroyQueryPool(struct vn_ring *vn_ring, VkDevice device, VkQueryPool queryPool, const VkAllocationCallbacks* pAllocator)
|
||||
{
|
||||
struct vn_ring_submit_command submit;
|
||||
@@ -478,19 +465,6 @@ static inline void vn_async_vkGetQueryPoolResults(struct vn_ring *vn_ring, VkDev
|
||||
vn_submit_vkGetQueryPoolResults(vn_ring, 0, device, queryPool, firstQuery, queryCount, dataSize, pData, stride, flags, &submit);
|
||||
}
|
||||
|
||||
static inline void vn_call_vkResetQueryPool(struct vn_ring *vn_ring, VkDevice device, VkQueryPool queryPool, uint32_t firstQuery, uint32_t queryCount)
|
||||
{
|
||||
VN_TRACE_FUNC();
|
||||
|
||||
struct vn_ring_submit_command submit;
|
||||
vn_submit_vkResetQueryPool(vn_ring, VK_COMMAND_GENERATE_REPLY_BIT_EXT, device, queryPool, firstQuery, queryCount, &submit);
|
||||
struct vn_cs_decoder *dec = vn_ring_get_command_reply(vn_ring, &submit);
|
||||
if (dec) {
|
||||
vn_decode_vkResetQueryPool_reply(dec, device, queryPool, firstQuery, queryCount);
|
||||
vn_ring_free_command_reply(vn_ring, &submit);
|
||||
}
|
||||
}
|
||||
|
||||
static inline void vn_async_vkResetQueryPool(struct vn_ring *vn_ring, VkDevice device, VkQueryPool queryPool, uint32_t firstQuery, uint32_t queryCount)
|
||||
{
|
||||
struct vn_ring_submit_command submit;
|
||||
|
||||
@@ -1818,19 +1818,6 @@ static inline void vn_async_vkCreateRenderPass(struct vn_ring *vn_ring, VkDevice
|
||||
vn_submit_vkCreateRenderPass(vn_ring, 0, device, pCreateInfo, pAllocator, pRenderPass, &submit);
|
||||
}
|
||||
|
||||
static inline void vn_call_vkDestroyRenderPass(struct vn_ring *vn_ring, VkDevice device, VkRenderPass renderPass, const VkAllocationCallbacks* pAllocator)
|
||||
{
|
||||
VN_TRACE_FUNC();
|
||||
|
||||
struct vn_ring_submit_command submit;
|
||||
vn_submit_vkDestroyRenderPass(vn_ring, VK_COMMAND_GENERATE_REPLY_BIT_EXT, device, renderPass, pAllocator, &submit);
|
||||
struct vn_cs_decoder *dec = vn_ring_get_command_reply(vn_ring, &submit);
|
||||
if (dec) {
|
||||
vn_decode_vkDestroyRenderPass_reply(dec, device, renderPass, pAllocator);
|
||||
vn_ring_free_command_reply(vn_ring, &submit);
|
||||
}
|
||||
}
|
||||
|
||||
static inline void vn_async_vkDestroyRenderPass(struct vn_ring *vn_ring, VkDevice device, VkRenderPass renderPass, const VkAllocationCallbacks* pAllocator)
|
||||
{
|
||||
struct vn_ring_submit_command submit;
|
||||
|
||||
@@ -522,19 +522,6 @@ static inline void vn_async_vkCreateSampler(struct vn_ring *vn_ring, VkDevice de
|
||||
vn_submit_vkCreateSampler(vn_ring, 0, device, pCreateInfo, pAllocator, pSampler, &submit);
|
||||
}
|
||||
|
||||
static inline void vn_call_vkDestroySampler(struct vn_ring *vn_ring, VkDevice device, VkSampler sampler, const VkAllocationCallbacks* pAllocator)
|
||||
{
|
||||
VN_TRACE_FUNC();
|
||||
|
||||
struct vn_ring_submit_command submit;
|
||||
vn_submit_vkDestroySampler(vn_ring, VK_COMMAND_GENERATE_REPLY_BIT_EXT, device, sampler, pAllocator, &submit);
|
||||
struct vn_cs_decoder *dec = vn_ring_get_command_reply(vn_ring, &submit);
|
||||
if (dec) {
|
||||
vn_decode_vkDestroySampler_reply(dec, device, sampler, pAllocator);
|
||||
vn_ring_free_command_reply(vn_ring, &submit);
|
||||
}
|
||||
}
|
||||
|
||||
static inline void vn_async_vkDestroySampler(struct vn_ring *vn_ring, VkDevice device, VkSampler sampler, const VkAllocationCallbacks* pAllocator)
|
||||
{
|
||||
struct vn_ring_submit_command submit;
|
||||
|
||||
@@ -266,19 +266,6 @@ static inline void vn_async_vkCreateSamplerYcbcrConversion(struct vn_ring *vn_ri
|
||||
vn_submit_vkCreateSamplerYcbcrConversion(vn_ring, 0, device, pCreateInfo, pAllocator, pYcbcrConversion, &submit);
|
||||
}
|
||||
|
||||
static inline void vn_call_vkDestroySamplerYcbcrConversion(struct vn_ring *vn_ring, VkDevice device, VkSamplerYcbcrConversion ycbcrConversion, const VkAllocationCallbacks* pAllocator)
|
||||
{
|
||||
VN_TRACE_FUNC();
|
||||
|
||||
struct vn_ring_submit_command submit;
|
||||
vn_submit_vkDestroySamplerYcbcrConversion(vn_ring, VK_COMMAND_GENERATE_REPLY_BIT_EXT, device, ycbcrConversion, pAllocator, &submit);
|
||||
struct vn_cs_decoder *dec = vn_ring_get_command_reply(vn_ring, &submit);
|
||||
if (dec) {
|
||||
vn_decode_vkDestroySamplerYcbcrConversion_reply(dec, device, ycbcrConversion, pAllocator);
|
||||
vn_ring_free_command_reply(vn_ring, &submit);
|
||||
}
|
||||
}
|
||||
|
||||
static inline void vn_async_vkDestroySamplerYcbcrConversion(struct vn_ring *vn_ring, VkDevice device, VkSamplerYcbcrConversion ycbcrConversion, const VkAllocationCallbacks* pAllocator)
|
||||
{
|
||||
struct vn_ring_submit_command submit;
|
||||
|
||||
@@ -914,19 +914,6 @@ static inline void vn_async_vkCreateSemaphore(struct vn_ring *vn_ring, VkDevice
|
||||
vn_submit_vkCreateSemaphore(vn_ring, 0, device, pCreateInfo, pAllocator, pSemaphore, &submit);
|
||||
}
|
||||
|
||||
static inline void vn_call_vkDestroySemaphore(struct vn_ring *vn_ring, VkDevice device, VkSemaphore semaphore, const VkAllocationCallbacks* pAllocator)
|
||||
{
|
||||
VN_TRACE_FUNC();
|
||||
|
||||
struct vn_ring_submit_command submit;
|
||||
vn_submit_vkDestroySemaphore(vn_ring, VK_COMMAND_GENERATE_REPLY_BIT_EXT, device, semaphore, pAllocator, &submit);
|
||||
struct vn_cs_decoder *dec = vn_ring_get_command_reply(vn_ring, &submit);
|
||||
if (dec) {
|
||||
vn_decode_vkDestroySemaphore_reply(dec, device, semaphore, pAllocator);
|
||||
vn_ring_free_command_reply(vn_ring, &submit);
|
||||
}
|
||||
}
|
||||
|
||||
static inline void vn_async_vkDestroySemaphore(struct vn_ring *vn_ring, VkDevice device, VkSemaphore semaphore, const VkAllocationCallbacks* pAllocator)
|
||||
{
|
||||
struct vn_ring_submit_command submit;
|
||||
@@ -999,38 +986,12 @@ static inline void vn_async_vkSignalSemaphore(struct vn_ring *vn_ring, VkDevice
|
||||
vn_submit_vkSignalSemaphore(vn_ring, 0, device, pSignalInfo, &submit);
|
||||
}
|
||||
|
||||
static inline void vn_call_vkWaitSemaphoreResourceMESA(struct vn_ring *vn_ring, VkDevice device, VkSemaphore semaphore)
|
||||
{
|
||||
VN_TRACE_FUNC();
|
||||
|
||||
struct vn_ring_submit_command submit;
|
||||
vn_submit_vkWaitSemaphoreResourceMESA(vn_ring, VK_COMMAND_GENERATE_REPLY_BIT_EXT, device, semaphore, &submit);
|
||||
struct vn_cs_decoder *dec = vn_ring_get_command_reply(vn_ring, &submit);
|
||||
if (dec) {
|
||||
vn_decode_vkWaitSemaphoreResourceMESA_reply(dec, device, semaphore);
|
||||
vn_ring_free_command_reply(vn_ring, &submit);
|
||||
}
|
||||
}
|
||||
|
||||
static inline void vn_async_vkWaitSemaphoreResourceMESA(struct vn_ring *vn_ring, VkDevice device, VkSemaphore semaphore)
|
||||
{
|
||||
struct vn_ring_submit_command submit;
|
||||
vn_submit_vkWaitSemaphoreResourceMESA(vn_ring, 0, device, semaphore, &submit);
|
||||
}
|
||||
|
||||
static inline void vn_call_vkImportSemaphoreResourceMESA(struct vn_ring *vn_ring, VkDevice device, const VkImportSemaphoreResourceInfoMESA* pImportSemaphoreResourceInfo)
|
||||
{
|
||||
VN_TRACE_FUNC();
|
||||
|
||||
struct vn_ring_submit_command submit;
|
||||
vn_submit_vkImportSemaphoreResourceMESA(vn_ring, VK_COMMAND_GENERATE_REPLY_BIT_EXT, device, pImportSemaphoreResourceInfo, &submit);
|
||||
struct vn_cs_decoder *dec = vn_ring_get_command_reply(vn_ring, &submit);
|
||||
if (dec) {
|
||||
vn_decode_vkImportSemaphoreResourceMESA_reply(dec, device, pImportSemaphoreResourceInfo);
|
||||
vn_ring_free_command_reply(vn_ring, &submit);
|
||||
}
|
||||
}
|
||||
|
||||
static inline void vn_async_vkImportSemaphoreResourceMESA(struct vn_ring *vn_ring, VkDevice device, const VkImportSemaphoreResourceInfoMESA* pImportSemaphoreResourceInfo)
|
||||
{
|
||||
struct vn_ring_submit_command submit;
|
||||
|
||||
@@ -199,19 +199,6 @@ static inline void vn_async_vkCreateShaderModule(struct vn_ring *vn_ring, VkDevi
|
||||
vn_submit_vkCreateShaderModule(vn_ring, 0, device, pCreateInfo, pAllocator, pShaderModule, &submit);
|
||||
}
|
||||
|
||||
static inline void vn_call_vkDestroyShaderModule(struct vn_ring *vn_ring, VkDevice device, VkShaderModule shaderModule, const VkAllocationCallbacks* pAllocator)
|
||||
{
|
||||
VN_TRACE_FUNC();
|
||||
|
||||
struct vn_ring_submit_command submit;
|
||||
vn_submit_vkDestroyShaderModule(vn_ring, VK_COMMAND_GENERATE_REPLY_BIT_EXT, device, shaderModule, pAllocator, &submit);
|
||||
struct vn_cs_decoder *dec = vn_ring_get_command_reply(vn_ring, &submit);
|
||||
if (dec) {
|
||||
vn_decode_vkDestroyShaderModule_reply(dec, device, shaderModule, pAllocator);
|
||||
vn_ring_free_command_reply(vn_ring, &submit);
|
||||
}
|
||||
}
|
||||
|
||||
static inline void vn_async_vkDestroyShaderModule(struct vn_ring *vn_ring, VkDevice device, VkShaderModule shaderModule, const VkAllocationCallbacks* pAllocator)
|
||||
{
|
||||
struct vn_ring_submit_command submit;
|
||||
|
||||
@@ -844,6 +844,79 @@ vn_encode_VkRect2D_partial(struct vn_cs_encoder *enc, const VkRect2D *val)
|
||||
vn_encode_VkExtent2D_partial(enc, &val->extent);
|
||||
}
|
||||
|
||||
/* struct VkDepthClampRangeEXT */
|
||||
|
||||
static inline size_t
|
||||
vn_sizeof_VkDepthClampRangeEXT(const VkDepthClampRangeEXT *val)
|
||||
{
|
||||
size_t size = 0;
|
||||
size += vn_sizeof_float(&val->minDepthClamp);
|
||||
size += vn_sizeof_float(&val->maxDepthClamp);
|
||||
return size;
|
||||
}
|
||||
|
||||
static inline void
|
||||
vn_encode_VkDepthClampRangeEXT(struct vn_cs_encoder *enc, const VkDepthClampRangeEXT *val)
|
||||
{
|
||||
vn_encode_float(enc, &val->minDepthClamp);
|
||||
vn_encode_float(enc, &val->maxDepthClamp);
|
||||
}
|
||||
|
||||
/* struct VkDepthBiasRepresentationInfoEXT chain */
|
||||
|
||||
static inline size_t
|
||||
vn_sizeof_VkDepthBiasRepresentationInfoEXT_pnext(const void *val)
|
||||
{
|
||||
/* no known/supported struct */
|
||||
return vn_sizeof_simple_pointer(NULL);
|
||||
}
|
||||
|
||||
static inline size_t
|
||||
vn_sizeof_VkDepthBiasRepresentationInfoEXT_self(const VkDepthBiasRepresentationInfoEXT *val)
|
||||
{
|
||||
size_t size = 0;
|
||||
/* skip val->{sType,pNext} */
|
||||
size += vn_sizeof_VkDepthBiasRepresentationEXT(&val->depthBiasRepresentation);
|
||||
size += vn_sizeof_VkBool32(&val->depthBiasExact);
|
||||
return size;
|
||||
}
|
||||
|
||||
static inline size_t
|
||||
vn_sizeof_VkDepthBiasRepresentationInfoEXT(const VkDepthBiasRepresentationInfoEXT *val)
|
||||
{
|
||||
size_t size = 0;
|
||||
|
||||
size += vn_sizeof_VkStructureType(&val->sType);
|
||||
size += vn_sizeof_VkDepthBiasRepresentationInfoEXT_pnext(val->pNext);
|
||||
size += vn_sizeof_VkDepthBiasRepresentationInfoEXT_self(val);
|
||||
|
||||
return size;
|
||||
}
|
||||
|
||||
static inline void
|
||||
vn_encode_VkDepthBiasRepresentationInfoEXT_pnext(struct vn_cs_encoder *enc, const void *val)
|
||||
{
|
||||
/* no known/supported struct */
|
||||
vn_encode_simple_pointer(enc, NULL);
|
||||
}
|
||||
|
||||
static inline void
|
||||
vn_encode_VkDepthBiasRepresentationInfoEXT_self(struct vn_cs_encoder *enc, const VkDepthBiasRepresentationInfoEXT *val)
|
||||
{
|
||||
/* skip val->{sType,pNext} */
|
||||
vn_encode_VkDepthBiasRepresentationEXT(enc, &val->depthBiasRepresentation);
|
||||
vn_encode_VkBool32(enc, &val->depthBiasExact);
|
||||
}
|
||||
|
||||
static inline void
|
||||
vn_encode_VkDepthBiasRepresentationInfoEXT(struct vn_cs_encoder *enc, const VkDepthBiasRepresentationInfoEXT *val)
|
||||
{
|
||||
assert(val->sType == VK_STRUCTURE_TYPE_DEPTH_BIAS_REPRESENTATION_INFO_EXT);
|
||||
vn_encode_VkStructureType(enc, &(VkStructureType){ VK_STRUCTURE_TYPE_DEPTH_BIAS_REPRESENTATION_INFO_EXT });
|
||||
vn_encode_VkDepthBiasRepresentationInfoEXT_pnext(enc, val->pNext);
|
||||
vn_encode_VkDepthBiasRepresentationInfoEXT_self(enc, val);
|
||||
}
|
||||
|
||||
/* struct VkSampleLocationEXT */
|
||||
|
||||
static inline size_t
|
||||
|
||||
@@ -1367,19 +1367,6 @@ static inline void vn_async_vkCreateDeferredOperationKHR(struct vn_ring *vn_ring
|
||||
vn_submit_vkCreateDeferredOperationKHR(vn_ring, 0, device, pAllocator, pDeferredOperation, &submit);
|
||||
}
|
||||
|
||||
static inline void vn_call_vkDestroyDeferredOperationKHR(struct vn_ring *vn_ring, VkDevice device, VkDeferredOperationKHR operation, const VkAllocationCallbacks* pAllocator)
|
||||
{
|
||||
VN_TRACE_FUNC();
|
||||
|
||||
struct vn_ring_submit_command submit;
|
||||
vn_submit_vkDestroyDeferredOperationKHR(vn_ring, VK_COMMAND_GENERATE_REPLY_BIT_EXT, device, operation, pAllocator, &submit);
|
||||
struct vn_cs_decoder *dec = vn_ring_get_command_reply(vn_ring, &submit);
|
||||
if (dec) {
|
||||
vn_decode_vkDestroyDeferredOperationKHR_reply(dec, device, operation, pAllocator);
|
||||
vn_ring_free_command_reply(vn_ring, &submit);
|
||||
}
|
||||
}
|
||||
|
||||
static inline void vn_async_vkDestroyDeferredOperationKHR(struct vn_ring *vn_ring, VkDevice device, VkDeferredOperationKHR operation, const VkAllocationCallbacks* pAllocator)
|
||||
{
|
||||
struct vn_ring_submit_command submit;
|
||||
@@ -1452,190 +1439,60 @@ static inline void vn_async_vkDeferredOperationJoinKHR(struct vn_ring *vn_ring,
|
||||
vn_submit_vkDeferredOperationJoinKHR(vn_ring, 0, device, operation, &submit);
|
||||
}
|
||||
|
||||
static inline void vn_call_vkSetReplyCommandStreamMESA(struct vn_ring *vn_ring, const VkCommandStreamDescriptionMESA* pStream)
|
||||
{
|
||||
VN_TRACE_FUNC();
|
||||
|
||||
struct vn_ring_submit_command submit;
|
||||
vn_submit_vkSetReplyCommandStreamMESA(vn_ring, VK_COMMAND_GENERATE_REPLY_BIT_EXT, pStream, &submit);
|
||||
struct vn_cs_decoder *dec = vn_ring_get_command_reply(vn_ring, &submit);
|
||||
if (dec) {
|
||||
vn_decode_vkSetReplyCommandStreamMESA_reply(dec, pStream);
|
||||
vn_ring_free_command_reply(vn_ring, &submit);
|
||||
}
|
||||
}
|
||||
|
||||
static inline void vn_async_vkSetReplyCommandStreamMESA(struct vn_ring *vn_ring, const VkCommandStreamDescriptionMESA* pStream)
|
||||
{
|
||||
struct vn_ring_submit_command submit;
|
||||
vn_submit_vkSetReplyCommandStreamMESA(vn_ring, 0, pStream, &submit);
|
||||
}
|
||||
|
||||
static inline void vn_call_vkSeekReplyCommandStreamMESA(struct vn_ring *vn_ring, size_t position)
|
||||
{
|
||||
VN_TRACE_FUNC();
|
||||
|
||||
struct vn_ring_submit_command submit;
|
||||
vn_submit_vkSeekReplyCommandStreamMESA(vn_ring, VK_COMMAND_GENERATE_REPLY_BIT_EXT, position, &submit);
|
||||
struct vn_cs_decoder *dec = vn_ring_get_command_reply(vn_ring, &submit);
|
||||
if (dec) {
|
||||
vn_decode_vkSeekReplyCommandStreamMESA_reply(dec, position);
|
||||
vn_ring_free_command_reply(vn_ring, &submit);
|
||||
}
|
||||
}
|
||||
|
||||
static inline void vn_async_vkSeekReplyCommandStreamMESA(struct vn_ring *vn_ring, size_t position)
|
||||
{
|
||||
struct vn_ring_submit_command submit;
|
||||
vn_submit_vkSeekReplyCommandStreamMESA(vn_ring, 0, position, &submit);
|
||||
}
|
||||
|
||||
static inline void vn_call_vkExecuteCommandStreamsMESA(struct vn_ring *vn_ring, uint32_t streamCount, const VkCommandStreamDescriptionMESA* pStreams, const size_t* pReplyPositions, uint32_t dependencyCount, const VkCommandStreamDependencyMESA* pDependencies, VkCommandStreamExecutionFlagsMESA flags)
|
||||
{
|
||||
VN_TRACE_FUNC();
|
||||
|
||||
struct vn_ring_submit_command submit;
|
||||
vn_submit_vkExecuteCommandStreamsMESA(vn_ring, VK_COMMAND_GENERATE_REPLY_BIT_EXT, streamCount, pStreams, pReplyPositions, dependencyCount, pDependencies, flags, &submit);
|
||||
struct vn_cs_decoder *dec = vn_ring_get_command_reply(vn_ring, &submit);
|
||||
if (dec) {
|
||||
vn_decode_vkExecuteCommandStreamsMESA_reply(dec, streamCount, pStreams, pReplyPositions, dependencyCount, pDependencies, flags);
|
||||
vn_ring_free_command_reply(vn_ring, &submit);
|
||||
}
|
||||
}
|
||||
|
||||
static inline void vn_async_vkExecuteCommandStreamsMESA(struct vn_ring *vn_ring, uint32_t streamCount, const VkCommandStreamDescriptionMESA* pStreams, const size_t* pReplyPositions, uint32_t dependencyCount, const VkCommandStreamDependencyMESA* pDependencies, VkCommandStreamExecutionFlagsMESA flags)
|
||||
{
|
||||
struct vn_ring_submit_command submit;
|
||||
vn_submit_vkExecuteCommandStreamsMESA(vn_ring, 0, streamCount, pStreams, pReplyPositions, dependencyCount, pDependencies, flags, &submit);
|
||||
}
|
||||
|
||||
static inline void vn_call_vkCreateRingMESA(struct vn_ring *vn_ring, uint64_t ring, const VkRingCreateInfoMESA* pCreateInfo)
|
||||
{
|
||||
VN_TRACE_FUNC();
|
||||
|
||||
struct vn_ring_submit_command submit;
|
||||
vn_submit_vkCreateRingMESA(vn_ring, VK_COMMAND_GENERATE_REPLY_BIT_EXT, ring, pCreateInfo, &submit);
|
||||
struct vn_cs_decoder *dec = vn_ring_get_command_reply(vn_ring, &submit);
|
||||
if (dec) {
|
||||
vn_decode_vkCreateRingMESA_reply(dec, ring, pCreateInfo);
|
||||
vn_ring_free_command_reply(vn_ring, &submit);
|
||||
}
|
||||
}
|
||||
|
||||
static inline void vn_async_vkCreateRingMESA(struct vn_ring *vn_ring, uint64_t ring, const VkRingCreateInfoMESA* pCreateInfo)
|
||||
{
|
||||
struct vn_ring_submit_command submit;
|
||||
vn_submit_vkCreateRingMESA(vn_ring, 0, ring, pCreateInfo, &submit);
|
||||
}
|
||||
|
||||
static inline void vn_call_vkDestroyRingMESA(struct vn_ring *vn_ring, uint64_t ring)
|
||||
{
|
||||
VN_TRACE_FUNC();
|
||||
|
||||
struct vn_ring_submit_command submit;
|
||||
vn_submit_vkDestroyRingMESA(vn_ring, VK_COMMAND_GENERATE_REPLY_BIT_EXT, ring, &submit);
|
||||
struct vn_cs_decoder *dec = vn_ring_get_command_reply(vn_ring, &submit);
|
||||
if (dec) {
|
||||
vn_decode_vkDestroyRingMESA_reply(dec, ring);
|
||||
vn_ring_free_command_reply(vn_ring, &submit);
|
||||
}
|
||||
}
|
||||
|
||||
static inline void vn_async_vkDestroyRingMESA(struct vn_ring *vn_ring, uint64_t ring)
|
||||
{
|
||||
struct vn_ring_submit_command submit;
|
||||
vn_submit_vkDestroyRingMESA(vn_ring, 0, ring, &submit);
|
||||
}
|
||||
|
||||
static inline void vn_call_vkNotifyRingMESA(struct vn_ring *vn_ring, uint64_t ring, uint32_t seqno, VkRingNotifyFlagsMESA flags)
|
||||
{
|
||||
VN_TRACE_FUNC();
|
||||
|
||||
struct vn_ring_submit_command submit;
|
||||
vn_submit_vkNotifyRingMESA(vn_ring, VK_COMMAND_GENERATE_REPLY_BIT_EXT, ring, seqno, flags, &submit);
|
||||
struct vn_cs_decoder *dec = vn_ring_get_command_reply(vn_ring, &submit);
|
||||
if (dec) {
|
||||
vn_decode_vkNotifyRingMESA_reply(dec, ring, seqno, flags);
|
||||
vn_ring_free_command_reply(vn_ring, &submit);
|
||||
}
|
||||
}
|
||||
|
||||
static inline void vn_async_vkNotifyRingMESA(struct vn_ring *vn_ring, uint64_t ring, uint32_t seqno, VkRingNotifyFlagsMESA flags)
|
||||
{
|
||||
struct vn_ring_submit_command submit;
|
||||
vn_submit_vkNotifyRingMESA(vn_ring, 0, ring, seqno, flags, &submit);
|
||||
}
|
||||
|
||||
static inline void vn_call_vkWriteRingExtraMESA(struct vn_ring *vn_ring, uint64_t ring, size_t offset, uint32_t value)
|
||||
{
|
||||
VN_TRACE_FUNC();
|
||||
|
||||
struct vn_ring_submit_command submit;
|
||||
vn_submit_vkWriteRingExtraMESA(vn_ring, VK_COMMAND_GENERATE_REPLY_BIT_EXT, ring, offset, value, &submit);
|
||||
struct vn_cs_decoder *dec = vn_ring_get_command_reply(vn_ring, &submit);
|
||||
if (dec) {
|
||||
vn_decode_vkWriteRingExtraMESA_reply(dec, ring, offset, value);
|
||||
vn_ring_free_command_reply(vn_ring, &submit);
|
||||
}
|
||||
}
|
||||
|
||||
static inline void vn_async_vkWriteRingExtraMESA(struct vn_ring *vn_ring, uint64_t ring, size_t offset, uint32_t value)
|
||||
{
|
||||
struct vn_ring_submit_command submit;
|
||||
vn_submit_vkWriteRingExtraMESA(vn_ring, 0, ring, offset, value, &submit);
|
||||
}
|
||||
|
||||
static inline void vn_call_vkSubmitVirtqueueSeqnoMESA(struct vn_ring *vn_ring, uint64_t ring, uint64_t seqno)
|
||||
{
|
||||
VN_TRACE_FUNC();
|
||||
|
||||
struct vn_ring_submit_command submit;
|
||||
vn_submit_vkSubmitVirtqueueSeqnoMESA(vn_ring, VK_COMMAND_GENERATE_REPLY_BIT_EXT, ring, seqno, &submit);
|
||||
struct vn_cs_decoder *dec = vn_ring_get_command_reply(vn_ring, &submit);
|
||||
if (dec) {
|
||||
vn_decode_vkSubmitVirtqueueSeqnoMESA_reply(dec, ring, seqno);
|
||||
vn_ring_free_command_reply(vn_ring, &submit);
|
||||
}
|
||||
}
|
||||
|
||||
static inline void vn_async_vkSubmitVirtqueueSeqnoMESA(struct vn_ring *vn_ring, uint64_t ring, uint64_t seqno)
|
||||
{
|
||||
struct vn_ring_submit_command submit;
|
||||
vn_submit_vkSubmitVirtqueueSeqnoMESA(vn_ring, 0, ring, seqno, &submit);
|
||||
}
|
||||
|
||||
static inline void vn_call_vkWaitVirtqueueSeqnoMESA(struct vn_ring *vn_ring, uint64_t seqno)
|
||||
{
|
||||
VN_TRACE_FUNC();
|
||||
|
||||
struct vn_ring_submit_command submit;
|
||||
vn_submit_vkWaitVirtqueueSeqnoMESA(vn_ring, VK_COMMAND_GENERATE_REPLY_BIT_EXT, seqno, &submit);
|
||||
struct vn_cs_decoder *dec = vn_ring_get_command_reply(vn_ring, &submit);
|
||||
if (dec) {
|
||||
vn_decode_vkWaitVirtqueueSeqnoMESA_reply(dec, seqno);
|
||||
vn_ring_free_command_reply(vn_ring, &submit);
|
||||
}
|
||||
}
|
||||
|
||||
static inline void vn_async_vkWaitVirtqueueSeqnoMESA(struct vn_ring *vn_ring, uint64_t seqno)
|
||||
{
|
||||
struct vn_ring_submit_command submit;
|
||||
vn_submit_vkWaitVirtqueueSeqnoMESA(vn_ring, 0, seqno, &submit);
|
||||
}
|
||||
|
||||
static inline void vn_call_vkWaitRingSeqnoMESA(struct vn_ring *vn_ring, uint64_t ring, uint64_t seqno)
|
||||
{
|
||||
VN_TRACE_FUNC();
|
||||
|
||||
struct vn_ring_submit_command submit;
|
||||
vn_submit_vkWaitRingSeqnoMESA(vn_ring, VK_COMMAND_GENERATE_REPLY_BIT_EXT, ring, seqno, &submit);
|
||||
struct vn_cs_decoder *dec = vn_ring_get_command_reply(vn_ring, &submit);
|
||||
if (dec) {
|
||||
vn_decode_vkWaitRingSeqnoMESA_reply(dec, ring, seqno);
|
||||
vn_ring_free_command_reply(vn_ring, &submit);
|
||||
}
|
||||
}
|
||||
|
||||
static inline void vn_async_vkWaitRingSeqnoMESA(struct vn_ring *vn_ring, uint64_t ring, uint64_t seqno)
|
||||
{
|
||||
struct vn_ring_submit_command submit;
|
||||
|
||||
@@ -3577,6 +3577,48 @@ vn_decode_VkPipelineRobustnessImageBehavior(struct vn_cs_decoder *dec, VkPipelin
|
||||
vn_decode_int32_t(dec, (int32_t *)val);
|
||||
}
|
||||
|
||||
/* enum VkDepthBiasRepresentationEXT */
|
||||
|
||||
static inline size_t
|
||||
vn_sizeof_VkDepthBiasRepresentationEXT(const VkDepthBiasRepresentationEXT *val)
|
||||
{
|
||||
assert(sizeof(*val) == sizeof(int32_t));
|
||||
return vn_sizeof_int32_t((const int32_t *)val);
|
||||
}
|
||||
|
||||
static inline void
|
||||
vn_encode_VkDepthBiasRepresentationEXT(struct vn_cs_encoder *enc, const VkDepthBiasRepresentationEXT *val)
|
||||
{
|
||||
vn_encode_int32_t(enc, (const int32_t *)val);
|
||||
}
|
||||
|
||||
static inline void
|
||||
vn_decode_VkDepthBiasRepresentationEXT(struct vn_cs_decoder *dec, VkDepthBiasRepresentationEXT *val)
|
||||
{
|
||||
vn_decode_int32_t(dec, (int32_t *)val);
|
||||
}
|
||||
|
||||
/* enum VkDepthClampModeEXT */
|
||||
|
||||
static inline size_t
|
||||
vn_sizeof_VkDepthClampModeEXT(const VkDepthClampModeEXT *val)
|
||||
{
|
||||
assert(sizeof(*val) == sizeof(int32_t));
|
||||
return vn_sizeof_int32_t((const int32_t *)val);
|
||||
}
|
||||
|
||||
static inline void
|
||||
vn_encode_VkDepthClampModeEXT(struct vn_cs_encoder *enc, const VkDepthClampModeEXT *val)
|
||||
{
|
||||
vn_encode_int32_t(enc, (const int32_t *)val);
|
||||
}
|
||||
|
||||
static inline void
|
||||
vn_decode_VkDepthClampModeEXT(struct vn_cs_decoder *dec, VkDepthClampModeEXT *val)
|
||||
{
|
||||
vn_decode_int32_t(dec, (int32_t *)val);
|
||||
}
|
||||
|
||||
/* enum VkTessellationDomainOrigin */
|
||||
|
||||
static inline size_t
|
||||
|
||||
Reference in New Issue
Block a user