summaryrefslogtreecommitdiffstats
path: root/src/freedreno/vulkan/tu_private.h
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2018-12-31 14:15:30 +0100
committerChia-I Wu <[email protected]>2019-03-11 10:01:41 -0700
commit871349965753ae7df897e2db488f22743b1bf1c5 (patch)
tree7b481f18c1664984b56b81ab655c1bfc8a999174 /src/freedreno/vulkan/tu_private.h
parente3a9b0792325f849246baab73cf19c51f2238122 (diff)
turnip: Add a command stream.
Diffstat (limited to 'src/freedreno/vulkan/tu_private.h')
-rw-r--r--src/freedreno/vulkan/tu_private.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/freedreno/vulkan/tu_private.h b/src/freedreno/vulkan/tu_private.h
index e884b2cd8db..2a09d5b14a0 100644
--- a/src/freedreno/vulkan/tu_private.h
+++ b/src/freedreno/vulkan/tu_private.h
@@ -711,6 +711,30 @@ struct tu_bo_list
uint32_t *handles;
};
+struct tu_cmd_stream_entry
+{
+ /* No ownership */
+ struct tu_bo *bo;
+
+ uint32_t size;
+ uint64_t offset;
+};
+
+struct tu_cmd_stream
+{
+ uint32_t *start;
+ uint32_t *cur;
+ uint32_t *end;
+
+ struct tu_cmd_stream_entry *entries;
+ uint32_t entry_count;
+ uint32_t entry_capacity;
+
+ struct tu_bo **bos;
+ uint32_t bo_count;
+ uint32_t bo_capacity;
+};
+
struct tu_cmd_buffer
{
VK_LOADER_DATA _loader_data;
@@ -737,6 +761,7 @@ struct tu_cmd_buffer
struct tu_cmd_buffer_upload upload;
struct tu_bo_list bo_list;
+ struct tu_cmd_stream primary_cmd_stream;
VkResult record_result;
};