diff options
author | Jason Ekstrand <[email protected]> | 2015-07-08 10:53:32 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-07-08 10:53:32 -0700 |
commit | e19d6be2a93104762bf5840456a695f708c56a57 (patch) | |
tree | ed1b0612b668b5863ce231bb96efcfbe37dfb978 /src | |
parent | c84f2d3b8c589afde896f3e2f55ce33d909b46da (diff) |
vk/vulkan.h: Add command buffer levels
Diffstat (limited to 'src')
-rw-r--r-- | src/vulkan/device.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vulkan/device.c b/src/vulkan/device.c index ebd04e205b5..38d922767bb 100644 --- a/src/vulkan/device.c +++ b/src/vulkan/device.c @@ -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) |