summaryrefslogtreecommitdiffstats
path: root/src/vulkan/anv_private.h
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-07-30 14:55:49 -0700
committerJason Ekstrand <[email protected]>2015-07-30 14:55:49 -0700
commite379cd9a0e2822851c1745b473521e3a49bfbdd3 (patch)
treecaeb3c018bd89724d688ba0db27b685570db89e8 /src/vulkan/anv_private.h
parent4c2a182a3646283cd99b6e7dd1060b107a9d3e0c (diff)
vk/cmd_buffer: Add a simple command pool implementation
Diffstat (limited to 'src/vulkan/anv_private.h')
-rw-r--r--src/vulkan/anv_private.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/vulkan/anv_private.h b/src/vulkan/anv_private.h
index d2b4b70e97f..12f826c1ab1 100644
--- a/src/vulkan/anv_private.h
+++ b/src/vulkan/anv_private.h
@@ -690,6 +690,10 @@ struct anv_cmd_state {
struct anv_descriptor_set_binding descriptors[MAX_SETS];
};
+struct anv_cmd_pool {
+ struct list_head cmd_buffers;
+};
+
#define ANV_CMD_BUFFER_BATCH_SIZE 8192
enum anv_cmd_buffer_exec_mode {
@@ -702,6 +706,8 @@ enum anv_cmd_buffer_exec_mode {
struct anv_cmd_buffer {
struct anv_device * device;
+ struct list_head pool_link;
+
struct anv_batch batch;
/* Fields required for the actual chain of anv_batch_bo's.
@@ -1088,6 +1094,7 @@ ANV_DEFINE_HANDLE_CASTS(anv_physical_device, VkPhysicalDevice)
ANV_DEFINE_HANDLE_CASTS(anv_queue, VkQueue)
ANV_DEFINE_HANDLE_CASTS(anv_swap_chain, VkSwapChainWSI);
+ANV_DEFINE_NONDISP_HANDLE_CASTS(anv_cmd_pool, VkCmdPool)
ANV_DEFINE_NONDISP_HANDLE_CASTS(anv_attachment_view, VkAttachmentView)
ANV_DEFINE_NONDISP_HANDLE_CASTS(anv_buffer, VkBuffer)
ANV_DEFINE_NONDISP_HANDLE_CASTS(anv_buffer_view, VkBufferView);