aboutsummaryrefslogtreecommitdiffstats
path: root/src/freedreno/vulkan/tu_private.h
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2019-01-18 14:24:45 -0800
committerChia-I Wu <[email protected]>2019-03-11 10:01:41 -0700
commit3b3af6321b9231752014ed441ba9b056219e23aa (patch)
tree08bb7f240827ebbce409ba368a4585b03675d72e /src/freedreno/vulkan/tu_private.h
parentaaa59ef70c100fe861c099197581a1131f2bc8a4 (diff)
turnip: add tu_cs_reserve_space(_assert)
They are used like tu_cs_reserve_space(...); tu_cs_emit(...); ...; tu_cs_reserve_space_assert(); to make sure we reserved enough space at the beginning.
Diffstat (limited to 'src/freedreno/vulkan/tu_private.h')
-rw-r--r--src/freedreno/vulkan/tu_private.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/freedreno/vulkan/tu_private.h b/src/freedreno/vulkan/tu_private.h
index c52aaa34cd2..4b985d8ca69 100644
--- a/src/freedreno/vulkan/tu_private.h
+++ b/src/freedreno/vulkan/tu_private.h
@@ -747,6 +747,9 @@ struct tu_cs
uint32_t *cur;
uint32_t *end;
+ /* for tu_cs_reserve_space_assert */
+ uint32_t *reserved_end;
+
struct tu_cs_entry *entries;
uint32_t entry_count;
uint32_t entry_capacity;