vulkan,anv,turnip: Add a common CmdBindVertexBuffers wrapper

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16611>
This commit is contained in:
Jason Ekstrand
2022-05-19 11:10:23 -05:00
committed by Marge Bot
parent cc4d5b1666
commit c24aa449d0
3 changed files with 15 additions and 23 deletions

View File

@@ -1759,17 +1759,6 @@ tu_BeginCommandBuffer(VkCommandBuffer commandBuffer,
return VK_SUCCESS;
}
VKAPI_ATTR void VKAPI_CALL
tu_CmdBindVertexBuffers(VkCommandBuffer commandBuffer,
uint32_t firstBinding,
uint32_t bindingCount,
const VkBuffer *pBuffers,
const VkDeviceSize *pOffsets)
{
tu_CmdBindVertexBuffers2EXT(commandBuffer, firstBinding, bindingCount,
pBuffers, pOffsets, NULL, NULL);
}
VKAPI_ATTR void VKAPI_CALL
tu_CmdBindVertexBuffers2EXT(VkCommandBuffer commandBuffer,
uint32_t firstBinding,

View File

@@ -1197,18 +1197,6 @@ void anv_CmdBindVertexBuffers2(
}
}
void anv_CmdBindVertexBuffers(
VkCommandBuffer commandBuffer,
uint32_t firstBinding,
uint32_t bindingCount,
const VkBuffer* pBuffers,
const VkDeviceSize* pOffsets)
{
return anv_CmdBindVertexBuffers2(commandBuffer, firstBinding,
bindingCount, pBuffers, pOffsets,
NULL, NULL);
}
void anv_CmdBindTransformFeedbackBuffersEXT(
VkCommandBuffer commandBuffer,
uint32_t firstBinding,

View File

@@ -81,3 +81,18 @@ vk_common_CmdExecuteCommands(VkCommandBuffer commandBuffer,
vk_cmd_queue_execute(&secondary->cmd_queue, commandBuffer, disp);
}
}
VKAPI_ATTR void VKAPI_CALL
vk_common_CmdBindVertexBuffers(VkCommandBuffer commandBuffer,
uint32_t firstBinding,
uint32_t bindingCount,
const VkBuffer *pBuffers,
const VkDeviceSize *pOffsets)
{
VK_FROM_HANDLE(vk_command_buffer, cmd_buffer, commandBuffer);
const struct vk_device_dispatch_table *disp =
&cmd_buffer->base.device->dispatch_table;
disp->CmdBindVertexBuffers2(commandBuffer, firstBinding, bindingCount,
pBuffers, pOffsets, NULL, NULL);
}