diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/freedreno/vulkan/tu_cs.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/freedreno/vulkan/tu_cs.h b/src/freedreno/vulkan/tu_cs.h index 4df7fb806e3..f3e0ade2a36 100644 --- a/src/freedreno/vulkan/tu_cs.h +++ b/src/freedreno/vulkan/tu_cs.h @@ -103,6 +103,17 @@ tu_cs_emit(struct tu_cs *cs, uint32_t value) ++cs->cur; } +/** + * Emit an array of uint32_t into a command stream, without boundary checking. + */ +static inline void +tu_cs_emit_array(struct tu_cs *cs, const uint32_t *values, uint32_t length) +{ + assert(cs->cur + length <= cs->reserved_end); + memcpy(cs->cur, values, sizeof(uint32_t) * length); + cs->cur += length; +} + static inline unsigned tu_odd_parity_bit(unsigned val) { |