summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-07-08 10:53:32 -0700
committerJason Ekstrand <[email protected]>2015-07-08 10:53:32 -0700
commite19d6be2a93104762bf5840456a695f708c56a57 (patch)
treeed1b0612b668b5863ce231bb96efcfbe37dfb978 /src
parentc84f2d3b8c589afde896f3e2f55ce33d909b46da (diff)
vk/vulkan.h: Add command buffer levels
Diffstat (limited to 'src')
-rw-r--r--src/vulkan/device.c2
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)