summaryrefslogtreecommitdiffstats
path: root/src/freedreno/vulkan/tu_cs.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/freedreno/vulkan/tu_cs.h')
-rw-r--r--src/freedreno/vulkan/tu_cs.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/freedreno/vulkan/tu_cs.h b/src/freedreno/vulkan/tu_cs.h
index 43835d147f6..c28d8de76c7 100644
--- a/src/freedreno/vulkan/tu_cs.h
+++ b/src/freedreno/vulkan/tu_cs.h
@@ -51,9 +51,11 @@ tu_cs_reset(struct tu_device *dev, struct tu_cs *cs);
* Assert that we did not exceed the reserved space.
*/
static inline void
-tu_cs_reserve_space_assert(struct tu_cs *cs)
+tu_cs_sanity_check(const struct tu_cs *cs)
{
+ assert(cs->start <= cs->cur);
assert(cs->cur <= cs->reserved_end);
+ assert(cs->reserved_end <= cs->end);
}
/**