vk/vulkan.h: Add command buffer levels

This commit is contained in:
Jason Ekstrand
2015-07-08 10:53:32 -07:00
parent c84f2d3b8c
commit e19d6be2a9
2 changed files with 13 additions and 0 deletions

View File

@@ -2155,6 +2155,8 @@ VkResult anv_CreateCommandBuffer(
struct anv_cmd_buffer *cmd_buffer;
VkResult result;
assert(pCreateInfo->level == VK_CMD_BUFFER_LEVEL_PRIMARY);
cmd_buffer = anv_device_alloc(device, sizeof(*cmd_buffer), 8,
VK_SYSTEM_ALLOC_TYPE_API_OBJECT);
if (cmd_buffer == NULL)